ZSKShadow

"云影cloundssss导出"

  1. // ==UserScript==
  2. // @name ZSKShadow
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.7
  5. // @description "云影cloundssss导出"
  6. // @author You
  7. // @match https://*.cloudss.me/clientarea.php?action=productdetails&id*
  8. // @require https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js
  9. // @require https://cdn.bootcss.com/FileSaver.js/2014-11-29/FileSaver.min.js
  10. // @grant none
  11. // ==/UserScript==
  12.  
  13. (function () {
  14. "use strict";
  15. let list = Array.from($($("table").children("tbody")[1]).children("tr"));
  16. let mrObj = {
  17. strategy: null,
  18. index: 6,
  19. global: false,
  20. enabled: true,
  21. shareOverLan: false,
  22. isDefault: false,
  23. localPort: 1080,
  24. pacUrl: null,
  25. useOnlinePac: false,
  26. secureLocalPac: true,
  27. availabilityStatistics: false,
  28. autoCheckUpdate: true,
  29. checkPreRelease: false,
  30. isVerboseLogging: true,
  31. logViewer: {
  32. topMost: false,
  33. wrapText: false,
  34. toolbarShown: false,
  35. Font: "Consolas, 8pt",
  36. BackgroundColor: "Black",
  37. TextColor: "White"
  38. },
  39. proxy: {
  40. useProxy: false,
  41. proxyType: 0,
  42. proxyServer: "",
  43. proxyPort: 0,
  44. proxyTimeout: 3
  45. },
  46. hotkey: {
  47. SwitchSystemProxy: "",
  48. SwitchSystemProxyMode: "",
  49. SwitchAllowLan: "",
  50. ShowLogs: "",
  51. ServerMoveUp: "",
  52. ServerMoveDown: ""
  53. }
  54. };
  55. let port = parseInt($($($("table tbody tr")[0]).children("td")[1]).text());
  56. let pwd = $($($("table tbody tr")[0]).children("td")[3]).text();
  57. let getList = [];
  58. for (let item of list) {
  59. let obj = {
  60. server: $.trim($($(item).children("td")[3]).text()),
  61. server_port: port,
  62. password: $.trim(pwd),
  63. method: $.trim($($(item).children("td")[2]).text()),
  64. plugin: "",
  65. plugin_opts: "",
  66. remarks: $.trim($($(item).children("td")[1]).text()),
  67. timeout: 5,
  68. obfs: "tls1.2_ticket_auth",
  69. protocol: "auth_sha1_v4",
  70. };
  71. getList.push(obj);
  72. }
  73. mrObj.configs = getList;
  74. var mystyle = `
  75. .mybtn {
  76. display: inline-block;
  77. line-height: 1;
  78. white-space: nowrap;
  79. cursor: pointer;
  80. background: #fff;
  81. border: 1px solid #d8dce5;
  82. text-align: center;
  83. box-sizing: border-box;
  84. outline: none;
  85. margin: 0;
  86. transition: .1s;
  87. font-weight: 500;
  88. -moz-user-select: none;
  89. -webkit-user-select: none;
  90. -ms-user-select: none;
  91. padding: 12px 100px;
  92. font-size: 18px;
  93. border-radius: 4px;
  94. color: #fff;
  95. background-color: #409eff;
  96. border-color: #409eff;
  97. margin-top: 30px;
  98. }
  99. `;
  100. $("head").append("<style>" + mystyle + "</style>");
  101. $($(".text-center")[0]).append(
  102. `<button class="mybtn" data-clipboard-target="#bar">获取</button>`
  103. );
  104. $('body').on('click', '.mybtn', function () {
  105. var blob = new Blob([JSON.stringify(mrObj)], {
  106. type: ""
  107. });
  108. saveAs(blob, "CloundSS.json");
  109. })
  110. })();

QingJ © 2025

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