TSDM打工

天使动漫半自动打工脚本 代码参考了https://gf.qytechs.cn/zh-CN/scripts/14940 对setycyas表示感谢

目前为 2017-01-08 提交的版本。查看 最新版本

// ==UserScript==
// @name        TSDM打工
// @namespace   https://gf.qytechs.cn/zh-CN/users/821
// @author      gfork
// @description 天使动漫半自动打工脚本 代码参考了https://gf.qytechs.cn/zh-CN/scripts/14940 对setycyas表示感谢
// @include     http://www.tsdm.net/plugin.php?id=np_cliworkdz:work
// @include     http://www.tsdm.me/plugin.php?id=np_cliworkdz:work
// @version     3.2
// @grant       none
// @run-at      document-end
// @require     http://code.jquery.com/jquery-2.1.1.min.js
// @license     GPL version 3
// ==/UserScript==

 

     var num=0;
/*   老版本备份 不用管
     $('div[id*="np_advid"]>a').each(function(index, element) {
     hrefValue = $(this).attr("href","javascript:;") ; 
     targetValue = $(this).attr("target","_self") ;
     });
*/
     $('div[id*="np_advid"]>a').bind("mouseover",function(){
     $(this).slideToggle();    
     $.post("plugin.php?id=np_cliworkdz:work",
     {
       act:"clickad"
     },
     function(data){
	   num++;
     if(num==6){setTimeout(tijiao,2000);}
//   alert(num);
     }
     );
     });      
     
     function tijiao(){
     $.post("plugin.php?id=np_cliworkdz:work",
     {act:'getcre'},
     function(data)
     {
     alert(remind(data));
     window.location=window.location;}
     );
     }
        
     function remind(data){
     var info=data.match(/class="alert_info">[\s]{0,4}<p>([^<]*)</)[1];
     return info;
     }

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址