添加 'mcbbs/auto-report.user.js'
This commit is contained in:
parent
334c1e981a
commit
9768b79385
21
mcbbs/auto-report.user.js
Normal file
21
mcbbs/auto-report.user.js
Normal file
@ -0,0 +1,21 @@
|
||||
// ==UserScript==
|
||||
// @name 自动举报确认
|
||||
// @namespace https://miaowoo.cc/
|
||||
// @version 0.1
|
||||
// @description 自动确认举报!
|
||||
// @author MiaoWoo
|
||||
// @match https://www.mcbbs.net/forum.php?mod=viewthread&tid=**
|
||||
// @match https://www.mcbbs.net/thread-**-*-*.html
|
||||
// @grant none
|
||||
// ==/UserScript==
|
||||
|
||||
(function() {
|
||||
'use strict';
|
||||
setInterval(function(){
|
||||
var rmsg = document.querySelector('#report_message');
|
||||
if (rmsg && rmsg.value == "请填写举报内容") {
|
||||
document.querySelector('#report_reasons .pr').click()
|
||||
document.querySelector('.pns').click()
|
||||
}
|
||||
}, 300)
|
||||
})();
|
Loading…
Reference in New Issue
Block a user