全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
查看: 1424|回复: 16

抢二楼脚本

[复制链接]
发表于 2020-5-21 17:21:39 | 显示全部楼层 |阅读模式
本帖最后由 mxy123h 于 2020-5-21 17:42 编辑
  1. // ==UserScript==
  2. // @name       New Userscript
  3. // @namespace    http://tampermonkey.net/
  4. // @version      0.1
  5. // @description  try to take over the world!
  6. // @author       You
  7. // @match        https://www.hostloc.com/forum-45-1.html
  8. // @match        https://www.hostloc.com/thread-*
  9. // @require      https://code.jquery.com/jquery-1.12.4.min.js
  10. // @grant       GM.setValue
  11. // @grant       GM_setValue
  12. // @grant       GM.getValue
  13. // @grant       GM_getValue
  14. // ==/UserScript==

  15. (function() {
  16.     console.log($(".num").length);
  17.     $(".num").each(function(index){
  18.         if($(this).children(".xi2").html()=="0"){
  19.             if(GM_getValue("href")!=$(this).children(".xi2").attr("href")){
  20.                 window.open($(this).children(".xi2").attr("href"));
  21.                 GM_setValue("href",$(this).children(".xi2").attr("href"));
  22.             }
  23.         }else{
  24.             window.location.reload();
  25.         }
  26.     });
  27.     if($("#postlist").children("div").length<=2){
  28.         var h = $(document).height()-$(window).height();
  29.         $(document).scrollTop(h);
  30.     }

  31. })();
复制代码


复制到油猴
别骂了 别骂了 在骂就骂傻了 我就花了5分钟写的,都没用过,也没测试过
发表于 2020-5-21 17:22:53 | 显示全部楼层
你好,我是二楼
发表于 2020-5-21 17:23:07 | 显示全部楼层
什么东西,没看懂,先抢楼再说
发表于 2020-5-21 17:23:21 | 显示全部楼层
用脚本会封号吗?
i65u 该用户已被删除
发表于 2020-5-21 17:24:30 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
发表于 2020-5-21 17:24:50 | 显示全部楼层

抢了二楼记得要编辑成正常内容
不然小黑屋
发表于 2020-5-21 17:25:03 | 显示全部楼层
讲真,抢二楼有什么意义吗
发表于 2020-5-21 17:25:34 | 显示全部楼层
脚本无效啊
发表于 2020-5-21 17:25:48 | 显示全部楼层
入狱小技巧又增加了.jpg
发表于 2020-5-21 17:27:53 | 显示全部楼层
找死的节奏~
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2024-4-19 14:39 , Processed in 0.074490 second(s), 10 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表