Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
mondraccept
// ==UserScript==
// @name mondraccept
// @description Auto-accepts reports.
// @match http://w001.monsterdragon.jp/report/detail?id=*
// @author satyr
// @version 1.3
// ==/UserScript==
setTimeout(function(){
var get, ev;
get = document.querySelector('#monster-report-get');
if (get.style.display !== 'none') {
ev = document.createEvent('MouseEvents');
ev.initEvent('click', true, true);
return get.dispatchEvent(ev);
}
});
`// ==UserScript==
// @name mondraccept
// @description Auto-accepts reports.
// @match http://w001.monsterdragon.jp/report/detail?id=*
// @author satyr
// @version 1.3
// ==/UserScript==`
<- setTimeout
get = document.querySelector \#monster-report-get
unless get.style.display is \none
ev = document.createEvent \MouseEvents
ev.initEvent \click true true
get.dispatchEvent ev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.