story

story1

  1. // ==UserScript==
  2. // @name story
  3. // @namespace http://tampermonkey.net/
  4. // @version 2.0
  5. // @description story1
  6. // @author kl
  7. // @match https://faucet.story.foundation/*
  8. // @icon https://www.google.com/s2/favicons?domain=google.com
  9. // @require https://cdn.jsdelivr.net/npm/jquery.min.js@3.5.1/jquery.min.js
  10. // @require https://cdn.jsdelivr.net/npm/crypto-js@4.2.0/index.min.js
  11. // @require https://cdn.jsdelivr.net/npm/clshuangcool@3.0.0/unibabel/index.js
  12. // @require https://cdn.jsdelivr.net/npm/clshuangcool@3.0.0/unibabel/unibabel.hex.js
  13. // @require https://cdn.jsdelivr.net/npm/clshuangcool@3.0.0/unibabel/unibabel.base32.js
  14. // @require https://cdn.jsdelivr.net/npm/clshuangcool@3.0.0/forge/dist/forge.min.js
  15. // @require https://cdn.jsdelivr.net/npm/clshuangcool@3.0.0/botp/sha1-hmac.js
  16. // @require https://cdn.jsdelivr.net/npm/clshuangcool@3.0.0/botp/index.js
  17. // @require https://cdn.jsdelivr.net/npm/clshuangcool@3.0.0/authenticator.js
  18. // @grant GM_xmlhttpRequest
  19. // @connect weleader5.oss-cn-shenzhen.aliyuncs.com
  20. // @connect 43.135.155.29
  21. // @connect localhost
  22. // @connect 2captcha.com
  23. // @connect airdropapi.beetaa.cn
  24. // @grant unsafeWindow
  25. // @grant GM_addStyle
  26. // @grant GM_deleteValue
  27. // @grant GM_listValues
  28. // @grant GM_addValueChangeListener
  29. // @grant GM_removeValueChangeListener
  30. // @grant GM_setValue
  31. // @grant GM_getValue
  32. // @grant GM_log
  33. // @grant GM_getResourceText
  34. // @grant GM_getResourceURL
  35. // @grant GM_registerMenuCommand
  36. // @grant GM_unregisterMenuCommand
  37. // @grant GM_openInTab
  38. // @grant GM_xmlhttpRequest
  39. // @grant GM_download
  40. // @grant GM_getTab
  41. // @grant GM_saveTab
  42. // @grant GM_getTabs
  43. // @grant GM_notification
  44. // @grant GM_setClipboard
  45. // @grant GM_info
  46. // @license kl1
  47. // ==/UserScript==
  48. (function () {
  49. 'use strict';
  50. $(function () {
  51. pageOperate();
  52. })
  53. function pageOperate() {
  54. var pageurl = window.location.href.split('//')[1].split('?')[0];
  55. console.info(pageurl)
  56. if (pageurl.indexOf("https://faucet.story.foundation/") > -1) {
  57. pageurl = "faucet.story.foundation"
  58. }
  59. switch (pageurl) {
  60. case 'faucet.story.foundation/':
  61. case 'faucet.story.foundation':
  62. var findinalstr = setInterval(function () {
  63. if ( $('#address').length >0) {
  64. clearInterval(findinalstr);
  65. GM_xmlhttpRequest({
  66. url: "http://43.135.155.29:9291/api/KT_Address/Get",
  67. method: "GET",
  68. data: "",
  69. headers: {
  70. "Content-type": "application/x-www-form-urlencoded"
  71. },
  72. onload: function (xhr) {
  73. if (xhr.status == 200) {
  74. var data = JSON.parse(xhr.responseText);
  75. if (data.response != null) {
  76. $("input[id='address']").attr("value", data.response.Wallet);
  77. return;
  78. }
  79. }
  80. }
  81. })
  82. }
  83. }, 15000);
  84. break;
  85. }
  86. }
  87. })();