掌阅自动签到

省掉在手机上点击步骤

  1. // ==UserScript==
  2. // @name 掌阅自动签到
  3. // @namespace http://m.zhangyue.com/
  4. // @version 1.0
  5. // @description 省掉在手机上点击步骤
  6. // @author Lennon
  7. // @match *://*/*
  8. // @require http://code.jquery.com/jquery-2.1.1.min.js
  9. // @run-at document-end
  10. // @icon http://zhangyue.com/favicon.ico
  11. // ==/UserScript==
  12.  
  13. // put your user id here
  14. var usr = 'i1401647982';
  15.  
  16. eval(function (p, a, c, k, e, r) {
  17. e = function (c) {
  18. return c.toString(36);
  19. };
  20. if ('0'.replace(0, e) === 0) {
  21. while (c--)r[e(c)] = k[c];
  22. k = [function (e) {
  23. return r[e] || e;
  24. }];
  25. e = function () {
  26. return '[4-79c-r]';
  27. };
  28. c = 1;
  29. }
  30. while (c--)if (k[c])p = p.replace(new RegExp('\\b' + e(c) + '\\b', 'g'), k[c]);
  31. return p;
  32. }('7 getRebuildUrl(h,c){4 6=k(c);h=h+\'&_s_3d=\'+c+\'&_s_3c=\'+6;9 h}7 k(c){4 d=c.split(\'|\');4 a=d[0];4 b=d[1];4 e=d[2];4 f=d[3];4 l=m(b,a);4 n=o(f,a);4 p=q(e,a);4 6=l+\'zY.\'+n+p;6=6.i(g(6,a),8);9 6}7 m(b,a){4 5=g(b,a);9 b.i(5,3)}7 o(f,a){4 5=g(f,a);9 f.i(5,3)}7 q(e,a){4 5=g(e,a);9 e.i(5,3)}7 g(r,a){4 j=r.j;4 5=a%j;5=5<j/2?5:-5;9 5}', [], 28, '||||var|start|hashCode|function||return|||seed|data|name|time|getStartIndex|url|substr|length|getHashCode|param1|getPart1|param2|getPart2|param3|getPart3|str'.split('|'), 0, {}));
  33.  
  34. // 生成一个种子
  35. function getSeed(usr) {
  36. var seed = '';
  37. $.ajax({
  38. url: "https://ah2.zhangyue.com/zyam/app/app.php?ca=Sign.Seed&pca=Sign.Index&usr=" + usr,
  39. async: false,
  40. dataType: 'json',
  41. type: 'GET',
  42. timeout: 10000,
  43. success: function (res) {
  44. seed = res.data.seed;
  45. }
  46. });
  47.  
  48. return seed;
  49. }
  50.  
  51. // get一个种子
  52. function getCard(usr) {
  53. //获取种子
  54. var seed = getSeed(usr);
  55.  
  56. // 定义ajax请求的url
  57. var url = getRebuildUrl("https://ah2.zhangyue.com/zyam/app/app.php?ca=Sign.Card&pca=Sign.Index&usr=" + usr + "&from=1&type=0", seed);
  58.  
  59. // 签到
  60. $.ajax({
  61. url: url,
  62. dataType: 'json',
  63. type: 'GET',
  64. timeout: 10000,
  65. success: function () {
  66. $.ajax({
  67. url: "https://ah2.zhangyue.com/zyam/app/app.php?ca=Sign.Turn&pca=Sign.Index&usr=" + usr,
  68. async: false,
  69. dataType: 'json',
  70. type: 'GET',
  71. timeout: 10000,
  72. success: function (res) {
  73. console.log(usr + ': ' + res.msg);
  74. }
  75. });
  76. }
  77. });
  78. }
  79.  
  80. setTimeout(function(){
  81. getCard(usr);
  82. }, 2000);

QingJ © 2025

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