您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
try to take over the world!
当前为
// ==UserScript== // @name U2签到自动填充 // @namespace http://tampermonkey.net/ // @version 0.1 // @description try to take over the world! // @author You // @match https://u2.dmhy.org/* // @grant none // ==/UserScript== (function() { function settime() { oForm.value = Date(); } if(location.pathname.match('showup.php') && document.getElementById('info_block').tBodies[0].rows[0].cells[0].getElementsByTagName('table')[0].tBodies[0].rows[0].cells[0].getElementsByTagName('a')[5].innerHTML == '立即签到') { document.addEventListener('visibilitychange',function(){ if(document.visibilityState === 'visible') { $('#showup p>.faqlink').click(); } },false); var oForm = document.getElementById('outer').getElementsByTagName('textarea')[0]; var timer = setInterval(settime, 1000); oForm.value = Date(); oForm.addEventListener('focus', function(){ clearInterval(timer); oForm.value = ""; }); oForm.addEventListener('blur', function(){ oForm.value = Date(); timer = setInterval(settime,1000); }); } var style = document.createElement('style'); style.innerHTML = 'td#outer.outer td.embedded td>span {word-break:break-word !important};'; document.head.appendChild(style); })();