您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
makes reporting advertisement faster
// ==UserScript== // @name Runic Advertisement Reporting // @namespace http://forums.runicgames.com/ // @description makes reporting advertisement faster // @include http://forums.runicgames.com/report.php?* // @run-at document-end // @grant none // @version 1 // ==/UserScript== /****** dropdown menu ******/ var reason_id = "2" // advertisement select = document.getElementById('reason_id'); for(var i, j = 0; i = select.options[j]; j++) { if(i.value == reason_id) { select.selectedIndex = j; break; } } /****** radio buttons ******/ document.getElementById('notify1').checked = false; //the yes option document.getElementById('notify0').checked = true; //the no option /****** submit button ******/ //set the focus on "Submit" document.getElementsByClassName("button1")[0].focus();