![切换检查超时时间](https://img-blog.csdnimg.cn/img_convert/87b0f23c93decc05f82b311e4aca7565.png)
切换检查超时时间
Recently I decided to clean up all the spam from an abandoned phpBB forum of mine, there was a lot to delete. In the phpBB version that I use there is no option to "check all" topics you want to moderate. So I came up with a little bookmarklet to do this for me. Here it is, only improved to work within frames and toggle (check if not checked, uncheck otherwise) all checkboxes in sight. Tested in FF and IE6/7.
最近,我决定从一个废弃的phpBB论坛中清理所有垃圾邮件,有很多地方要删除。 在我使用的phpBB版本中,没有选项可以“检查所有”要审核的主题。 所以我想出了一个小书签来为我做这件事。 此处仅改进了在框架内工作并切换(如果未选中则选中,否则取消选中)所有可见复选框。 在FF和IE6 / 7中测试。
To install, add this to your bookmarks/favourites:
要安装,请将其添加到您的书签/收藏夹:
The reading friendly code:
阅读友好的代码:
javascript:(function(){
function checkFrames(w) {
try {
var inputs = w.document.getElementsByTagName('input');
for (var i = 0; i < inputs.length; i++) {
if (inputs[i].type && inputs[i].type == 'checkbox'){
inputs[i].checked = !inputs[i].checked;
}
}
} catch (e){}
if(w.frames && w.frames.length>0){
for(var i = 0; i < w.frames.length;i++){
var fr = w.frames[i];
checkFrames(fr);
}
}
}
checkFrames(window);
})()
Tell your friends about this post on Facebook and Twitter
在Facebook和Twitter上告诉您的朋友有关此帖子的信息
翻译自: https://www.phpied.com/checktoggle-em-all/
切换检查超时时间