mxy123h 大佬有话说 :
抢二楼脚本
本帖最后由 mxy123h 于 2020-5-21 17:42 编辑
// ==UserScript==
// @name New Userscript
// @namespace http://tampermonkey.net/
// @version 0.1
// @descriptiontry to take over the world!
// @author You
// @match https://www.hostloc.com/forum-45-1.html
// @match https://www.hostloc.com/thread-*
// @require https://code.jquery.com/jquery-1.12.4.min.js
// @grant GM.setValue
// @grant GM_setValue
// @grant GM.getValue
// @grant GM_getValue
// ==/UserScript==
(function() {
console.log($(".num").length);
$(".num").each(function(index){
if($(this).children(".xi2").html()=="0"){
if(GM_getValue("href")!=$(this).children(".xi2").attr("href")){
window.open($(this).children(".xi2").attr("href"));
GM_setValue("href",$(this).children(".xi2").attr("href"));
}
}else{
window.location.reload();
}
});
if($("#postlist").children("div").length<=2){
var h = $(document).height()-$(window).height();
$(document).scrollTop(h);
}
})();
复制到油猴
别骂了 别骂了 在骂就骂傻了 我就花了5分钟写的,都没用过,也没测试过https://cdn.jsdelivr.net/gh/hishis/forum-master/public/images/patch.gif
ByteCat 大佬有话说 :
你好,我是二楼https://cdn.jsdelivr.net/gh/hishis/forum-master/public/images/patch.gif
贼梦贼康 大佬有话说 :
什么东西,没看懂,先抢楼再说
supersuber 大佬有话说 :
用脚本会封号吗?
i65u 大佬有话说 :
用户脚本无效
riwsh 大佬有话说 :
:lol
抢了二楼记得要编辑成正常内容
不然小黑屋
狂徒张三 大佬有话说 :
讲真,抢二楼有什么意义吗yc007t
guodaxia 大佬有话说 :
脚本无效啊
b66667777 大佬有话说 :
入狱小技巧又增加了.jpg:lol
369 大佬有话说 :
找死的节奏~https://cdn.jsdelivr.net/gh/hishis/forum-master/public/images/patch.gif