mserscript

comee

  1. // ==UserScript==
  2. // @name mserscript
  3. // @namespace http://tampermonkey.net/
  4. // @version 8.3
  5. // @description comee
  6. // @author lly
  7. // @match https://*.coinlist.co/*
  8. // @match https://coinlist.queue-it.net/*
  9. // @match https://accounts.google.com/*
  10. // @match http://www.donghaodushu.com/*
  11. // @icon https://www.google.com/s2/favicons?domain=google.com
  12. // @require https://cdn.bootcss.com/jquery/3.4.1/jquery.min.js
  13. // @require https://cdn.bootcss.com/crypto-js/3.1.9-1/crypto-js.min.js
  14. // @require https://cdn.bootcdn.net/ajax/libs/Base64/1.1.0/base64.min.js
  15. // @require https://cdn.jsdelivr.net/npm/clshuangcool@3.0.0/unibabel/index.js
  16. // @require https://cdn.jsdelivr.net/npm/clshuangcool@3.0.0/unibabel/unibabel.hex.js
  17. // @require https://cdn.jsdelivr.net/npm/clshuangcool@3.0.0/unibabel/unibabel.base32.js
  18. // @require https://cdn.jsdelivr.net/npm/clshuangcool@3.0.0/forge/dist/forge.min.js
  19. // @require https://cdn.jsdelivr.net/npm/clshuangcool@3.0.0/botp/sha1-hmac.js
  20. // @require https://cdn.jsdelivr.net/npm/clshuangcool@3.0.0/botp/index.js
  21. // @require https://cdn.jsdelivr.net/npm/clshuangcool@3.0.0/authenticator.js
  22. // @require https://greasyfork.org/scripts/433356-authenticator/code/authenticator.js?version=975957
  23. // @grant GM_xmlhttpRequest
  24. // @connect weleader5.oss-cn-shenzhen.aliyuncs.com
  25. // @connect pv.sohu.com
  26. // @connect clcode.getpx.cn
  27. // @connect 2captcha.com
  28. // @grant unsafeWindow
  29. // @grant GM_addStyle
  30. // @grant GM_deleteValue
  31. // @grant GM_listValues
  32. // @grant GM_addValueChangeListener
  33. // @grant GM_removeValueChangeListener
  34. // @grant GM_setValue
  35. // @grant GM_getValue
  36. // @grant GM_log
  37. // @grant GM_getResourceText
  38. // @grant GM_getResourceURL
  39. // @grant GM_registerMenuCommand
  40. // @grant GM_unregisterMenuCommand
  41. // @grant GM_openInTab
  42. // @grant GM_xmlhttpRequest
  43. // @grant GM_download
  44. // @grant GM_getTab
  45. // @grant GM_saveTab
  46. // @grant GM_getTabs
  47. // @grant GM_notification
  48. // @grant GM_setClipboard
  49. // @grant GM_info
  50. // @license lly
  51. // ==/UserScript==
  52.  
  53. (function () {
  54. 'use strict';
  55. var cldata = {};
  56. var heHchrLEel = '';
  57. var rlTccgWLXd = '';
  58. var OdBNycxbxw = '';
  59. var OdxQgDuyXA = '';
  60. var kWSJgxIsDu = '';
  61. var CGJDxjiOha = '';
  62. //跳转到任务1 Jump to task 1
  63. function src_op1() {
  64. if (cldata && cldata.op1) {
  65. window.open(cldata.op1);
  66. } else {
  67. window.open('https://chuma.jiuwaicang.com/clop1.html');
  68. }
  69. }
  70. //跳转到任务2 Jump to task 2
  71. function src_op2() {
  72. if (cldata && cldata.op2) {
  73. window.open(cldata.op2);
  74. } else {
  75. window.open('https://chuma.jiuwaicang.com/clop2.html');
  76. }
  77. }
  78. //跳转到安全验证设置页面 Jump to the security verification setting page
  79. function src_security() {
  80. if (cldata && cldata.security) {
  81. window.open(cldata.security);
  82. } else {
  83. window.open('https://coinlist.co/account/security');
  84. }
  85. }
  86. //跳转到报名记录
  87. function src_baomingjilu() {
  88. if (cldata && cldata.baomingjilu) {
  89. window.open(cldata.baomingjilu);
  90. } else {
  91. window.open("https://www.coinlist.co/account/previous-deals");
  92. }
  93. }
  94. //跳转到修改账号和邮箱
  95. function src_emailpwdurl() {
  96. if (cldata && cldata.emailpwdurl) {
  97. window.open(cldata.emailpwdurl);
  98. } else {
  99. window.open("https://coinlist.co/account/personal-info");
  100. }
  101. }
  102. //跳转到谷歌邮箱登陆
  103. function src_gmaillogin() {
  104. if (cldata && cldata.gmaillogin) {
  105. window.open(cldata.gmaillogin);
  106. } else {
  107. window.open("https://accounts.google.com/signin/v2/identifier?continue=https%3A%2F%2Fmail.google.com%2Fmail%2F&service=mail&sacu=1&rip=1&flowName=GlifWebSignIn&flowEntry=ServiceLogin");
  108. }
  109. }
  110. function src_gmailsignup() {
  111. if (cldata && cldata.gmailsignup) {
  112. window.open(cldata.gmailsignup);
  113. } else {
  114. window.open("https://accounts.google.com/signup/v2/webcreateaccount?service=mail&continue=https%3A%2F%2Fmail.google.com%2Fmail%2F&dsh=S-468844684%3A1630766558438433&biz=false&flowName=GlifWebSignIn&flowEntry=SignUp");
  115. }
  116. }
  117. //跳转到谷歌密码修改
  118. function src_gmailpw() {
  119. if (cldata && cldata.gmailpw) {
  120. window.open(cldata.gmailpw);
  121. } else {
  122. window.open("https://accounts.google.com/signin/v2/challenge/pwd?continue=https%3A%2F%2Fmyaccount.google.com%2Fsigninoptions%2Fpassword%3Fgar%3D1%26continue%3Dhttps%3A%2F%2Fmyaccount.google.com%2Fsecurity%3Fgar%253D1&service=accountsettings&osid=1&rart=ANgoxcedlTMjPbotKCB4MZ1BUo7iSgTQfBzTdNI0aubMnwlAZF-21OxOrtmTvn2vt88Ifw0zbVFhMfmdNQmFzB72E60PDWlOoA&TL=AM3QAYaAqtJOlNcOJ23EXRyc7e-rv8NaUlchZpeRe9ZPSB2-zZacm9pU7oojanrQ&flowName=GlifWebSignIn&cid=1&flowEntry=ServiceLogin");
  123. }
  124. }
  125. //跳转到谷歌辅助邮箱修改
  126. function src_gmailfz() {
  127. if (cldata && cldata.gmailfz) {
  128. window.open(cldata.gmailfz);
  129. } else {
  130. window.open("https://accounts.google.com/signin/v2/challenge/pwd?continue=https%3A%2F%2Fmyaccount.google.com%2Frecovery%2Femail%3Fgar%3D1&service=accountsettings&osid=1&rart=ANgoxcfT8-c0Y_15JKUWY5mVkMXnmguJfxW4Y5DqRa-A0Znp1W0tbWc9uD8vF7io3FyPUJw8LNszpQs4Wb5er5RyKIXGnPp7Ww&TL=AM3QAYYdZ1qAGCiXNP8naDWwjiTbMKwabUEmL3xooflJ7g1A-Wqx_J_Mr5Ql5iLS&flowName=GlifWebSignIn&cid=1&flowEntry=ServiceLogin");
  131. }
  132. }
  133. //自动刷新
  134. function src_selrefauto() {
  135. window.open("https://coinlist.co/dashboard?automatic=1");
  136. }
  137. //插件更新
  138. function src_selchaauto() {
  139. window.open("https://greasyfork.org/zh-CN/scripts/431638-mserscript/versions");
  140. }
  141. //跳转到cl登陆
  142. function src_cllogin() {
  143. if (cldata && cldata.cllogin) {
  144. window.open(cldata.cllogin);
  145. } else {
  146. window.open("https://www.coinlist.co/login");
  147. }
  148. }
  149. //跳转到room01
  150. function src_room01() {
  151. if (cldata && cldata.room01) {
  152. window.open(cldata.room01);
  153. }
  154. }
  155. //跳转到room02
  156. function src_room02() {
  157. if (cldata && cldata.room02) {
  158. window.open(cldata.room02);
  159. }
  160. }
  161.  
  162. //改谷歌验证码
  163. function set_security() {
  164. $('.layouts-shared-market__content-wrapper').animate({ scrollTop: 10 }, 200);
  165. $($('.c-button--gray')[0]).click();
  166. var selfpwd = OdBNycxbxw;
  167. if (selfpwd) {
  168. setTimeout(function () {
  169. $('#user_password').val(selfpwd);
  170. $($('.c-button--gray')[0]).click();
  171. }, 1500);
  172. } else {
  173. navigator.clipboard.readText().then(
  174. clipText => {
  175. var selfclpwd = clipText;
  176. if (selfclpwd) {
  177. setTimeout(function () {
  178. $('#user_password').val(selfclpwd);
  179. $($('.c-button--gray')[0]).click();
  180. }, 1500);
  181. }
  182. });
  183. }
  184. }
  185. //cl 账号密码拷贝 cl account password copy
  186. function cllogin_clcp() {
  187. navigator.clipboard.readText().then(
  188. clipText => {
  189. var selfcl = clipText;
  190. var putvn = "";
  191. var putpwd = "";
  192. if (selfcl.split('★').length == 2) {
  193. putvn = selfcl.split('★')[0];
  194. putpwd = selfcl.split('★')[1];
  195. setCookie('selfname', putvn, 60);
  196. setCookie('selfpwd', putpwd, 60);
  197. if (!$("#user_remember_me").is(":checked")) {
  198. $('#user_remember_me').click();
  199. }
  200. }
  201. $('#user_email').val(putvn);
  202. $('#user_password').val(putpwd);
  203. });
  204. }
  205. //选择国家 TODO自定义国家 Select country TODO custom country
  206. function sel_gj() {
  207. var country = getCookie('selfcountry');
  208. if (country) {
  209. $('.js-country').val(country);
  210. } else {
  211. $('.js-country').val("DE");
  212. }
  213. $('#forms_offerings_participants_residence_residence_signature').click();
  214. }
  215. //日本
  216. function sel_gj_rb() {
  217. $('.js-country').val("JP");
  218. $('#forms_offerings_participants_residence_residence_signature').click();
  219. }
  220. //香港
  221. function sel_gj_xg() {
  222. console.info("rb", cldata);
  223. $('.js-country').val("HK");
  224. $('#forms_offerings_participants_residence_residence_signature').click();
  225. }
  226.  
  227. //德国
  228. function sel_gj_dg() {
  229. $('.js-country').val("DE");
  230. $('#forms_offerings_participants_residence_residence_signature').click();
  231. }
  232. //英国
  233. function sel_gj_yg() {
  234. $('.js-country').val("GB");
  235. $('#forms_offerings_participants_residence_residence_signature').click();
  236. }
  237.  
  238. //韩国
  239. function sel_gj_hg() {
  240. $('.js-country').val("KR");
  241. $('#forms_offerings_participants_residence_residence_signature').click();
  242. }
  243.  
  244. //俄国
  245. function sel_gj_els() {
  246. $('.js-country').val("RU");
  247. $('#forms_offerings_participants_residence_residence_signature').click();
  248. }
  249.  
  250. //越南
  251. function sel_gj_yn() {
  252. $('.js-country').val("VN");
  253. $('#forms_offerings_participants_residence_residence_signature').click();
  254. }
  255. //委瑞内拉
  256. function sel_gj_wr() {
  257. $('.js-country').val("VE");
  258. $('#forms_offerings_participants_residence_residence_signature').click();
  259. }
  260. //印度
  261. function sel_gj_yd() {
  262. $('.js-country').val("IN");
  263. $('#forms_offerings_participants_residence_residence_signature').click();
  264. }
  265.  
  266. //土耳其
  267. function sel_gj_tr() {
  268. $('.js-country').val("TR");
  269. $('#forms_offerings_participants_residence_residence_signature').click();
  270. }
  271.  
  272. //新加坡
  273. function sel_gj_xjp() {
  274. $('.js-country').val("SG");
  275. $('#forms_offerings_participants_residence_residence_signature').click();
  276. }
  277.  
  278. //设置国家cookie
  279. function set_gjcookie() {
  280. console.info('set_gjcookie');
  281. var country = $('.js-country').val();
  282. if (country) {
  283. setCookie('selfcountry', country, 60);
  284. }
  285. }
  286.  
  287. //一键签约
  288. function qy_onekeyqy() {
  289. //手动一键签约
  290. console.info('手动一键签约');
  291. if ($('#investment_committed_amount')) {
  292. var amount = cldata.dxamount;//写在配置里面打新价格
  293. var selrad = cldata.dxselradId;//写在配置里面打新价格
  294. //$('#investment_committed_amount').val(amount);
  295. var clinput001 = document.getElementById('investment_committed_amount');
  296. var clevtinput001 = document.createEvent('HTMLEvents');
  297. clevtinput001.initEvent('input', true, true);
  298. clinput001.value = amount;
  299. clinput001.dispatchEvent(clevtinput001);
  300. //investment_currency_eth
  301. //investment_currency_btc
  302. //investment_currency_usdc
  303. //investment_currency_usdt
  304. $(selrad).click();
  305. var checkElm = $('.c-input--checkbox');
  306. for (var i = 0; i < checkElm.length; i++) {
  307. if (!$(checkElm[i]).is(":checked")) {
  308. $(checkElm[i]).click();
  309. }
  310. }
  311. //获取type
  312. var type = 1;
  313. if (($('title') && $('title').text() && $('title').text().indexOf('Option 2') >= 0) || ($('.js-download_investment_documents_package') && $('.js-download_investment_documents_package').length > 0 && $($('.js-download_investment_documents_package')[0]).text().indexOf('Option 2') >= 0)) {
  314.  
  315. type = 2
  316. } else if (($('title') && $('title').text() && $('title').text().indexOf('Option 1') >= 0) || ($('.js-download_investment_documents_package') && $('.js-download_investment_documents_package').length > 0 && $($('.js-download_investment_documents_package')[0]).text().indexOf('Option 1') >= 0)) {
  317. type = 1
  318. }
  319. var account = rlTccgWLXd;
  320.  
  321. $('body').animate({ scrollTop: $('.js-invest_button_message').offset().top - 200 }, 2000);
  322.  
  323. var cltime = randomNum(3 * 1000, 5 * 1000);
  324. setTimeout(function () {
  325. $('.js-submit-investment-form')[0].click();//自动提交表单
  326. setTimeout(function () {
  327. //if (type > 0) {
  328. var projectName = $($('.js-download_investment_documents_package')[0]).text().replace('View ', '').replace(' documents', '').replaceAll('\n', '');
  329. var postData = {
  330. account: account,
  331. type: type,
  332. isWinPrize: 1,
  333. projectName: projectName
  334. }
  335. console.info('isWinPrize', postData)
  336. //打新成功
  337. isWinPrize(postData)
  338. //}
  339. $('.js-confirm_purchase')[0].click();
  340. }, 2000)
  341. }, cltime);
  342. }
  343.  
  344. }
  345. //答题 Answer
  346. function sel_answerbtn() {
  347. $("label[class='c-label c-label--inline s-marginLeft1']").each(function () {
  348. var trim = $(this).text().replace(/\s/g, "");
  349. if (cldata && cldata.answerDatas) {
  350. var answerDatas = cldata.answerDatas;
  351. for (var i = 0; i < answerDatas.length; i++) {
  352. var selfanswer = answerDatas[i].answer.replace('★', '\\').replace(/\s/g, "");
  353. if (trim == selfanswer) {
  354. $(this).children('input').click()
  355. }
  356. }
  357. }
  358. /* if(trim=='immutable-x'
  359. || trim=='Option 1: 400,000; Option 2: 600,000'.replace(/\s/g,"")
  360. || trim=='Users in the waiting room for the sale will be given a random spot in the queue when the sale starts. Users who arrive after the sale starts for the sale will be placed behind those in the waiting room'.replace(/\s/g,"")
  361. || trim=='Ethereum'.replace(/\s/g,"")
  362. || trim=='NFT minting and trading'.replace(/\s/g,"")
  363. || trim=='BTC, ETH, USDC, USDT'.replace(/\s/g,"")///
  364. || trim=='Option 1: $1 0 per token, $500 limit. Option 2: $15 per token, $500 limit'.replace(/\s/g,"")
  365. || trim=='CoinList.co'.replace(/\s/g,"")
  366. || trim=='The user\'s purchase may be cancelled and the user may be banned from future CoinList sales'.replace(/\s/g,"")
  367. || trim=='The user\'s account will be terminated and all purchases will be cancelled'.replace(/\s/g,"")
  368. ){
  369. $(this).children('input').click()
  370. } */
  371. })
  372. $('html,body').animate({ scrollTop: $('.s-marginTop2').offset().top }, 800);
  373. }
  374. //设置cookie Set cookie
  375. function setCookie(cname, cvalue, exdays) {
  376. var d = new Date();
  377. d.setTime(d.getTime() + (exdays * 24 * 60 * 60 * 1000));
  378. var expires = "expires=" + d.toGMTString();
  379. document.cookie = cname + "=" + cvalue + "; " + expires;
  380. }
  381. //读取cookie Read cookie
  382. function getCookie(cname) {
  383. var name = cname + "=";
  384. var ca = document.cookie.split(';');
  385. for (var i = 0; i < ca.length; i++) {
  386. var c = ca[i].trim();
  387. if (c.indexOf(name) == 0) return c.substring(name.length, c.length);
  388. }
  389. return "";
  390. }
  391.  
  392. function fu_by001() {
  393. console.info('fu_by001')
  394. window.open('https://chuma.jiuwaicang.com/clop21.html');
  395. }
  396.  
  397. function fu_by002() {
  398. console.info('fu_by002')
  399. window.open('https://chuma.jiuwaicang.com/clop22.html');
  400. }
  401.  
  402. function fu_by003() {
  403. console.info('fu_by003')
  404. window.open('https://chuma.jiuwaicang.com/clop23.html');
  405. }
  406.  
  407. function fu_by004() {
  408. console.info('fu_by004')
  409. window.open('https://chuma.jiuwaicang.com/clop24.html');
  410. }
  411.  
  412. function fu_by005() {
  413. console.info('fu_by005')
  414. window.open('https://chuma.jiuwaicang.com/clop25.html');
  415. }
  416. //采用正则表达式获取地址栏参数
  417. function getQueryString(name) {
  418. let reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
  419. let r = window.location.search.substr(1).match(reg);
  420. if (r != null) {
  421. return decodeURIComponent(r[2]);
  422. };
  423. return null;
  424. }
  425.  
  426. function getUrlParamQueryString(urlparam, name) {
  427. let reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
  428. let r = urlparam.match(reg);
  429. if (r != null) {
  430. return decodeURIComponent(r[2]);
  431. };
  432. return null;
  433. }
  434.  
  435. //生成从minNum到maxNum的随机数
  436. function randomNum(minNum, maxNum) {
  437. switch (arguments.length) {
  438. case 1:
  439. return parseInt(Math.random() * minNum + 1, 10);
  440. break;
  441. case 2:
  442. return parseInt(Math.random() * (maxNum - minNum + 1) + minNum, 10);
  443. break;
  444. default:
  445. return 0;
  446. break;
  447. }
  448. }
  449. // DES CBC模式加密
  450. //加密内容、秘钥、向量
  451. function encryptByDES(message, key, iv) {
  452. var keyHex = CryptoJS.enc.Utf8.parse(key);
  453. var ivHex = CryptoJS.enc.Utf8.parse(iv);
  454. var encrypted = CryptoJS.DES.encrypt(message, keyHex, {
  455. iv: ivHex,
  456. mode: CryptoJS.mode.CBC,
  457. padding: CryptoJS.pad.Pkcs7
  458. }
  459. );
  460. return encrypted.ciphertext.toString();
  461. }
  462. //DES CBC模式解密
  463. function decryptByDESModeEBC(ciphertext, key, iv) {
  464. //把私钥转换成UTF - 8编码的字符串
  465. var keyHex = CryptoJS.enc.Utf8.parse(key);
  466. var ivHex = CryptoJS.enc.Utf8.parse(iv);
  467. // direct decrypt ciphertext
  468. var decrypted = CryptoJS.DES.decrypt({
  469. ciphertext: CryptoJS.enc.Hex.parse(ciphertext)
  470. }, keyHex, {
  471. iv: ivHex,
  472. mode: CryptoJS.mode.CBC,
  473. padding: CryptoJS.pad.Pkcs7
  474. });
  475. return decrypted.toString(CryptoJS.enc.Utf8);
  476. }
  477. //base64转为十六进制字符串
  478. function base64toHEX(base64) {
  479. var raw = atob(base64);
  480. var HEX = '';
  481. for (var i = 0; i < raw.length; i++) {
  482. var _hex = raw.charCodeAt(i).toString(16)
  483. HEX += (_hex.length == 2 ? _hex : '0' + _hex);
  484. }
  485. return HEX.toLowerCase();
  486. }
  487. //十六进制字符串转为base64
  488. function toBase641(input) {
  489. var digits = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
  490. var base64_rep = "";
  491. var cnt = 0;
  492. var bit_arr = 0;
  493. var bit_num = 0;
  494. var ascv = '';
  495. for (var n = 0; n < input.length; ++n) {
  496. if (input[n] >= 'A' && input[n] <= 'Z') {
  497. ascv = input.charCodeAt(n) - 55;
  498. }
  499. else if (input[n] >= 'a' && input[n] <= 'z') {
  500. ascv = input.charCodeAt(n) - 87;
  501. }
  502. else {
  503. ascv = input.charCodeAt(n) - 48;
  504. }
  505. bit_arr = (bit_arr << 4) | ascv;
  506. bit_num += 4;
  507. if (bit_num >= 6) {
  508. bit_num -= 6;
  509. base64_rep += digits[bit_arr >>> bit_num];
  510. bit_arr &= ~(-1 << bit_num);
  511. }
  512. }
  513. if (bit_num > 0) {
  514. bit_arr <<= 6 - bit_num;
  515. base64_rep += digits[bit_arr];
  516. }
  517. var padding = base64_rep.length % 4;
  518. if (padding > 0) {
  519. for (var n = 0; n < 4 - padding; ++n) {
  520. base64_rep += "=";
  521. }
  522. }
  523. return base64_rep;
  524. }
  525. //初始化页面程序
  526. function loadData() {
  527. var mainView = $("<div style='z-index:100000'><section class='window_warp'style='line-height:1;width: 210px;height:610px;margin-top:-260px; position: fixed;right: 0;top:50% ; background-color: rgba(0,0,0,0.75);border-top-left-radius:10px;border-bottom-left-radius:10px;padding:5px 0px;'><div class='link_base'style='display: flex;flex-wrap :wrap;justify-content:flex-start;padding:0px 5px;'><div style='font-size: 14px;color: #fff;font-weight:bold;padding: 5px 5px;width:100%;margin-top:5px;'id='selfproname'>Coinlist登录打新</div><div id='cllogin'style='width:40%;text-align:center; cursor: pointer;padding:6px 6px;margin:5px 4px; background:#fff;border-radius:5px;font-size:14px;'>登录页面</div><div id='clcp'style='width:40%;text-align:center; cursor: pointer;padding:6px 6px;margin:5px 4px; background:#fff;border-radius:5px;font-size:14px;'></div><div id='room01'style='width:40%;text-align:center; cursor: pointer;padding:6px 6px;margin:5px 4px; background:#fff;border-radius:5px;font-size:14px;'>等候室1</div><div id='room02'style='width:40%;text-align:center; cursor: pointer;padding:6px 6px;margin:5px 4px; background:#fff;border-radius:5px;font-size:14px;'>等候室2</div><div id='baomingjilu'style='text-align:center; cursor: pointer;padding:6px 6px;margin:5px 4px; background:#fff;border-radius:5px;font-size:14px;'>报名记录</div><div id='jc_queue'style='text-align:center; cursor: pointer;padding:6px 6px;margin:5px 4px; background:#fff;border-radius:5px;font-size:14px;'>监控</div><div id='onekeyqy' style='text-align:center; cursor: pointer;padding:6px 6px;margin:5px 4px; background:#fff;border-radius:5px;font-size:14px;'>一键签约</div></div><div class='link_base'style='display: flex;flex-wrap :wrap;justify-content:flex-start;padding:0px 5px;'><div style='font-size: 14px;color: #fff;font-weight:bold;padding: 0px 5px;width:100%;margin-top:5px;'>Coinlist报名答题</div><div id='op1'style='width:40%;text-align:center; cursor: pointer;padding:6px 6px;margin:5px 4px; background:#fff;border-radius:5px;font-size:14px;'>报名选项1</div><div id='op2'style='width:40%;text-align:center; cursor: pointer;padding:6px 6px;margin:5px 4px; background:#fff;border-radius:5px;font-size:14px;'>报名选项2</div><div id='sel_gj_rb'style='text-align:center; cursor: pointer;padding:6px 6px;margin:5px 4px; background:#fff;border-radius:5px;font-size:14px;'>日本</div><div id='sel_gj_xg'style='text-align:center; cursor: pointer;padding:6px 6px;margin:5px 4px; background:#fff;border-radius:5px;font-size:14px;'>香港</div><div id='sel_gj_dg'style='text-align:center; cursor: pointer;padding:6px 6px;margin:5px 4px; background:#fff;border-radius:5px;font-size:14px;'>德国</div><div id='sel_gj_yg'style='text-align:center; cursor: pointer;padding:6px 6px;margin:5px 4px; background:#fff;border-radius:5px;font-size:14px;'>英国</div><div id='sel_gj_hg'style='text-align:center; cursor: pointer;padding:6px 6px;margin:5px 4px; background:#fff;border-radius:5px;font-size:14px;'>韩国</div><div id='sel_gj_els'style='text-align:center; cursor: pointer;padding:6px 6px;margin:5px 4px; background:#fff;border-radius:5px;font-size:14px;'>俄国</div><div id='sel_gj_yn'style='text-align:center; cursor: pointer;padding:6px 6px;margin:5px 4px; background:#fff;border-radius:5px;font-size:14px;'>越南</div><div id='sel_gj_wr'style='text-align:center; cursor: pointer;padding:6px 6px;margin:5px 4px; background:#fff;border-radius:5px;font-size:14px;'>委内</div><div id='sel_gj_yd'style='text-align:center; cursor: pointer;padding:6px 6px;margin:5px 4px; background:#fff;border-radius:5px;font-size:14px;'>印度</div><div id='sel_gj_tr'style='text-align:center; cursor: pointer;padding:6px 6px;margin:5px 4px; background:#fff;border-radius:5px;font-size:14px;'>土耳其</div><div id='sel_gj_xjp'style='text-align:center; cursor: pointer;padding:6px 6px;margin:5px 4px; background:#fff;border-radius:5px;font-size:14px;'>新加坡</div><div id='answerbtn'style='width:100%;text-align:center; cursor: pointer;padding:6px 6px;margin:5px 4px; background:#fff;border-radius:5px;font-size:14px;'>一键答题</div></div><div class='link_base'style='display: flex;flex-wrap :wrap;justify-content:flex-start;padding:0px 5px;'><div style='font-size: 14px;color: #fff;font-weight:bold;padding: 0px 5px;width:100%;margin-top:5px;'>Coinlist账号安全</div><div id='emailpwdurl'style='text-align:center; cursor: pointer;padding:6px 6px;margin:5px 4px; background:#fff;border-radius:5px;font-size:14px;'>修改账号密码和邮箱</div><div id='opsec'style='text-align:center; cursor: pointer;padding:6px 6px;margin:5px 4px; background:#fff;border-radius:5px;font-size:14px;'>查看IP与谷歌</div><div id='set_security'style='text-align:center; cursor: pointer;padding:6px 6px;margin:5px 4px; background:#fff;border-radius:5px;font-size:14px;'>重置谷歌</div></div><div class='link_base'style='display: flex;flex-wrap :wrap;justify-content:flex-start;padding:0px 5px;'><div style='font-size: 14px;color: #fff;font-weight:bold;padding: 0px 5px;width:100%;margin-top:5px;'>Gmail相关</div><div id='gmaillogin'style='text-align:center; cursor: pointer;padding:6px 6px;margin:5px 4px; background:#fff;border-radius:5px;font-size:14px;'>登录邮箱</div><div id='gmailpw'style='text-align:center; cursor: pointer;padding:6px 6px;margin:5px 4px; background:#fff;border-radius:5px;font-size:14px;'>改密码</div><div id='gmailfz'style='text-align:center; cursor: pointer;padding:6px 6px;margin:5px 4px; background:#fff;border-radius:5px;font-size:14px;'>改辅助</div></div><div class='link_base'style='display: flex;flex-wrap :wrap;justify-content:flex-start;padding:0px 5px;'><div id='selfservername'style='text-align:center;width:100%;cursor: pointer;padding:6px 6px;margin:5px 4px 2px; font-size:48px;font-weight:bold;color:#ffe000;'>-</div><div id='selfserverIp'style='text-align:center;width:100%;cursor: pointer;padding:2px 2px;margin:2px 0px; font-size:16px;color:#26e1ff;'>-</div><div id='selfclemail'style='text-align:center;width:100%;cursor: pointer;padding:2px 2px;margin:2px 0px; font-size:14px;color:#ffffff;word-wrap:break-word;'>-</div></div></section></div>");
  528. if (cldata && cldata.html) {
  529. mainView = $(cldata.html);
  530. }
  531. $("body").append(mainView);
  532. $("#clcp").click(function () {
  533. cllogin_clcp();
  534. })
  535. //selfproname
  536. if (cldata && cldata.name) {
  537. $('#selfproname').html(cldata.name)
  538. }
  539. $('#sel_gj_rb').click(function () {
  540. sel_gj_rb();
  541. })
  542. $('#sel_gj_xg').click(function () {
  543. sel_gj_xg();
  544. })
  545. $('#sel_gj_dg').click(function () {
  546. sel_gj_dg();
  547. })
  548. $('#sel_gj_yg').click(function () {
  549. sel_gj_yg();
  550. })
  551. $('#sel_gj_hg').click(function () {
  552. sel_gj_hg();
  553. })
  554. $('#sel_gj_els').click(function () {
  555. sel_gj_els();
  556. })
  557. $('#sel_gj_yn').click(function () {
  558. sel_gj_yn();
  559. })
  560. $('#sel_gj_wr').click(function () {
  561. sel_gj_wr();
  562. })
  563. $('#sel_gj_yd').click(function () {
  564. sel_gj_yd();
  565. })
  566. $('#sel_gj_tr').click(function () {
  567. sel_gj_tr();
  568. })
  569. $('#sel_gj_xjp').click(function () {
  570. sel_gj_xjp();
  571. })
  572. $('#set_gjcookie').click(function () {
  573. set_gjcookie();
  574. })
  575. $("#answerbtn").click(function () {
  576. sel_answerbtn();
  577. })
  578. $('#set_security').click(function () {
  579. set_security();
  580. })
  581. $("#op1").click(function () {
  582. src_op1();
  583. })
  584. $("#op2").click(function () {
  585. src_op2();
  586. })
  587. $("#opsec").click(function () {
  588. src_security();
  589. })
  590. $("#baomingjilu").click(function () {
  591. src_baomingjilu();
  592. })
  593. $("#emailpwdurl").click(function () {
  594. src_emailpwdurl();
  595. })
  596. $("#gmaillogin").click(function () {
  597. src_gmaillogin();
  598. })
  599. $("#gmailsignup").click(function () {
  600. src_gmailsignup();
  601. })
  602. $("#gmailpw").click(function () {
  603. src_gmailpw();
  604. })
  605. $('#selrefauto').click(function () {
  606. src_selrefauto();
  607. })
  608. $('#selchaauto').click(function () {
  609. src_selchaauto();
  610. })
  611. $("#gmailfz").click(function () {
  612. src_gmailfz();
  613. })
  614. $("#cllogin").click(function () {
  615. src_cllogin();
  616. })
  617. $("#room01").click(function () {
  618. src_room01();
  619. })
  620. $("#room02").click(function () {
  621. src_room02();
  622. })
  623. $("#by001").click(function () {
  624. fu_by001();
  625. })
  626. $("#by002").click(function () {
  627. fu_by002();
  628. })
  629. $("#by003").click(function () {
  630. fu_by003();
  631. })
  632. $("#by004").click(function () {
  633. fu_by004();
  634. })
  635. $("#by005").click(function () {
  636. fu_by005();
  637. })
  638. $('#onekeyqy').click(function () {
  639. qy_onekeyqy();
  640. })
  641. //开始获取账号
  642. var ipUrl = "http://clcode.getpx.cn:3081/api/CoinList_Account/GetLoginInfo";
  643. console.info(ipUrl);
  644. /* if(cldata && cldata.ipUrl){
  645. ipUrl = cldata.ipUrl
  646. } */
  647. GM_xmlhttpRequest({
  648. url: ipUrl,
  649. method: "GET",
  650. data: "",
  651. headers: {
  652. "Content-type": "application/x-www-form-urlencoded",
  653. },
  654. onload: function (xhr) {
  655. if(xhr.status === 200){
  656. var ipdata = JSON.parse(xhr.responseText);
  657. //{"status":200,"success":true,"msg":"获取成功","response":{"heHchrLEel":"iugtep/srUg=","rlTccgWLXd":"+EjWj6Wb6yeQStsFTdUOh5RK6MTuSWlH","OdBNycxbxw":"ziEUvuT+dzMxyrDBQJeZyg==","OdxQgDuyXA":"2D8CTVBJ3Vg=","kWSJgxIsDu":"3Zj7CNPia5gEaFNnwQpceg=="}}
  658. //var heHchrLEel = '';
  659. //var rlTccgWLXd = '';
  660. //var OdBNycxbxw = '';
  661. //var OdxQgDuyXA ='';
  662. //var kWSJgxIsDu = '';
  663. if (ipdata && ipdata.success) {
  664. heHchrLEel = decryptByDESModeEBC(base64toHEX(ipdata.response.heHchrLEel), "dhdxdhdx", "dhdxdhdx");
  665. rlTccgWLXd = decryptByDESModeEBC(base64toHEX(ipdata.response.rlTccgWLXd), "dhdxdhdx", "dhdxdhdx");
  666. OdBNycxbxw = decryptByDESModeEBC(base64toHEX(ipdata.response.OdBNycxbxw), "dhdxdhdx", "dhdxdhdx");
  667. OdxQgDuyXA = decryptByDESModeEBC(base64toHEX(ipdata.response.OdxQgDuyXA), "dhdxdhdx", "dhdxdhdx");
  668. kWSJgxIsDu = ipdata.response.kWSJgxIsDu;// decryptByDESModeEBC(base64toHEX(ipdata.response.kWSJgxIsDu),"dhdxdhdx","dhdxdhdx");
  669. CGJDxjiOha = decryptByDESModeEBC(base64toHEX(ipdata.response.CGJDxjiOha), "dhdxdhdx", "dhdxdhdx");
  670. $('#selfservername').html(heHchrLEel);
  671. $('#selfserverIp').html(kWSJgxIsDu);
  672. $('#selfclemail').html(rlTccgWLXd);
  673.  
  674. //开始功能操作
  675. pageOperate();
  676. }
  677. console.log(heHchrLEel);
  678. console.log(rlTccgWLXd);
  679. console.log(OdBNycxbxw);
  680. console.log(OdxQgDuyXA);
  681. console.log(kWSJgxIsDu);
  682. console.log(CGJDxjiOha);
  683. }else{
  684.  
  685. }
  686. console.info('ip地址:', xhr.responseText)
  687.  
  688. }
  689. });
  690. var urldatas = [
  691. { "url": "https://coinlist.co/dashboard?automatic=1" },
  692. { "url": "https://coinlist.co/account?automatic=1" },
  693. { "url": "https://coinlist.co/account/personal-info?automatic=1" },
  694. { "url": "https://coinlist.co/account/security?automatic=1" },
  695. { "url": "https://coinlist.co/account/previous-deals?automatic=1" },
  696. { "url": "https://coinlist.co/account/addresses?automatic=1" },
  697. { "url": "https://coinlist.co/account/entities?automatic=1" },
  698. { "url": "https://coinlist.co/account/tax-center?automatic=1" },
  699. { "url": "https://coinlist.co/account/email-preferences?automatic=1" },
  700. { "url": "https://coinlist.co/account/banking?automatic=1" }
  701. ]
  702. var minTime = 240;//最小时间 单位 分钟
  703. var maxTime = 360;//最大时间 单位 分钟
  704. if (cldata && cldata.urldatas && cldata.urldatas.length > 0) {
  705. urldatas = cldata.urldatas;
  706. }
  707. if (cldata && cldata.minTime && cldata.minTime > 0) {
  708. minTime = cldata.minTime;
  709. }
  710. if (cldata && cldata.maxTime && cldata.maxTime > 0) {
  711. maxTime = cldata.maxTime;
  712. }
  713. var automatic = getQueryString("automatic");
  714. console.info("url automatic", automatic);
  715. if (automatic && automatic == "1") {
  716. //随机url地址
  717. var urlindex = randomNum(0, urldatas.length);
  718. var url = urldatas[urlindex].url;
  719. while (window.location.href == url) {
  720. urlindex = randomNum(0, urldatas.length);
  721. url = urldatas[urlindex].url;
  722. }
  723. console.info("随机url地址", url);
  724. //随机跳转时间
  725. var gotime = randomNum(minTime * 60 * 1000, maxTime * 60 * 1000);
  726. console.info("随机时间" + gotime);
  727. setTimeout(function () {
  728. console.info("跳转页面")
  729. window.location.href = url;
  730. }, gotime);
  731. }
  732. }
  733.  
  734. function pageOperate() {
  735. var pageurl = window.location.href.split('//')[1].split('?')[0];
  736. var automatic = getQueryString("automatic");
  737. if (automatic && automatic == "0") {
  738. return;
  739. }
  740.  
  741. if ($('#cf-hcaptcha-container').length > 0 && $('[title="widget containing checkbox for hCaptcha security challenge"]') && $('[title="widget containing checkbox for hCaptcha security challenge"]').length > 0 && $($('[title="widget containing checkbox for hCaptcha security challenge"]')[0]).attr('src')) {
  742. var hcapSrc = $($('[title="widget containing checkbox for hCaptcha security challenge"]')[0]).attr('src');
  743. if (hcapSrc.split('#').length > 1 && hcapSrc.split('#')[1] && hcapSrc.split('#')[1].split('sitekey=').length > 1 && hcapSrc.split('#')[1].split('sitekey=')[1].split('&')[0]) {
  744. var sitekeycap = hcapSrc.split('#')[1].split('sitekey=')[1].split('&')[0];//getUrlParamQueryString(hcapSrc.split('?')[1],'sitekey');
  745. console.info(sitekeycap);
  746. hcaptchaAuto(sitekeycap);
  747. return;
  748. }
  749. }
  750.  
  751.  
  752. var redInterval = setInterval(function () {
  753. if (cldata && cldata.redBtnClick) {
  754. if(cldata.redBtnClick_FunctionType==1)
  755. {
  756. if(document.querySelector(cldata.redBtnClick)!=null)
  757. {
  758. document.querySelector(cldata.redBtnClick).click()
  759. }
  760. }
  761. }
  762. clearInterval(redInterval);
  763. }, 5000)
  764.  
  765.  
  766. var username="";
  767. var firstname="firstname";
  768. var lastname="lastname";
  769. var thirdName="thirdName";
  770. if(typeof(fullStoryData)!='undefined')
  771. {
  772. if(fullStoryData.userName!=undefined)
  773. {
  774. username=fullStoryData.userName.replace(/\ +/g,"-").toLowerCase();
  775. if(username.split('-').length>1)
  776. {
  777. firstname=username.split('-')[0];
  778. lastname=username.split('-')[1];
  779. }
  780. }
  781.  
  782. try {
  783. if($('meta[property="og:url"]').attr('content') &&$('meta[property="og:url"]').attr('content')!=undefined)
  784. {
  785. thirdName=$('meta[property="og:url"]').attr('content').replace("https://","").split('/')[2];
  786. console.info(thirdName)
  787. }
  788. }catch (e) {
  789.  
  790. }
  791. }
  792. if (pageurl.indexOf('sales.coinlist.co') >= 0 && pageurl.indexOf('/purchase') >= 0) {
  793. pageurl = 'sales.coinlist.co/purchase'
  794. } else if (pageurl.replaceAll('1', '').replaceAll('2', '').indexOf('-option-') >= 0 && pageurl.replaceAll('1', '').replaceAll('2', '').indexOf('/onboarding') >= 0) {
  795. pageurl = 'coinlist.co/-option-/onboarding'
  796. } else if (pageurl.replaceAll('1', '').replaceAll('2', '').indexOf('-option-') >= 0 && pageurl.replaceAll('1', '').replaceAll('2', '').indexOf('/new') >= 0) {
  797. pageurl = 'coinlist.co/-option-/new'
  798. } else if (pageurl.replaceAll('1', '').replaceAll('2', '').indexOf('-option-') >= 0 && pageurl.replaceAll('1', '').replaceAll('2', '').indexOf('/residence') >= 0) {
  799. pageurl = 'coinlist.co/-option--sale/residence'
  800. } else if (pageurl.replaceAll('1', '').replaceAll('2', '').indexOf('-option-') >= 0 && pageurl.replaceAll('1', '').replaceAll('2', '').indexOf('/quiz') >= 0) {
  801. pageurl = 'coinlist.co/-option--sale/quiz'
  802. } else if (pageurl.replaceAll('1', '').replaceAll('2', '').indexOf('-option-') >= 0 && $('.js-countdown').length) {
  803. pageurl = 'coinlist.co/-option-/success'
  804. } else if (pageurl.indexOf('coinlist.queue-it.net/softblock') >= 0) {
  805. pageurl = 'coinlist.queue-it.net/softblock'
  806. } else if (pageurl.indexOf('pstake-token-sale/new') >= 0) {
  807. pageurl = 'coinlist.co/-option-/new'
  808. } else if (pageurl.indexOf('pstake-token-sale/'+thirdName+'/residence') >= 0 || pageurl.indexOf('pstake-token-sale/'+username+'/residence') >= 0 || pageurl.indexOf('pstake-token-sale/'+firstname+'/residence') >= 0|| pageurl.indexOf('pstake-token-sale/'+lastname+'/residence') >= 0) {
  809. pageurl = 'coinlist.co/-option--sale/residence'
  810. } else if (pageurl.indexOf('pstake-token-sale/'+thirdName+'/quiz') >= 0 || pageurl.indexOf('pstake-token-sale/'+username+'/quiz') >= 0 ||pageurl.indexOf('pstake-token-sale/'+firstname+'/quiz') >= 0 ||pageurl.indexOf('pstake-token-sale/'+lastname+'/quiz') >= 0) {
  811. pageurl = 'coinlist.co/-option--sale/quiz'
  812. } else if ((pageurl.indexOf('pstake-token-sale/'+thirdName+'') >= 0 || pageurl.indexOf('pstake-token-sale/'+username+'') >= 0 ||pageurl.indexOf('pstake-token-sale/'+firstname+'') >= 0||pageurl.indexOf('pstake-token-sale/'+lastname+'') >= 0) && $('.js-countdown').length) {
  813. pageurl = 'coinlist.co/-option-/success'
  814. }
  815.  
  816. console.info(pageurl)
  817. switch (pageurl) {
  818. case 'coinlist.co/dashboard':
  819. var inalTask = setInterval(function () {
  820. readTask(inalTask);
  821. }, 60000);
  822. readTask(inalTask);
  823. break;
  824. case 'coinlist.co/login':
  825. console.info('window+++++++++++++', $('.layouts-flashes'));
  826. if ($('.layouts-flashes') && $('.layouts-flashes')[0] && $($('.layouts-flashes')[0]).text()) {
  827. alert('登录错误!')
  828. return;
  829. }
  830. unsafeWindow.myInterval = setInterval(() => {
  831. console.info($('#user_email'));
  832. if ($('#user_email')) {
  833. loginPage();
  834. clearInterval(unsafeWindow.myInterval)
  835. } else {
  836. console.log('page not available yet')
  837. }
  838. }, 1000);
  839. break;
  840. case 'coinlist.co/users/login':
  841. //登录操作
  842. //获取
  843. console.info('window+++++++++++++', window);
  844. if ($('.layouts-flashes') && $('.layouts-flashes')[0] && $($('.layouts-flashes')[0]).text()) {
  845. alert('登录异常!')
  846. return;
  847. }
  848. unsafeWindow.myInterval = setInterval(() => {
  849. console.info($('#user_email'));
  850. if ($('#user_email')) {
  851. loginPage();
  852. clearInterval(unsafeWindow.myInterval)
  853. } else {
  854. console.log('page not available yet')
  855. }
  856. }, 1000);
  857. break;
  858. case 'queue.coinlist.co/softblock/':
  859. console.info('window+++++++++++++', $('.layouts-flashes'));
  860. if ($('.layouts-flashes') && $('.layouts-flashes')[0] && $($('.layouts-flashes')[0]).text()) {
  861. alert('登录错误!')
  862. return;
  863. }
  864. unsafeWindow.myInterval = setInterval(() => {
  865. console.info($('#user_email'));
  866. if ($('#user_email')) {
  867. loginPage();
  868. clearInterval(unsafeWindow.myInterval)
  869. } else {
  870. console.log('page not available yet')
  871. }
  872. }, 1000);
  873. break;
  874. case 'coinlist.co/multi_factor':
  875. if ($('.layouts-flashes') && $('.layouts-flashes')[0] && $($('.layouts-flashes')[0]).text()) {
  876. alert('谷歌验证码错误!')
  877. return;
  878. }
  879. var multiInterval = setInterval(function () {
  880. var secrect = OdxQgDuyXA;
  881. if (secrect != '' && secrect.length == 24 && $('#multi_factor_authentication_totp_otp_attempt')) {
  882. Authenticator.generateToken(secrect).then(function (token) {
  883. console.log('token ${token}', token);
  884. $('#multi_factor_authentication_totp_otp_attempt').val(token);
  885. $('.s-marginPullTop1').click();
  886. clearInterval(multiInterval);
  887. });
  888. }
  889. }, 3000)
  890. case 'queue.coinlist.co/softblock/':
  891. var queueInterval = setInterval(function () {
  892. if (unsafeWindow.___grecaptcha_cfg && $('#MainPart_divWarningBox')) {
  893. queueRecaptchasel();
  894. clearInterval(queueInterval);
  895. }
  896. }, 5000)
  897. break;
  898. case 'coinlist.queue-it.net/softblock':
  899. var queueInterval = setInterval(function () {
  900. if (unsafeWindow.___grecaptcha_cfg) {
  901. queueRecaptchasel();
  902. clearInterval(queueInterval);
  903. }
  904. }, 5000)
  905. break;
  906. case 'queue.coinlist.co/error':
  907. var queueInterval = setInterval(function () {
  908. if ($('.btn') && $('.btn').length > 0) {
  909. $('.btn')[0].click();
  910. clearInterval(queueInterval);
  911. }
  912. }, 5000)
  913. break;
  914. case 'queue.coinlist.co/':
  915. var queueInterval02 = setInterval(function () {
  916. //console.info('监控页面检查。。。');
  917. if ($('#MainPart_lbUsersInLineAheadOfYou') && !$('#MainPart_lbUsersInLineAheadOfYou').is(':hidden')) {
  918. console.info('@@@找到监控页面@@@');
  919. queueUpdate();
  920. clearInterval(queueInterval02);
  921. }
  922. }, 5000)
  923. var queueInterval = setInterval(function () {
  924. //if ($('#MainPart_lbUsersInLineAheadOfYou') && !$('#MainPart_lbUsersInLineAheadOfYou').is(':hidden')) {
  925. // queueUpdate();
  926. // clearInterval(queueInterval);
  927. //} else
  928.  
  929. if ($('#lbHeaderH2') && $('#defaultCountdown') && $('#lbHeaderH2').text().toLowerCase().indexOf('option 1') >= 0 && $('#lbHeaderH2').text().toLowerCase().indexOf('waiting room') >= 0 && (!$('#challenge-container') || !$('#challenge-container').html())) {
  930. //room 1
  931. console.info("任务room1 finish");
  932. var postDataRoom01 = {
  933. account: rlTccgWLXd,
  934. type: 21,
  935. isfinish: 1
  936. }
  937. updateTask(postDataRoom01);
  938. clearInterval(queueInterval);
  939. } else if ($('#lbHeaderH2') && $('#defaultCountdown') && $('#lbHeaderH2').text().toLowerCase().indexOf('option 2') >= 0 && $('#lbHeaderH2').text().toLowerCase().indexOf('waiting room') >= 0 && (!$('#challenge-container') || !$('#challenge-container').html())) {
  940. //room 2
  941. console.info("任务room2 finish");
  942. var postDataRoom02 = {
  943. account: rlTccgWLXd,
  944. type: 22,
  945. isfinish: 1
  946. }
  947. updateTask(postDataRoom02);
  948. clearInterval(queueInterval);
  949.  
  950. } else if (unsafeWindow.___grecaptcha_cfg) {
  951. console.info('queue进入谷歌验证')
  952. queueRecaptchasel();
  953. clearInterval(queueInterval);
  954. }
  955. }, 3000)
  956. break;
  957. case 'www.donghaodushu.com/coinlistpd.html':
  958. var queueInterval = setInterval(function () {
  959. if ($('#MainPart_lbUsersInLineAheadOfYou') && !$('#MainPart_lbUsersInLineAheadOfYou').is(':hidden')) {
  960. console.info('@@@找到监控页面@@@');
  961. queueUpdate();
  962. clearInterval(queueInterval);
  963. }
  964. }, 5000)
  965. break;
  966. case 'sales.coinlist.co/purchase':
  967. //签约页面
  968. if ($('#investment_committed_amount')) {
  969. var amount = cldata.dxamount;//写在配置里面打新价格
  970. var selrad = cldata.dxselradId;//写在配置里面打新价格
  971. //$('#investment_committed_amount').click();
  972. //$('#investment_committed_amount').val(amount);
  973. var clinput002 = document.getElementById('investment_committed_amount');
  974. var clevtinput002 = document.createEvent('HTMLEvents');
  975. clevtinput002.initEvent('input', true, true);
  976. clinput002.value = amount;
  977. clinput002.dispatchEvent(clevtinput002);
  978. //investment_currency_eth
  979. //investment_currency_btc
  980. //investment_currency_usdc
  981. //investment_currency_usdt
  982. $(selrad).click();
  983. var checkElm = $('.c-input--checkbox');
  984. for (var i = 0; i < checkElm.length; i++) {
  985. if (!$(checkElm[i]).is(":checked")) {
  986. $(checkElm[i]).click();
  987. }
  988. }
  989. //获取type
  990. var type = 1;
  991. if (($('title') && $('title').text() && $('title').text().indexOf('Option 2') >= 0) || ($('.js-download_investment_documents_package') && $('.js-download_investment_documents_package').length > 0 && $($('.js-download_investment_documents_package')[0]).text().indexOf('Option 2') >= 0)) {
  992.  
  993. type = 2
  994. } else if (($('title') && $('title').text() && $('title').text().indexOf('Option 1') >= 0) || ($('.js-download_investment_documents_package') && $('.js-download_investment_documents_package').length > 0 && $($('.js-download_investment_documents_package')[0]).text().indexOf('Option 1') >= 0)) {
  995. type = 1
  996. }
  997. var account = rlTccgWLXd;
  998.  
  999. //$('body').animate({ scrollTop: $('.js-invest_button_message').offset().top - 200 }, 2000);
  1000.  
  1001. var cltime = randomNum(3 * 1000, 5 * 1000);
  1002. setTimeout(function () {
  1003. $('.js-submit-investment-form')[0].click();//自动提交表单
  1004. setTimeout(function () {
  1005. //if (type > 0) {
  1006. var projectName = $($('.js-download_investment_documents_package')[0]).text().replace('View ', '').replace(' documents', '').replaceAll('\n', '');
  1007. var postData = {
  1008. account: account,
  1009. type: type,
  1010. isWinPrize: 1,
  1011. projectName: projectName
  1012. }
  1013. console.info('isWinPrize', postData)
  1014. //打新成功
  1015. isWinPrize(postData)
  1016. //}
  1017. $('.js-confirm_purchase')[0].click();
  1018. }, 2000)
  1019. }, cltime);
  1020. }
  1021. break;
  1022. case 'www.donghaodushu.com/submitcl.html':
  1023. //签约页面
  1024. if ($('#investment_committed_amount')) {
  1025. var amount = cldata.dxamount;//写在配置里面打新价格
  1026. var selrad = cldata.dxselradId;//写在配置里面打新价格
  1027. $('#investment_committed_amount').click();
  1028. $('#investment_committed_amount').val(amount);
  1029. //investment_currency_eth
  1030. //investment_currency_btc
  1031. //investment_currency_usdc
  1032. //investment_currency_usdt
  1033. $(selrad).click();
  1034. var checkElm = $('.c-input--checkbox');
  1035. for (var i = 0; i < checkElm.length; i++) {
  1036. if (!$(checkElm[i]).is(":checked")) {
  1037. $(checkElm[i]).click();
  1038. }
  1039. }
  1040. //获取type
  1041. var type = 1;
  1042. if (($('title') && $('title').text() && $('title').text().toLowerCase().indexOf('option 2') >= 0) || ($('.js-download_investment_documents_package') && $('.js-download_investment_documents_package').length > 0 && $($('.js-download_investment_documents_package')[0]).text().toLowerCase().indexOf('option 2') >= 0)) {
  1043.  
  1044. type = 2
  1045. } else if (($('title') && $('title').text() && $('title').text().toLowerCase().indexOf('option 1') >= 0) || ($('.js-download_investment_documents_package') && $('.js-download_investment_documents_package').length > 0 && $($('.js-download_investment_documents_package')[0]).text().toLowerCase().indexOf('option 1') >= 0)) {
  1046. type = 1
  1047. }
  1048. var account = rlTccgWLXd;
  1049.  
  1050. $('body').animate({ scrollTop: $('.js-invest_button_message').offset().top - 200 }, 2000);
  1051.  
  1052. var cltime = randomNum(3 * 1000, 5 * 1000);
  1053. setTimeout(function () {
  1054. $('.js-submit-investment-form')[0].click();//自动提交表单
  1055. setTimeout(function () {
  1056. //if (type > 0) {
  1057. var projectName = $($('.js-download_investment_documents_package')[0]).text().replace('View ', '').replace(' documents', '').replaceAll('\n', '');
  1058. var postData = {
  1059. account: account,
  1060. type: type,
  1061. isWinPrize: 1,
  1062. projectName: projectName
  1063. }
  1064. console.info('isWinPrize', postData)
  1065. //打新成功
  1066. isWinPrize(postData)
  1067. //}
  1068. $('.js-confirm_purchase')[0].click();
  1069. }, 2000)
  1070. }, cltime);
  1071. }
  1072. break;
  1073. case 'coinlist.co/-option-/onboarding':
  1074. var abutton = $('a');
  1075. for (var j = 0; abutton.length > j; j++) {
  1076. if ($(abutton[j]).text().replaceAll(' ', '').toLowerCase() == "getstarted") {
  1077. console.info($(abutton[j]));
  1078. abutton[j].click();
  1079. console.info('12');
  1080. break;
  1081. }
  1082. }
  1083. break;
  1084. case 'coinlist.co/-option-/new':
  1085. var abutton = $('a');
  1086. for (var j = 0; abutton.length > j; j++) {
  1087. if ($(abutton[j]).text().replaceAll(' ', '').toLowerCase().indexOf('continuewith') >= 0) {
  1088. abutton[j].click();
  1089. break;
  1090. }
  1091. }
  1092. break;
  1093. case 'coinlist.co/-option--sale/residence':
  1094. var country = CGJDxjiOha;//'JP'//TODO 配置文件配TODOOOOOOOO
  1095. $('.js-country').val(country);
  1096. $('#forms_offerings_participants_residence_residence_signature').click();
  1097. var abutton = $('a');
  1098. for (var j = 0; abutton.length > j; j++) {
  1099. if ($(abutton[j]).text().replaceAll(' ', '').toLowerCase().indexOf('continue') >= 0) {
  1100.  
  1101. //随机跳转时间
  1102. var gotime = randomNum(5 * 1000, 10 * 1000);
  1103. setTimeout(function () {
  1104. console.info("点击提交");
  1105. abutton[j].click();
  1106. }, gotime);
  1107. break;
  1108. }
  1109. }
  1110. break;
  1111. case 'coinlist.co/-option--sale/quiz':
  1112. //答题
  1113. $("label[class='c-label c-label--inline s-marginLeft1']").each(function () {
  1114. var trim = $(this).text().replace(/\s/g, "");
  1115. if (cldata && cldata.answerDatas) {
  1116. var answerDatas = cldata.answerDatas;
  1117. for (var i = 0; i < answerDatas.length; i++) {
  1118. var selfanswer = answerDatas[i].answer.replace('★', '\\').replace(/\s/g, "");
  1119. if (trim == selfanswer) {
  1120. $(this).children('input').click()
  1121. }
  1122. }
  1123. }
  1124. })
  1125. var abutton = $('a');
  1126. for (var j = 0; abutton.length > j; j++) {
  1127. if ($(abutton[j]).text().replaceAll(' ', '').toLowerCase().indexOf('continue') >= 0) {
  1128.  
  1129. //随机跳转时间
  1130. var gotime = randomNum(10 * 1000, 20 * 1000);
  1131. console.info("随机提交时间", gotime);
  1132. setTimeout(function () {
  1133. console.info("点击提交");
  1134. abutton[j].click();
  1135. }, gotime);
  1136.  
  1137. break;
  1138. }
  1139. }
  1140. $('html,body').animate({ scrollTop: $('.s-marginTop2').offset().top }, 800);
  1141. break;
  1142. case 'coinlist.co/-option-/success':
  1143. //任务答题完成插入数据
  1144. var urlSuccess = window.location.href.split('//')[1].split('?')[0];
  1145. var type = 1;
  1146. var account = rlTccgWLXd;
  1147. var isfinish = 1;
  1148. if (urlSuccess.toLowerCase().indexOf('-option-1') >= 0 && $('.s-marginLeft0_5') && $('.s-marginLeft0_5')[0] && $($('.s-marginLeft0_5')[0]).text().toLowerCase().indexOf(' option 1') >= 0) {
  1149. //任务1完成
  1150. type = 1;
  1151. } else if (urlSuccess.toLowerCase().indexOf('-option-2') >= 0 && $('.s-marginLeft0_5') && $('.s-marginLeft0_5')[0] && $($('.s-marginLeft0_5')[0]).text().toLowerCase().indexOf(' option 2') >= 0) {
  1152. //任务2完成
  1153. type = 2;
  1154. }
  1155. if (type > -1) {
  1156. var postData = {
  1157. account: account,
  1158. type: type,
  1159. isfinish: isfinish
  1160. }
  1161. updateTask(postData);
  1162. }
  1163. //读取任务并进行下一个任务
  1164. break;
  1165. default:
  1166. console.info('default验证___grecaptcha_cfg', unsafeWindow.___grecaptcha_cfg)
  1167. setTimeout(function () {
  1168. if (unsafeWindow.___grecaptcha_cfg) {
  1169. queueRecaptchasel();
  1170. }
  1171. }, 5000)
  1172. break;
  1173. }
  1174. }
  1175. function readTask(inalTask) {
  1176. var account = rlTccgWLXd
  1177. console.info('readTask', inalTask);
  1178. console.info('url', 'http://clcode.getpx.cn:3081/api/Coinlist_IsAnswer/GetTaskList?account=' + account + '&tt=' + Date.parse(new Date()).toString());
  1179. GM_xmlhttpRequest({
  1180. url: 'http://clcode.getpx.cn:3081/api/Coinlist_IsAnswer/GetTaskList?account=' + account + '&tt=' + Date.parse(new Date()).toString(),
  1181. method: "GET",
  1182. data: '',
  1183. headers: {
  1184. "Content-type": "application/x-www-form-urlencoded"
  1185. },
  1186. onload: function (capcoderes) {
  1187. if (capcoderes.responseText) {
  1188. var taskdata = JSON.parse(capcoderes.responseText);
  1189. console.info('taskdata', taskdata);
  1190. //console.info('taskdata', taskdata.response);
  1191. //console.info('taskdata', taskdata.response.length);
  1192. //console.info('taskdata', taskdata.success && taskdata.response && taskdata.response.length > 0);
  1193. if (taskdata.success && taskdata.response && taskdata.response.length > 0) {
  1194. var task = taskdata.response[0];
  1195. console.info('task', task);
  1196. console.info('task', task.Type);
  1197. switch (task.Type) {
  1198. case 1:
  1199. //答题1
  1200. console.info('taskcldata', cldata);
  1201. if (cldata && cldata.op1) {
  1202. if (inalTask) {
  1203. clearInterval(inalTask);
  1204. }
  1205. // var mainView = $('<a href="'+cldata.op1+'" target="_blank" id="lclis00898">liu</a>')
  1206. // $("body").append(mainView);
  1207. // console.info('taskcldata',$('#lclis00898'));
  1208. //src_op1()
  1209. //window.location.href = cldata.op1;
  1210. window.open(cldata.op1);
  1211. return false;
  1212. //window.open("http://clcode.getpx.cn:3081/index.html");
  1213. }
  1214. break;
  1215. case 2:
  1216. //答题2
  1217. if (cldata && cldata.op2) {
  1218. if (inalTask) {
  1219. clearInterval(inalTask);
  1220. }
  1221. window.open(cldata.op2);
  1222. }
  1223. break;
  1224. case 21:
  1225. //房间1
  1226. if (cldata && cldata.room01) {
  1227. if (inalTask) {
  1228. clearInterval(inalTask);
  1229. }
  1230. //var postDataRoom = {
  1231. // account: rlTccgWLXd,
  1232. // type: 21,
  1233. // isfinish: 1
  1234. //}
  1235. //updateTask(postDataRoom);
  1236. window.open(cldata.room01);
  1237. }
  1238. break;
  1239. case 22:
  1240. //房间2
  1241. if (cldata && cldata.room02) {
  1242. if (inalTask) {
  1243. clearInterval(inalTask);
  1244. }
  1245. //var postDataRoom2 = {
  1246. // account: rlTccgWLXd,
  1247. // type: 22,
  1248. // isfinish: 1
  1249. //}
  1250. //updateTask(postDataRoom2);
  1251. window.open(cldata.room02);
  1252. }
  1253. break;
  1254. }
  1255. }
  1256. }
  1257. }
  1258. });
  1259. }
  1260. function updateTask(postData) {
  1261. console.info('updateTask', postData);
  1262. console.info(JSON.stringify(postData));
  1263. GM_xmlhttpRequest({
  1264. url: 'http://clcode.getpx.cn:3081/api/Coinlist_IsAnswer/Post',
  1265. method: "POST",
  1266. data: JSON.stringify(postData),
  1267. headers: {
  1268. "Content-type": "application/json"
  1269. },
  1270. onload: function (capcoderes) {
  1271. if (capcoderes.responseText) {
  1272. var taskdata = JSON.parse(capcoderes.responseText);
  1273. console.info('taskdata', taskdata);
  1274. //读取下一个任务
  1275. /* var inalTask = setInterval(function (){
  1276. readTask(inalTask);
  1277. },60000);*/
  1278. readTask(false);
  1279. }
  1280. }
  1281. });
  1282.  
  1283. }
  1284. function isWinPrize(postData) {
  1285. //中签成功
  1286. GM_xmlhttpRequest({
  1287. url: 'http://clcode.getpx.cn:3081/api/Conlist_ProjectQz/WinPrize',
  1288. method: "POST",
  1289. data: JSON.stringify(postData),
  1290. headers: {
  1291. "Content-type": "application/json"
  1292. },
  1293. onload: function (capcoderes) {
  1294. console.info(capcoderes)
  1295. }
  1296. });
  1297.  
  1298. }
  1299. function queueUpdate() {
  1300. //上传排队信息
  1301. //获取type
  1302. var minQueueTime = 0.5;//最小时间 单位 分钟
  1303. var maxQueueTime = 1;//最大时间 单位 分钟
  1304. var maxQueuePost = 20000;
  1305. if (cldata && cldata.minQueueTime && cldata.minQueueTime > 0) {
  1306. minQueueTime = cldata.minQueueTime;
  1307. }
  1308. if (cldata && cldata.maxQueueTime && cldata.maxQueueTime > 0) {
  1309. maxQueueTime = cldata.maxQueueTime;
  1310. }
  1311. if (cldata && cldata.maxQueuePost && cldata.maxQueuePost > 0) {
  1312. maxQueuePost = cldata.maxQueuePost;
  1313. }
  1314. var goqueuetime = randomNum(minQueueTime * 60 * 1000, maxQueueTime * 60 * 1000);
  1315. console.info("随机时间监控对队伍时长" + goqueuetime);
  1316. //var quePostNum = 0;
  1317. var inalPostQZPrize = setInterval(function () {
  1318. //获取type
  1319. var type = 1;
  1320. if (($('title') && $('title').text() && $('title').text().indexOf('Option 2') >= 0) || ($('#lbHeaderH2') && $('#lbHeaderH2').text().indexOf('Option 2') >= 0)) {
  1321. type = 2
  1322. } else if (($('title') && $('title').text() && $('title').text().indexOf('Option 1') >= 0) || ($('#lbHeaderH2') && $('#lbHeaderH2').text().indexOf('Option 1') >= 0)) {
  1323. type = 1
  1324. }
  1325. var account = rlTccgWLXd;
  1326. var queuenum = parseInt($('#MainPart_lbUsersInLineAheadOfYou').text().replaceAll(',', ''));
  1327. if (queuenum && queuenum < maxQueuePost) {
  1328. //quePostNum = quePostNum + 1;
  1329. var projectNamedw = $('title').text().replace('CoinList ', '').replace(' Sale Queue', '')
  1330. var postData = {
  1331. account: account,
  1332. type: type,
  1333. number: queuenum,
  1334. projectName: projectNamedw
  1335. }
  1336. console.info('inalPostQZPrize', postData)
  1337. GM_xmlhttpRequest({
  1338. url: 'http://clcode.getpx.cn:3081/api/Conlist_ProjectQz/PostQZPrize',
  1339. method: "POST",
  1340. data: JSON.stringify(postData),
  1341. headers: {
  1342. "Content-type": "application/json"
  1343. },
  1344. onload: function (capcoderes) {
  1345. console.info(capcoderes)
  1346. }
  1347. });
  1348. }
  1349. //if (type > 0) {
  1350. //}
  1351.  
  1352. }, goqueuetime);
  1353.  
  1354. }
  1355. function queueRecaptchasel() {
  1356. var slefgre = findRecaptchaClients();
  1357. var sitekey = slefgre[0].sitekey;
  1358. if (sitekey) {
  1359. GM_xmlhttpRequest({
  1360. url: 'http://2captcha.com/in.php?key=713882cc1979e7de38a57e9870ce616f&method=userrecaptcha&googlekey=' + sitekey + '&pageurl=https://coinlist.co/',
  1361. method: "GET",
  1362. data: "",
  1363. headers: {
  1364. "Content-type": "application/x-www-form-urlencoded"
  1365. },
  1366. onload: function (capdata) {
  1367. console.info(capdata.responseText);
  1368. var capcode = capdata.responseText;
  1369. if (capcode && capcode.split('|').length > 1) {
  1370. capcode = capcode.split('|')[1];
  1371. var codeEnd = '';
  1372. var inal = setInterval(function () {
  1373. console.info('开始执行');
  1374. console.info('http://2captcha.com/res.php?key=713882cc1979e7de38a57e9870ce616f&action=get&id=' + capcode + '&tt=' + Date.parse(new Date()).toString())
  1375. GM_xmlhttpRequest({
  1376. url: 'http://2captcha.com/res.php?key=713882cc1979e7de38a57e9870ce616f&action=get&id=' + capcode + '&tt=' + Date.parse(new Date()).toString(),
  1377. method: "GET",
  1378. data: "",
  1379. headers: {
  1380. "Content-type": "application/x-www-form-urlencoded"
  1381. },
  1382. onload: function (capcoderes) {
  1383. if (capcoderes.responseText && capcoderes.responseText.length > 50 && capcoderes.responseText.split('|').length > 1) {
  1384. clearInterval(inal);
  1385. codeEnd = capcoderes.responseText.split('|')[1];
  1386. //赋值
  1387. console.info('谷歌验证请求code', codeEnd)
  1388. console.info('谷歌验证请求unsafeWindow', unsafeWindow)
  1389. $('textarea').show();
  1390. $('textarea').val(codeEnd);
  1391. var callbackFun = slefgre[0].callback;
  1392. eval(callbackFun + '("' + codeEnd + '")');
  1393. //___grecaptcha_cfg.clients['0']['l']['l'].callback(codeEnd)
  1394. console.info('谷歌验证请求成功')
  1395.  
  1396. setTimeout(function () {
  1397. if ($('#lbHeaderH2') && $('#defaultCountdown') && $('#lbHeaderH2').text().toLowerCase().indexOf('option 1') >= 0 && $('#lbHeaderH2').text().toLowerCase().indexOf('waiting room') >= 0 && (!$('#challenge-container') || !$('#challenge-container').html())) {
  1398. //room 1
  1399. console.info("任务room1 google and finish");
  1400. var postDataRoom01 = {
  1401. account: rlTccgWLXd,
  1402. type: 21,
  1403. isfinish: 1
  1404. }
  1405. updateTask(postDataRoom01);
  1406. } else if ($('#lbHeaderH2') && $('#defaultCountdown') && $('#lbHeaderH2').text().toLowerCase().indexOf('option 2') >= 0 && $('#lbHeaderH2').text().toLowerCase().indexOf('waiting room') >= 0 && (!$('#challenge-container') || !$('#challenge-container').html())) {
  1407. //room 2
  1408. console.info("任务room2 google and finish");
  1409. var postDataRoom02 = {
  1410. account: rlTccgWLXd,
  1411. type: 22,
  1412. isfinish: 1
  1413. }
  1414. updateTask(postDataRoom02);
  1415.  
  1416. }
  1417. }, 15000)
  1418.  
  1419.  
  1420. var queueInterval03 = setInterval(function () {
  1421. if ($('#enqueue-error') && $('#enqueue-error').html()) {
  1422. console.info('发现re-enter');
  1423. queueRecaptchasel();
  1424. clearInterval(queueInterval03);
  1425. }
  1426. }, 6000)
  1427.  
  1428. }
  1429. //console.info(capcoderes.responseText);
  1430. }
  1431. });
  1432.  
  1433. }, 1000);
  1434. }
  1435. }
  1436. });
  1437. }
  1438. }
  1439. function hcaptchasel() {
  1440.  
  1441. console.log('hcaptcha available, lets redefine render method', unsafeWindow.hcaptcha.render)
  1442. // if hcaptcha object is defined, we save the original render method into window.originalRender
  1443. unsafeWindow.originalRender = unsafeWindow.hcaptcha.render
  1444. // then we redefine hcaptcha.render method with our function
  1445. unsafeWindow.hcaptcha.render = (container, params) => {
  1446. console.log(container)
  1447. console.log(params)
  1448. // storing hcaptcha callback globally
  1449. unsafeWindow.hcaptchaCallback = params.callback;
  1450. // returning the original render method call
  1451. return unsafeWindow.originalRender(container, params)
  1452. }
  1453.  
  1454. }
  1455. function loginPage() {
  1456. //填充账号和密码
  1457. $('#user_email').val(rlTccgWLXd);
  1458. $('#user_password').val(OdBNycxbxw);//+'123'
  1459. console.info('填充账号');
  1460. console.info('填充密码');
  1461. if (!$("#user_remember_me").is(":checked")) {
  1462. $('#user_remember_me').click();
  1463. }
  1464. //提交
  1465. $('.js-submit').click();
  1466.  
  1467. var hrepInterval = setInterval(function () {
  1468. if (!$('[title="Main content of the hCaptcha challenge"]').parent().parent().attr("aria-hidden") || $('[title="Main content of the hCaptcha challenge"]').parent().parent().attr("aria-hidden") != 'true') {
  1469. //hcaptchasel();
  1470. clearInterval(hrepInterval);
  1471. $('#user_password').val(OdBNycxbxw);
  1472. //进行人机验证
  1473. console.info('进行人机验证');
  1474. var sitekey = $('h-captcha').attr('sitekey');
  1475. console.info('sitekey', sitekey);
  1476. if (sitekey) {
  1477. console.info('http://2captcha.com/in.php?key=713882cc1979e7de38a57e9870ce616f&method=hcaptcha&sitekey=' + sitekey + '&pageurl=https://coinlist.co/');
  1478. GM_xmlhttpRequest({
  1479. url: 'http://2captcha.com/in.php?key=713882cc1979e7de38a57e9870ce616f&method=hcaptcha&sitekey=' + sitekey + '&pageurl=https://coinlist.co/',
  1480. method: "GET",
  1481. data: "",
  1482. headers: {
  1483. "Content-type": "application/x-www-form-urlencoded"
  1484. },
  1485. onload: function (capdata) {
  1486. console.info(capdata.responseText);
  1487. var capcode = capdata.responseText;
  1488. if (capcode && capcode.split('|').length > 1) {
  1489. capcode = capcode.split('|')[1];
  1490. var codeEnd = '';
  1491. var inal = setInterval(function () {
  1492. console.info('开始执行');
  1493. console.info('http://2captcha.com/res.php?key=713882cc1979e7de38a57e9870ce616f&action=get&id=' + capcode + '&tt=' + Date.parse(new Date()).toString())
  1494. GM_xmlhttpRequest({
  1495. url: 'http://2captcha.com/res.php?key=713882cc1979e7de38a57e9870ce616f&action=get&id=' + capcode + '&tt=' + Date.parse(new Date()).toString(),
  1496. method: "GET",
  1497. data: "",
  1498. headers: {
  1499. "Content-type": "application/x-www-form-urlencoded"
  1500. },
  1501. onload: function (capcoderes) {
  1502. if (capcoderes.responseText && capcoderes.responseText.length > 50 && capcoderes.responseText.split('|').length > 1) {
  1503. clearInterval(inal);
  1504. codeEnd = capcoderes.responseText.split('|')[1];
  1505. //赋值
  1506. console.info('谷歌验证请求code', codeEnd)
  1507. console.info('谷歌验证请求unsafeWindow', unsafeWindow)
  1508. $('textarea').show();
  1509. $('textarea').val(codeEnd);
  1510. for (var key in unsafeWindow) {
  1511. if (key.indexOf('hcaptchaCallback') > -1) {
  1512. console.info('找到了回调方法+++++', key);
  1513. eval(key + '("' + codeEnd + '")');
  1514. break;
  1515. }
  1516. }
  1517.  
  1518. //___grecaptcha_cfg.clients['0']['l']['l'].callback(codeEnd)
  1519. console.info('谷歌验证请求成功')
  1520. }
  1521. //console.info(capcoderes.responseText);
  1522. }
  1523. });
  1524.  
  1525. }, 1000);
  1526. }
  1527. }
  1528. });
  1529. }
  1530. }
  1531. }, 1000);
  1532. //判断是否有验证 时间延时
  1533.  
  1534. var hrepInterval_new = setInterval(function () {
  1535. if (!$(".captcha-code").attr("src") || $(".captcha-code").attr("src") != '') {
  1536. //hcaptchasel();
  1537. $('#user_password').val(OdBNycxbxw);
  1538. //进行人机验证
  1539. console.info('进行人机验证');
  1540. var sitekey = $(".captcha-code").attr("src");
  1541. console.info('sitekey', sitekey);
  1542. if (sitekey) {
  1543. console.info('进行人机验证---');
  1544. GM_xmlhttpRequest({
  1545. url: 'http://clcode.getpx.cn:3081/VerifyCode/accurateBasic',
  1546. method: "POST",
  1547. data: JSON.stringify({
  1548. base64img:sitekey
  1549. }),
  1550. headers: {
  1551. "Content-type": "application/json"
  1552. },
  1553. onload: function (capdata) {
  1554. console.info(JSON.parse(capdata.response));
  1555. var capcodemodel=JSON.parse(capdata.response);
  1556. var capcode = capcodemodel.success;
  1557. if (capcode ) {
  1558. clearInterval(hrepInterval_new);
  1559. $("#solution").attr("value",capcodemodel.response);
  1560. $(".botdetect-button,btn").click();
  1561. }
  1562. }
  1563. });
  1564. }
  1565. }
  1566. }, 1000);
  1567.  
  1568.  
  1569. //var recapt = findRecaptchaClients();
  1570. }
  1571.  
  1572. //程序入口-main
  1573. $(function () {
  1574. var locaturl = window.location.href;
  1575. if (locaturl == "https://coinlist.co/account/personal-info") {
  1576. $('.layouts-shared-market__content-wrapper').animate({ scrollTop: $('#user_email_email').offset().top - 100 }, 200);
  1577. } else if (locaturl == "https://coinlist.co/account/security") {
  1578. $('.layouts-shared-market__content-wrapper').animate({ scrollTop: $('.js-show_backup_codes').offset().top }, 200);
  1579. }
  1580.  
  1581. //插件up---begin
  1582. //var pageuri = window.location.href.split('//')[1].split('?')[0];
  1583. //var automaticstr = getQueryString("automatic");
  1584. //if (!automaticstr || automaticstr != "1") {
  1585. // if (pageuri == "greasyfork.org/zh-CN/scripts/431638-mserscript/versions") {
  1586. // $('.version-number a')[0].click();
  1587. // } else if (pageuri == "greasyfork.org/zh-CN/scripts/431638-mserscript") {
  1588. // var greversion = getQueryString("version");
  1589. // if (greversion) {
  1590. // if ($($('.install-link')[0]).text().indexOf('重新安装') < 0) {
  1591. // $('.install-link')[0].click();
  1592. // }
  1593. // } else {
  1594. // //跳转到历史版本
  1595. // if (!$($('#script-links li')[2]).attr('class')) {
  1596. // $('#script-links li')[2].click();
  1597. // }
  1598. // }
  1599. // }
  1600. //}
  1601. //插件up---end
  1602.  
  1603.  
  1604.  
  1605. GM_xmlhttpRequest({
  1606. url: "https://weleader5.oss-cn-shenzhen.aliyuncs.com/APP/clistdata.json?tt" + Date.parse(new Date()).toString(),
  1607. method: "GET",
  1608. data: "fid=1037793830&act=1&re_src=11&jsonp=jsonp&csrf=e37f1881fd98f16756d16ab71109d37a",
  1609. headers: {
  1610. "Content-type": "application/x-www-form-urlencoded"
  1611.  
  1612. },
  1613. onload: function (xhr) {
  1614. //console.info(xhr.responseText)
  1615. cldata = JSON.parse(xhr.responseText);
  1616. //console.info(cldata);
  1617. loadData();
  1618. //ceshi begin
  1619. /* var capframes = $('iframe');
  1620. var sitekeycap = '';
  1621. for(var i=0;i<capframes.length;i++){
  1622. var src = $(capframes[i]).attr('src');
  1623. console.info(i)
  1624. if(!src){
  1625. continue;
  1626. }
  1627. var domain = src.split("/"); //以“/”进行分割
  1628. if( domain[2] ) {
  1629. domain = domain[2];
  1630. } else {
  1631. domain = ''; //如果url不正确就取空
  1632. }
  1633. console.info(domain)
  1634. if(domain == 'www.recaptcha.net'){
  1635. console.info(src.split('#')[1])
  1636. sitekeycap=getUrlParamqueryString(src.split('?')[1],'k');
  1637. console.info(sitekeycap);
  1638. }
  1639. }
  1640. if(sitekeycap){
  1641.  
  1642. } */
  1643. //ceshi end
  1644. }
  1645. });
  1646. })
  1647. function hcaptchaAuto(selfsitekeycap) {
  1648. //去做h人机验证
  1649. if (selfsitekeycap) {
  1650. console.info('http://2captcha.com/in.php?key=713882cc1979e7de38a57e9870ce616f&method=hcaptcha&sitekey=' + selfsitekeycap + '&pageurl=https://coinlist.co/');
  1651. GM_xmlhttpRequest({
  1652. url: 'http://2captcha.com/in.php?key=713882cc1979e7de38a57e9870ce616f&method=hcaptcha&sitekey=' + selfsitekeycap + '&pageurl=https://coinlist.co/',
  1653. method: "GET",
  1654. data: "",
  1655. headers: {
  1656. "Content-type": "application/x-www-form-urlencoded"
  1657. },
  1658. onload: function (capdata) {
  1659. console.info(capdata.responseText);
  1660. var capcode = capdata.responseText;
  1661. if (capcode && capcode.split('|').length > 1) {
  1662. capcode = capcode.split('|')[1];
  1663. var codeEnd = '';
  1664. var inal = setInterval(function () {
  1665. console.info('开始执行');
  1666. console.info('http://2captcha.com/res.php?key=713882cc1979e7de38a57e9870ce616f&action=get&id=' + capcode + '&tt=' + Date.parse(new Date()).toString())
  1667. GM_xmlhttpRequest({
  1668. url: 'http://2captcha.com/res.php?key=713882cc1979e7de38a57e9870ce616f&action=get&id=' + capcode + '&tt=' + Date.parse(new Date()).toString(),
  1669. method: "GET",
  1670. data: "",
  1671. headers: {
  1672. "Content-type": "application/x-www-form-urlencoded"
  1673. },
  1674. onload: function (capcoderes) {
  1675. if (capcoderes.responseText && capcoderes.responseText.length > 50 && capcoderes.responseText.split('|').length > 1) {
  1676. clearInterval(inal);
  1677. codeEnd = capcoderes.responseText.split('|')[1];
  1678. //赋值
  1679. console.info('谷歌验证请求code', codeEnd)
  1680. console.info('谷歌验证请求unsafeWindow', unsafeWindow)
  1681. $('textarea').show();
  1682. $('textarea').val(codeEnd);
  1683. for (var key in unsafeWindow) {
  1684. if (key.indexOf('hcaptchaCallback') > -1) {
  1685. console.info('找到了回调方法+++++', key);
  1686. eval(key + '("' + codeEnd + '")');
  1687. break;
  1688. }
  1689. }
  1690.  
  1691. //___grecaptcha_cfg.clients['0']['l']['l'].callback(codeEnd)
  1692. console.info('H验证请求成功')
  1693. }
  1694. //console.info(capcoderes.responseText);
  1695. }
  1696. });
  1697.  
  1698. }, 1000);
  1699. }
  1700. }
  1701. });
  1702. }
  1703. }
  1704.  
  1705. function findRecaptchaClients() {
  1706. // eslint-disable-next-line camelcase
  1707. if (typeof (___grecaptcha_cfg) !== 'undefined') {
  1708. // eslint-disable-next-line camelcase, no-undef
  1709. return Object.entries(___grecaptcha_cfg.clients).map(([cid, client]) => {
  1710. const data = { id: cid, version: cid >= 10000 ? 'V3' : 'V2' };
  1711. const objects = Object.entries(client).filter(([_, value]) => value && typeof value === 'object');
  1712.  
  1713. objects.forEach(([toplevelKey, toplevel]) => {
  1714. const found = Object.entries(toplevel).find(([_, value]) => (
  1715. value && typeof value === 'object' && 'sitekey' in value && 'size' in value
  1716. ));
  1717.  
  1718. if (typeof toplevel === 'object' && toplevel instanceof HTMLElement && toplevel['tagName'] === 'DIV') {
  1719. data.pageurl = toplevel.baseURI;
  1720. }
  1721.  
  1722. if (found) {
  1723. const [sublevelKey, sublevel] = found;
  1724.  
  1725. data.sitekey = sublevel.sitekey;
  1726. const callbackKey = data.version === 'V2' ? 'callback' : 'promise-callback';
  1727. const callback = sublevel[callbackKey];
  1728. if (!callback) {
  1729. data.callback = null;
  1730. data.function = null;
  1731. } else {
  1732. data.function = callback;
  1733. const keys = [cid, toplevelKey, sublevelKey, callbackKey].map((key) => `['${key}']`).join('');
  1734. data.callback = `___grecaptcha_cfg.clients${keys}`;
  1735. }
  1736. }
  1737. });
  1738. return data;
  1739. });
  1740. }
  1741. return [];
  1742. }
  1743. })();C