TSDM打工

天使动漫自动打工

  1. // ==UserScript==
  2. // @name TSDM打工
  3. // @namespace https://greasyfork.org/zh-CN/users/821
  4. // @author ashcarbide
  5. // @description 天使动漫自动打工
  6. // @include *://tsdm39.com/plugin.php?id=np_cliworkdz:work*
  7. // @include *://tsdm39.com/forum.php?mod=viewthread&tid=321479
  8. // @include *://www.tsdm39.com/plugin.php?id=np_cliworkdz:work*
  9. // @include *://www.tsdm39.com/forum.php?mod=viewthread&tid=321479
  10. // @version 6.3
  11. // @grant none
  12. // @run-at document-end
  13. // @license GPL version 3
  14. // ==/UserScript==
  15.  
  16. /* 老版本备份 不用管
  17. var num=0;
  18. $('div[id*="np_advid"]>a').each(function(index, element) {
  19. hrefValue = $(this).attr("href","javascript:;") ;
  20. targetValue = $(this).attr("target","_self") ;
  21. });
  22.  
  23. $('div[id*="np_advid"]>a').bind("mouseover",function(){
  24. $(this).slideToggle();
  25. $.post("plugin.php?id=np_cliworkdz:work",
  26. {
  27. act:"clickad"
  28. },
  29. function(data){
  30. num++;
  31. if(num==6){setTimeout(tijiao,2000);}
  32. // alert(num);
  33. }
  34. );
  35. });
  36. function tijiao(){
  37. $.post("plugin.php?id=np_cliworkdz:work",
  38. {act:'getcre'},
  39. function(data)
  40. {
  41. // console.log('领奖响应:'+data);
  42. console.log(remind(data));
  43. window.location=window.location;}
  44. );
  45. }
  46. function remind(data){
  47. var info=data.match(/class="alert_info">[\s]{0,4}<p>([^<]*)</)[1];
  48. return info;
  49. }
  50. */
  51. var url=window.location.href;
  52. if(url.match("tid=321479"))
  53. {
  54. window.open('plugin.php?id=np_cliworkdz:work');
  55. setInterval((function() {
  56. window.location.reload();
  57. }), 21640000);
  58. }
  59.  
  60.  
  61. jQuery(document).ready(function($){
  62. // setTimeout(function(){$('#advids').children().children().trigger("click");}, 100);
  63. setTimeout(function(){$('#np_advid1').children().trigger("click");},300);
  64. setTimeout(function(){$('#np_advid2').children().trigger("click");},600);
  65. setTimeout(function(){$('#np_advid4').children().trigger("click");},900);
  66. setTimeout(function(){$('#np_advid6').children().trigger("click");},1200);
  67. setTimeout(function(){$('#np_advid7').children().trigger("click");},1500);
  68. setTimeout(function(){$('#np_advid9').children().trigger("click");},1800);
  69. // document.getcre.submit();
  70. setTimeout(function(){document.getcre.submit();},2500);
  71. // setTimeout(function(){$('#stopad').children().trigger("click");},2000);
  72. });