全球主机交流论坛

标题: 抢二楼脚本 [打印本页]

作者: mxy123h    时间: 2020-5-21 17:21
标题: 抢二楼脚本
本帖最后由 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. //443502.xyz/forum-45-1.html
  8. //443502.xyz/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分钟写的,都没用过,也没测试过
作者: ByteCat    时间: 2020-5-21 17:22
你好,我是二楼
作者: 贼梦贼康    时间: 2020-5-21 17:23
什么东西,没看懂,先抢楼再说
作者: supersuber    时间: 2020-5-21 17:23
用脚本会封号吗?
作者: i65u    时间: 2020-5-21 17:24
提示: 作者被禁止或删除 内容自动屏蔽
作者: riwsh    时间: 2020-5-21 17:24

抢了二楼记得要编辑成正常内容
不然小黑屋
作者: 狂徒张三    时间: 2020-5-21 17:25
讲真,抢二楼有什么意义吗
作者: guodaxia    时间: 2020-5-21 17:25
脚本无效啊
作者: b66667777    时间: 2020-5-21 17:25
入狱小技巧又增加了.jpg
作者: 369    时间: 2020-5-21 17:27
找死的节奏~
作者: Madlifer    时间: 2020-5-21 17:29
提示: 作者被禁止或删除 内容自动屏蔽
作者: work    时间: 2020-5-21 17:30
马上进小黑屋的节奏  ​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​
作者: wifitry    时间: 2020-5-21 17:30
随缘抢2楼
作者: 012    时间: 2020-5-21 17:33
我靠 这玩意不用改就可以拿来用于t 楼啊 加个判断足矣 。。
作者: 叫我ams就好了    时间: 2020-5-21 17:48
重头再来脚本.py
作者: huajiwuyan    时间: 2020-5-21 17:53
让我想起之前悬赏钓鱼哦
作者: laogui    时间: 2020-5-21 17:54
花了5分钟写的,都没用过,也没测试过
------骚




欢迎光临 全球主机交流论坛 (https://443502.xyz/) Powered by Discuz! X3.4