1
0
Fork 0

添加 'mcbbs/auto-report.user.js'

master
502647092 2020-05-08 13:03:41 +00:00
parent 334c1e981a
commit 9768b79385
1 changed files with 21 additions and 0 deletions

21
mcbbs/auto-report.user.js Normal file
View 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)
})();