自动签到助手(包含5个站点)

实现部分网站的自动签到,彻底解放双手!

  1. // ==UserScript==
  2. // @name 自动签到助手(包含5个站点)
  3. // @description 实现部分网站的自动签到,彻底解放双手!
  4. // @namespace http://www.liuweb.com
  5. // @version 0.1
  6. // @author aoweisi
  7. // @include *//jifen.2345.com/*
  8. // @include *//ttz.china.com/*
  9. // @include *//ttz.china.com/Signin/index/*
  10. // @include *//www.juxiangyou.com/*
  11. // @include *//www.juxiangyou.com/sign/*
  12. // @include *//www.2478.com/*
  13. // @include *//www.2478.com/dayCheck/*
  14. // @include *//www.ji7.com/*
  15. // @include *//www.ji7.com/sign*
  16.  
  17. // @grant none
  18. // ==/UserScript==
  19.  
  20. function isURL(x){
  21. if(window.location.href.indexOf(x)!=-1){
  22. return true;
  23. }else{
  24. return false;
  25. }
  26. }
  27.  
  28. var wait = 1500;
  29.  
  30. //2345联盟
  31. if(isURL("jifen.2345.com")){
  32. setTimeout(function(){
  33. every_day_signature();
  34. },wait);
  35. }
  36.  
  37. //天天钻
  38. if(isURL("ttz.china.com")){
  39. setTimeout(function(){
  40. document.getElementsByClassName('sign')[0].click();
  41. },wait);
  42. }
  43. if(isURL("ttz.china.com/Signin/index")){
  44. setTimeout(function(){
  45. document.getElementsByClassName('signinNow')[0].click();
  46. },wait);
  47. }
  48. //聚享游
  49. if(isURL("www.juxiangyou.com")){
  50. setTimeout(function(){
  51. if (document.getElementsByClassName('qiandao-btn')[0].innerText!="已签到") {
  52. document.getElementsByClassName('qiandao-btn')[0].click();
  53. }
  54. },wait);
  55. }
  56. if(isURL("www.juxiangyou.com/sign")){
  57. setTimeout(function(){
  58. document.getElementsByClassName('J_sign')[0].click();
  59. },wait);
  60. }
  61. //24趣吧
  62. if(isURL("www.2478.com")){
  63. setTimeout(function(){
  64. if(document.getElementsByClassName('js-checkin')[0].innerText!="已签到"){
  65. document.getElementsByClassName('js-checkin')[0].click();
  66. }
  67. },wait);
  68. }
  69. if(isURL("www.2478.com/dayCheck")){
  70. setTimeout(function(){
  71. document.getElementsByClassName('Do_Check')[0].click();
  72. },wait);
  73. }
  74.  
  75. //集趣网
  76. if(isURL("www.ji7.com")){
  77. setTimeout(function(){
  78. if(document.getElementsByClassName('sign_btn')[0].innerText!="今日已签到"){
  79. document.getElementsByClassName('sign_btn')[0].click();
  80. }
  81. },wait);
  82. }
  83. if(isURL("www.ji7.com/sign")){
  84. setTimeout(function(){
  85. document.getElementsByClassName('acc_btn')[0].click();
  86. },wait);
  87. }