TSDM打工

彩蛋:https://www.lanzous.com/i5yejsf

As of 02.09.2019. See ბოლო ვერსია.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name        TSDM打工
// @namespace   https://greasyfork.org/zh-CN/users/821
// @author      gfork
// @description 彩蛋:https://www.lanzous.com/i5yejsf
// @include     *://www.tsdm.live/plugin.php?id=np_cliworkdz:work*
// @include     *://www.tsdm.live/forum.php?mod=viewthread&tid=321479
// @version     5.3
// @grant       none
// @run-at      document-end
// @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)
     {
//   console.log('领奖响应:'+data);
     console.log(remind(data));
     window.location=window.location;}
     );
     }
        
     function remind(data){
     var info=data.match(/class="alert_info">[\s]{0,4}<p>([^<]*)</)[1];
     return info;
     }
*/
var url=window.location.href;
if(url.match("tid=321479"))
{
    for (var i = 0; i < 5; i++) {
    setTimeout((function() {
    window.open('plugin.php?id=np_cliworkdz:work');
 }), i * 21610000);
}}


jQuery(document).ready(function($){
//   setTimeout(function(){$('#advids').children().children().trigger("click");}, 100);
     setTimeout(function(){$('#np_advid1').children().trigger("click");},300);
     setTimeout(function(){$('#np_advid2').children().trigger("click");},600);
     setTimeout(function(){$('#np_advid4').children().trigger("click");},900);
     setTimeout(function(){$('#np_advid6').children().trigger("click");},1200);
     setTimeout(function(){$('#np_advid7').children().trigger("click");},1500);
     setTimeout(function(){$('#np_advid9').children().trigger("click");},1800);
//    document.getcre.submit();
    setTimeout(function(){document.getcre.submit();},2500);
//    setTimeout(function(){$('#stopad').children().trigger("click");},2000);
});