极乐禁地

🔥免费无限制看站内所有付费视频,下载视频(日限),复制播放链接,屏蔽广告

  1. // ==UserScript==
  2. // @name 极乐禁地
  3. // @version 1.0.0
  4. // @updateDesc
  5. // @description 🔥免费无限制看站内所有付费视频,下载视频(日限),复制播放链接,屏蔽广告
  6. // @icon https://cdn.luckychajian.com/image/boy.jpeg
  7. // @namespace 极乐禁地
  8. // @author lucky
  9. // @include */pages/hjsq*
  10. // @include *://h5d*.*.*/*
  11. // @include *://*.h5d*.*.*/*
  12. // @include *://aaw*.*.*/*
  13. // @include *://*.aaw*.*.*/*
  14. // @include *://blog.luckly-mjw.cn/*
  15. // @include *://tools.thatwind.com/*
  16. // @include *://tools.bugscaner.com/*
  17. // @require https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js
  18. // @require https://cdnjs.cloudflare.com/ajax/libs/hls.js/1.5.8/hls.min.js
  19. // @require https://cdnjs.cloudflare.com/ajax/libs/dplayer/1.27.1/DPlayer.min.js
  20. // @run-at document-start
  21. // @grant unsafeWindow
  22. // @grant GM_addStyle
  23. // @grant GM_getValue
  24. // @grant GM_setValue
  25. // @grant GM_getResourceText
  26. // @grant GM_xmlhttpRequest
  27. // @charset UTF-8
  28. // @antifeature payment
  29. // @license MIT
  30. // ==/UserScript==
  31.  
  32. function init($){
  33. 'use strict';
  34. if(unsafeWindow.wt_tangxin_script){
  35. return;
  36. }
  37. unsafeWindow.wt_tangxin_script = true;
  38.  
  39. if (location.href.includes('tools.bugscaner.com')) {
  40. util.findTargetElement('.input-group input').then(res => {
  41. const url = location.search.replace('?m3u8=', '').replace(/\s*/g, "")
  42. if (url && url.startsWith('http')) {
  43. $(res).val(url)
  44. }
  45. })
  46. return
  47. }
  48. if (location.href.includes('tools.thatwind.com')) {
  49. GM_addStyle(`.top-ad{display: none !important;}`)
  50. util.findTargetElement('.bx--text-input__field-outer-wrapper input', 10).then(res => {
  51. $(res).val(Date.now())
  52. res.dispatchEvent(new Event("input"))
  53. })
  54. return
  55. }
  56. if (location.href.includes('blog.luckly-mjw.cn')) {
  57. GM_addStyle(`
  58. #m-app a,.m-p-temp-url,.m-p-cross,.m-p-input-container div:nth-of-type(1){display: none !important;}
  59. .m-p-input-container{ display: block;}
  60. .m-p-input-container input{ width: 100%;font-size: 12px;margin-bottom: 5px;}
  61. .m-p-input-container div{ height: 45px;line-height: 45px;font-size: 15px;margin-top: 3px;}
  62. .m-p-stream{line-height: normal;font-size: 12px;}
  63. `)
  64. return
  65. }
  66. if(location.href.replace(location.origin,'') != '/home' && !location.href.includes('/pages/hjsq')) {
  67. setTimeout(()=>{
  68. location.href = location.origin + '/home';
  69. },1000)
  70. }
  71. const loadScript = function(url) {
  72. const script = document.createElement('script');
  73. script.type = 'text/javascript';
  74. script.src = url;
  75. document.head.appendChild(script);
  76. }
  77. if(typeof Hls === "undefined"){
  78. loadScript('https://cdnjs.cloudflare.com/ajax/libs/hls.js/1.5.8/hls.min.js')
  79. }
  80.  
  81. const checkLogin = function(){
  82. try{
  83. if (superVip._CONFIG_.user.login_date != new Date().setHours(0, 0, 0,0) || md5x(superVip._CONFIG_.user.ver, 'de').code != md5x(md5x(), 'de').code) {
  84. superVip._CONFIG_.user = ''
  85. GM_setValue('jsxl_user', '')
  86. util.logouted('登录已失效,请重新登录')
  87. $("#wt-my").click()
  88. return false
  89. }
  90. return true
  91. }catch(e){
  92. superVip._CONFIG_.user = ''
  93. GM_setValue('jsxl_user', '')
  94. util.logouted(e.message || '登录已失效,请重新登录')
  95. $("#wt-my").click()
  96. return false
  97. }
  98. }
  99.  
  100. const initPlayerUrl = async function(url, originalFetch, options){
  101. if (superVip._CONFIG_.user && superVip._CONFIG_.user.token) {
  102. if(url.endsWith('/media/play') || url.endsWith('/onepost/detail')){
  103. if(!checkLogin()){
  104. return;
  105. }
  106. if(url.endsWith('/media/play') || url.endsWith('/onepost/detail')){
  107. let videoContainer =''
  108. util.showAndHidTips('wt_player_haijiao', 'set', false);
  109. superVip._CONFIG_.videoUrl = {}
  110. util.findTargetElement('.md-video-play').then(res =>{
  111. $(res).empty()
  112. videoContainer = res
  113. })
  114. const response = await originalFetch(url, options);
  115. if (response.ok && response.headers.get('Content-Type')?.includes('application/json')) {
  116. const clonedResponse = response.clone();
  117. const res = await clonedResponse.json();
  118. if(res.code == 200 && res.msg == 'success'){
  119. util.asyncHttp(superVip._CONFIG_.apiBaseUrl + '/s' + (Math.floor(Math.random() * 3) + 1) + '00/checkJilejinqu?sign=' + encodeURIComponent(res.data) + '&timestamp=' + ec.knxkbxen(Date.now()) + '&origin=' + location.origin + '&version=' + superVip._CONFIG_.version).then(async res =>{
  120. if(res.errMsg == "success" && res.responseText){
  121. res = JSON.parse(res.responseText)
  122. if(res.errCode == 0){
  123. if(res.newToken){
  124. if(res.newToken) superVip._CONFIG_.user.token = res.newToken;
  125. GM_setValue('jsxl_user', superVip._CONFIG_.user)
  126. }
  127. res.data = ec.cskuecede(res.data)
  128. superVip._CONFIG_.videoUrl = {
  129. aes: 'true',
  130. playerUrl: res.data,
  131. downloadUrl: res.downloadUrl,
  132. isDecrypDownload: true
  133. }
  134. util.showAndHidTips('wt_player_haijiao');
  135. if(videoContainer){
  136. const dp = new DPlayer({
  137. container: videoContainer,
  138. autoplay: true,
  139. theme: '#f699b8',
  140. loop: true,
  141. lang: 'zh-cn',
  142. screenshot: true,
  143. hotkey: true,
  144. preload: 'auto',
  145. video: {
  146. url: res.data
  147. }
  148. });
  149. }else{
  150. util.findTargetElement('.md-video-play').then(ele =>{
  151. const dp = new DPlayer({
  152. container: ele,
  153. autoplay: true,
  154. theme: '#f699b8',
  155. loop: true,
  156. lang: 'zh-cn',
  157. screenshot: true,
  158. hotkey: true,
  159. preload: 'auto',
  160. video: {
  161. url: res.data
  162. }
  163. });
  164. })
  165. }
  166. }else{
  167. if(!res.errMsg.includes('抱歉,此帖子无视频')){
  168. util.showTips({ title: res.errMsg})
  169. }
  170. }
  171. }
  172. })
  173. }
  174. }
  175. return response;
  176. }
  177. }
  178. if(url.endsWith('/app/dating/loufeng/detail')){
  179. util.showTips({ title: '此约P板块小姐姐联系方式毫无用处,都是打广告的,勿踩坑'})
  180. }
  181. }
  182. return originalFetch(url, options);
  183. }
  184.  
  185. const md5x = function(s, type) {
  186. try {
  187. if (!type) {
  188. const date = new Date().setHours(0, 0, 0, 0) + '';
  189. const day = new Date().getDate();
  190. const code = date.substring(4, 8) * new Date().getDate() + '';
  191. return ec.swaqbt(JSON.stringify({
  192. date: date,
  193. code: code,
  194. day: day
  195. }));
  196. } else {
  197. if(type == 'decode'){
  198. s = ec.cskuecede(s)
  199. }
  200. const token = JSON.parse(ec.sfweccat(s));
  201. if ((new Date(Number(token.date)).getTime() + 86400000) < Date.now()) {
  202. throw Error('md5x expire');
  203. }
  204. if (token.day != new Date(Number(token.date)).getDate()) {
  205. throw Error('md5x err');
  206. }
  207. const code = (new Date(Number(token.date)).setHours(0, 0, 0, 0) + '').substring(4, 8) * token.day;
  208. if (code != token.code) {
  209. throw Error('md5x err2');
  210. }
  211. return token;
  212. }
  213. } catch (e) {
  214. return '';
  215. }
  216. }
  217.  
  218. const serializeVideo = (str) => {
  219. if (!str) {
  220. return '';
  221. }
  222. try {
  223. const item = ec.cskuecede(str);
  224. if (typeof(item) != 'object') {
  225. return '';
  226. }
  227. let duration = '1.250000';
  228. const countNum = item.str_end.split('-')[1] - item.str_end.split('-')[0];
  229. try {
  230. if (item.duration) {
  231. duration = (item.duration / (countNum + 1)).toFixed(3);
  232. }
  233. } catch (e) {}
  234. let m3u8Content = '#EXTM3U' + '\r\n';
  235. m3u8Content += '#EXT-X-VERSION:3' + '\r\n';
  236. m3u8Content += '#EXT-X-TARGETDURATION:30' + '\r\n';
  237. m3u8Content += '#EXT-X-MEDIA-SEQUENCE:0' + '\r\n';
  238. m3u8Content += '#EXT-X-KEY:METHOD=AES-128,URI="' + item.keyUrl + '"' + '\r\n';
  239. for (let i = Number(item.str_end.split('-')[0]); i <= countNum; i++) {
  240. m3u8Content += '#EXTINF:' + duration + ',' + '\r\n';
  241. m3u8Content += item.start_url + i + '.ts' + '\r\n';
  242. }
  243. m3u8Content += '#EXT-X-ENDLIST';
  244. const file = new Blob([m3u8Content], {
  245. type: 'text/plain'
  246. })
  247. return URL.createObjectURL(file);
  248. } catch (e) {
  249. console.log(e)
  250. return ''
  251. }
  252. }
  253. const asyncXmlhttpRequest = function (url, method, params = {}){
  254. return new Promise((res, rej) =>{
  255. const request = {
  256. method: method,
  257. url: url,
  258. onload: function(response) {
  259. if(response.responseText){
  260. let result = ''
  261. try{
  262. result = JSON.parse(response.responseText)
  263. }catch(e){
  264. result = response.responseText
  265. }
  266. res(result)
  267. }else{
  268. rej('请求失败_null')
  269. }
  270. },
  271. onerror: function(e){
  272. rej('请求失败_err')
  273. },
  274. ontimeout: function(e){
  275. rej('请求超时')
  276. }
  277. }
  278. if(params.data) request.data = params.data;
  279. if(params.headers) request.headers = params.headers;
  280. GM_xmlhttpRequest(request);
  281. })
  282. }
  283.  
  284. const ec = {
  285. b64: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",
  286. b64re: /^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,
  287. swaqbt: (string, flag = true) => {
  288. string = String(string);
  289. var bitmap, a, b, c, result = "",
  290. i = 0,
  291. rest = string.length % 3;
  292. for (; i < string.length;) {
  293. if ((a = string.charCodeAt(i++)) > 255 || (b = string.charCodeAt(i++)) > 255 || (c = string
  294. .charCodeAt(i++)) > 255) {
  295. return "Failed to execute swaqbt"
  296. }
  297. bitmap = (a << 16) | (b << 8) | c;
  298. result += ec.b64.charAt(bitmap >> 18 & 63) + ec.b64.charAt(bitmap >> 12 & 63) +
  299. ec.b64.charAt(bitmap >> 6 & 63) + ec.b64.charAt(bitmap & 63);
  300. }
  301. if (flag) return ec.swaqbt(rest ? result.slice(0, rest - 3) + "===".substring(rest) : result,
  302. false)
  303. else return rest ? result.slice(0, rest - 3) + "===".substring(rest) : result;
  304. },
  305.  
  306. sfweccat: (string, flag = true) => {
  307. string = String(string).replace(/[\t\n\f\r ]+/g, "");
  308. if (!ec.b64re.test(string)) {
  309. return 'Failed to execute sfweccat'
  310. }
  311. string += "==".slice(2 - (string.length & 3));
  312. var bitmap, result = "",
  313. r1, r2, i = 0;
  314. for (; i < string.length;) {
  315. bitmap = ec.b64.indexOf(string.charAt(i++)) << 18 | ec.b64.indexOf(string.charAt(i++)) <<
  316. 12 |
  317. (r1 = ec.b64.indexOf(string.charAt(i++))) << 6 | (r2 = ec.b64.indexOf(string.charAt(
  318. i++)));
  319. result += r1 === 64 ? String.fromCharCode(bitmap >> 16 & 255) :
  320. r2 === 64 ? String.fromCharCode(bitmap >> 16 & 255, bitmap >> 8 & 255) :
  321. String.fromCharCode(bitmap >> 16 & 255, bitmap >> 8 & 255, bitmap & 255);
  322. }
  323. if (flag) return ec.sfweccat(result, false)
  324. else return result
  325. },
  326.  
  327. knxkbxen: (s) => {
  328. s = ec.swaqbt(encodeURIComponent(JSON.stringify(s)), false);
  329. const n = Math.round(Math.random() * (s.length > 11 ? 8 : 1) + 1);
  330. const l = s.split('');
  331. const f = l.filter(i => {
  332. i == '=';
  333. })
  334. for (let i = 0; i < l.length; i++) {
  335. if (i == n) l[i] = l[i] + 'JS';
  336. if (l[i] == '=') l[i] = '';
  337. }
  338. return ec.b64[Math.floor(Math.random() * 62)] + (l.join('') + n) + f.length;
  339. },
  340.  
  341. cskuecede: (s) => {
  342. if (s.startsWith('JSXL')) s = s.replace('JSXL', '');
  343. s = s.substring(ec.sfweccat('TVE9PQ=='));
  344. const n = s.substring(s.length - 2, s.length - 1);
  345. const d = s.substring(s.length - 1);
  346. const l = s.substring(0, s.length - 2).split('');
  347. for (let i = 0; i < l.length; i++) {
  348. if (i == (Number(n) + 1)) {
  349. l[i] = '';
  350. l[i + 1] = '';
  351. break;
  352. }
  353. }
  354. for (let i = 0; i < Number(d); i++) {
  355. l.plus('=')
  356. }
  357. return JSON.parse(decodeURIComponent((ec.sfweccat(l.join(''), false))))
  358. }
  359. }
  360.  
  361. var obj = Object.create(null),t = Date.now();
  362. Object.defineProperty(obj, "a", {
  363. get: function() {
  364. if (Date.now() - t > 100) {
  365. const textArea = document.createElement('textarea');
  366. while (true) {
  367. try {
  368. document.body.appendChild(textArea);
  369. document.body.appendChild(textArea);
  370. localStorage.setItem(Math.random() * 2,Math.random() * 2);
  371. sessionStorage.setItem(Math.random() * 2,Math.random() * 2);
  372. } catch (e) {}
  373. }
  374. }
  375. }
  376. })
  377. setInterval(function() {
  378. console.clear();
  379. t = Date.now();
  380. (function() {})["constructor"]("debugger")();
  381. console.log(obj.a);
  382. }, 1000)
  383.  
  384. const util = {
  385. initAppDate: (haveBox = true)=>{
  386. let roles = '';
  387. if(superVip._CONFIG_.user && superVip._CONFIG_.user.roles){
  388. superVip._CONFIG_.user.roles.sort((a,b) =>{
  389. return a.e < b.e? 1: -1
  390. })
  391. superVip._CONFIG_.user.roles.forEach(item => {
  392. if(item.e > 2047980427789){
  393. item.vip_day = '永久'
  394. }else{
  395. const time = item.e - Date.now()
  396. if(time < 86400000 && time > 0){
  397. if(time > 3600000){
  398. item.vip_day = parseInt(time / 3600000) + '小时'
  399. }else{
  400. item.vip_day = parseInt(time / 60000) + '分钟'
  401. }
  402. }else if(time <= 0){
  403. item.vip_day = '已过期'
  404. item.expire = true
  405. }else{
  406. item.vip_day = parseInt(time / 86400000) + '天'
  407. const d = time % 86400000
  408. if(d > 3600000){
  409. item.vip_day += parseInt(d / 3600000) + '小时'
  410. }
  411. }
  412. }
  413. roles += `
  414. <div class="info-box ${item.expire?'expire':''}">
  415. <div class="avatar-box">
  416. <img class="avatar" src="${superVip._CONFIG_.cdnBaseUrl + '/image/boy.jpeg'}"/>
  417. </div>
  418. <div class="desc">
  419. <div style="font-size: 11px;">${item.n}</div>
  420. <div style="font-size: 10px;">${new Date(item.e).toLocaleString()}</div>
  421. </div>
  422. <div class="vip-day">
  423. <div style="font-size: 10px;">剩余时间</div>
  424. <div style="font-size: 10px;">${item.vip_day}</div>
  425. </div>
  426. </div>
  427. `;
  428. })
  429. if(haveBox){
  430. $('#wt-set-box .user-box-container .user-box .apps-container').empty()
  431. $('#wt-set-box .user-box-container .user-box .apps-container').append(roles)
  432. }
  433. }
  434. return haveBox? '': roles
  435. },
  436. copyText: (text) => {
  437. if (navigator.clipboard && window.isSecureContext) {
  438. return navigator.clipboard.writeText(text);
  439. } else if (document.execCommand) {
  440. const textArea = document.createElement('textarea');
  441. textArea.style.position = 'fixed';
  442. textArea.style.top = textArea.style.left = '-100vh';
  443. textArea.style.opacity = '0';
  444. textArea.value = text;
  445. document.body.appendChild(textArea);
  446. textArea.focus();
  447. textArea.select();
  448. try {
  449. const success = document.execCommand('copy');
  450. return success ? Promise.resolve() : Promise.reject();
  451. } catch (err) {
  452. return Promise.reject(err);
  453. } finally {
  454. textArea.remove();
  455. }
  456. } else {
  457. return Promise.reject(new Error('Clipboard API not supported and execCommand not available.'));
  458. }
  459. },
  460.  
  461. logined: () => {
  462. $("#wt-my img").addClass('margin-left')
  463. $('#wt-my img').attr('src', superVip._CONFIG_.user.avatar)
  464. $('#wt-set-box .user-box-container .user-info').css('display', 'flex')
  465. $('#wt-set-box .user-box-container .user-info img').attr('src', superVip._CONFIG_.user.avatar)
  466. $('#wt-set-box .user-box-container .user-info .nickname').html(superVip._CONFIG_.user.nickname)
  467. $('#wt-set-box .user-box-container .user-info .username').html(superVip._CONFIG_.user.username)
  468. },
  469.  
  470. logouted: (msg) => {
  471. superVip._CONFIG_.user = '';
  472. $("#wt-my img").removeClass('margin-left')
  473. $('#wt-my img').attr('src',superVip._CONFIG_.cdnBaseUrl + '/image/app.png')
  474. $('#wt-set-box .user-box-container .user-info').css('display', 'none')
  475. GM_setValue('jsxl_user', '')
  476. if(msg){
  477. util.showTips({
  478. title: '请重新登录,errMsg:' + msg
  479. })
  480. }
  481. },
  482.  
  483. showAndHidTips: (name, op = 'set', val = true) => {
  484. let tips = GM_getValue('wt_tips', {})
  485. if (!tips) tips = {}
  486. if (op == 'set') {
  487. tips[name] = val
  488. GM_setValue('wt_tips', tips)
  489. if (val) $('.' + name).addClass('tips-yuan')
  490. else $('.' + name).removeClass('tips-yuan')
  491. return true
  492. } else {
  493. return tips[name] ? true : false
  494. }
  495. },
  496.  
  497. addLogin: () => {
  498. if ($('#wt-login-box').length > 0) {
  499. $("#wt-login-box input").val('');
  500. return;
  501. }
  502. $('body').append(`
  503. <div id="wt-login-mask"></div>
  504. <div id="wt-login-box">
  505. <div class="logo">
  506. <p>@${superVip._CONFIG_.homeUrl}</p>
  507. <p>v ${superVip._CONFIG_.version}</p>
  508. </div>
  509. <div class="close"></div>
  510. <div class="title">登录码</div>
  511. <textarea class="max-input" placeholder="请输入${superVip._CONFIG_.homeUrl}网址以字符lucky开头的登录码"></textarea>
  512. <div class="j-login-btn">
  513. <button >登录</button>
  514. </div>
  515. <div class="to-index" style="display: flex;justify-content: space-between;color: #00bcd4; height: 40px;line-height: 40px;font-size: 11px;font-weight: 500;">
  516. <div class="wt-register">注册登录码</div>
  517. <div class="wt-index">去发电获取权限?</div>
  518. </div>
  519. </div>
  520. `)
  521. GM_addStyle(`
  522. #wt-login-mask{ display: none;position: fixed;top: 0;left: 0;right: 0;bottom: 0;z-index: 11000;background-color: #0000004d;}
  523. #wt-login-box{position: fixed;margin-top: 3%;top: 50%;left: 50%;transform: translate(-50%,-50%) scale(0);overflow: hidden;background-color: white;padding: 30px;padding-bottom: 0;border-radius: 10px;z-index: 11010;}
  524. #wt-login-box::before{display:none; content:'';position: absolute;width: 250px;height: 250px;border-radius: 200px;background-color: #00bcd4;z-index: -1;opacity: 0.7;bottom: 110px;right: 100px;}
  525. #wt-login-box::after{display:none;content:'';position: absolute;width: 250px;height: 250px;border-radius: 200px;background-color: #2196F3;z-index: -1;opacity: 0.7;top: 115px;right: -112px;}
  526. #wt-login-box .close{position: absolute;right: 0px;top: 0px;width: 40px;height: 40px;}
  527. #wt-login-box .close::before,#wt-login-box .close::after{position: absolute;left: 50%;top: 50%;content: '';width: 16px;height: 2px;border-radius: 1px;background-color: #222;transform: translate(-50%,-50%) rotate(45deg);}
  528. #wt-login-box .close::after,#wt-set-box .close::after{transform: translate(-50%,-50%) rotate(-45deg);}
  529. #wt-login-box .max-input{display: block;margin: 0 auto;resize: none;width: 180px;font-size: 12px;height: 150px;outline: none;padding: 10px;border-radius: 12px;border: none;background-color: #f5f5f5;color: #838383;}
  530. #wt-login-box textarea::-webkit-input-placeholder {letter-spacing: 1px;color: #ccc;}
  531. #wt-login-box textarea:-moz-placeholder {letter-spacing: 1px;color: #ccc;}
  532. #wt-login-box textarea::-moz-placeholder {letter-spacing: 1px;color: #ccc;}
  533. #wt-login-box .title{font-weight: 600;font-size: 16px;color: #3a3a3a;text-align: center;margin-bottom: 20px;}
  534. #wt-login-box .j-login-btn{width: 100px;padding: 2px;height: 40px;font-size: 12px;margin: 15px auto;}
  535. #wt-login-box .j-login-btn button{width: 100%;height: 100%;border-radius: 30px;border: none;color: white;transition: all 0.3s ease;background-color: #00bcd4;}
  536. #wt-login-box .logo{position: absolute;top: 5%;left: 1%; color: #dbdbdb; font-size: 11px;transform: rotate(-15deg);text-align: center;z-index: -10;}
  537. `)
  538. $("#wt-login-mask").on("click", () => {
  539. $('#wt-login-mask').css('display', 'none')
  540. $("#wt-login-box").removeClass('show-set-box')
  541. $("#wt-login-box").addClass('hid-set-box')
  542. })
  543. $("#wt-login-box .close").on("click", () => {
  544. $('#wt-login-mask').css('display', 'none')
  545. $("#wt-login-box").removeClass('show-set-box')
  546. $("#wt-login-box").addClass('hid-set-box')
  547. })
  548. $("#wt-login-box .to-index .wt-register").on("click", () => {
  549. window.open(superVip._CONFIG_.homeUrl + '/#/pages/login/login')
  550. })
  551. $("#wt-login-box .to-index .wt-index").on("click", () => {
  552. window.open(superVip._CONFIG_.homeUrl +'/#/')
  553. })
  554. $("#wt-login-box .j-login-btn button").on("click", async () => {
  555. try{
  556. $('#wt-loading-box').css('display', 'block')
  557. await util.sleep(300);
  558. $("#wt-login-box .j-login-btn button").addClass('btn-anima')
  559. setTimeout(() => {
  560. $("#wt-login-box .j-login-btn button").removeClass('btn-anima')
  561. }, 500)
  562. const code = $("#wt-login-box textarea")[0].value.replace(/\s+/g, '');
  563. const splits = code.split('-')
  564. if(code.length < 100 || splits.length != 6 || splits[0] != 'lucky' || splits[splits.length-1] != 'lucky' || splits[1].length != splits[2] || splits[3].length != 32 || splits[4].length != 14){
  565. setTimeout(() => {
  566. $('#wt-loading-box').css('display', 'none')
  567. util.showTips({
  568. title: '登录码错误,请使用' + superVip._CONFIG_.homeUrl + '网站的登录码登入插件</br>' + superVip._CONFIG_.guide
  569. })
  570. }, 2000)
  571. return
  572. }
  573. $.ajax({
  574. url: superVip._CONFIG_.apiBaseUrl + '/l' + (Math.floor(Math.random() * 2) + 1) + '00/ls',
  575. method: "POST",
  576. timeout: 12000,
  577. data: {
  578. username: code,
  579. ap: 'NGtKrSiVFNCVCOSU5MEolRTUlOUMlQjAYKprE',
  580. version: superVip._CONFIG_.version
  581. },
  582. dataType: 'json',
  583. success: function(response) {
  584. if (response.errCode != 0) {
  585. $('#wt-loading-box').css('display', 'none');
  586. util.showTips({
  587. title: response.errMsg + ',' + superVip._CONFIG_.guide
  588. })
  589. } else {
  590. const res = {
  591. avatar: response.data.user.avatar,
  592. username: superVip._CONFIG_.homeUrl,
  593. nickname: response.data.user.nickname,
  594. login_date: new Date().setHours(0,0,0,0),
  595. token: response.data.token,
  596. role: response.data.user.current_role,
  597. roles: response.data.user.r,
  598. downloadTips: response.data.utilObj.downloadTips,
  599. d: response.d
  600. }
  601. superVip._CONFIG_.user = res
  602. superVip._CONFIG_.user.ver = md5x(superVip)
  603. util.logined()
  604. GM_setValue('jsxl_user', res)
  605. GM_setValue('jsxl_login_code', code)
  606. $('#wt-loading-box').css('display', 'none')
  607. $('#wt-login-mask').css('display','none')
  608. $("#wt-login-box").removeClass('show-set-box')
  609. $("#wt-login-box").addClass('hid-set-box')
  610. util.showTips({
  611. title: response.errMsg,
  612. success: (e) => {
  613. window.location.reload()
  614. }
  615. })
  616. }
  617. },
  618. error: function(e) {
  619. $('#wt-loading-box').css('display', 'none')
  620. console.log(e)
  621. util.showTips({
  622. title: '网络延迟登录失败,请关掉梯子(vpn)再试或梯子尝试换港台地区节点再试,一般关掉梯子多试几次登录就行,' + superVip._CONFIG_.guide
  623. })
  624. }
  625. });
  626. }catch(e){
  627. $('#wt-loading-box').css('display', 'block')
  628. alert(e)
  629. util.showTips({
  630. title: '网络延迟登录失2,请关掉梯子(vpn)再试或梯子尝试换港台地区节点再试,一般关掉梯子多试几次登录就行,' + superVip._CONFIG_.guide
  631. })
  632. }
  633. })
  634. },
  635.  
  636. asyncHttp: async (url, timeout = 6000, isHeader = true) => {
  637. return new Promise((resolve, reject) => {
  638. var request = new XMLHttpRequest();
  639. request.open('GET', url, true);
  640. if(isHeader){
  641. request.setRequestHeader('luckyToken', superVip._CONFIG_.user.token);
  642. }
  643. request.timeout = timeout;
  644. request.onload = function() {
  645. if (request.readyState == 4) {
  646. if (request.status === 200) {
  647. resolve({
  648. errMsg: 'success',
  649. responseText: request.responseText
  650. });
  651. } else {
  652. resolve({
  653. errMsg: 'err1',
  654. responseText: ''
  655. });
  656. }
  657. }
  658. };
  659. request.onerror = function() {
  660. resolve({
  661. errMsg: 'err2',
  662. responseText: ''
  663. });
  664. };
  665. request.ontimeout = function() {
  666. resolve({
  667. errMsg: 'timeout',
  668. responseText: ''
  669. });
  670. };
  671. request.send();
  672. });
  673. },
  674.  
  675. findTargetElement: (targetContainer, maxTryTime = 30) => {
  676. const body = window.document;
  677. let tabContainer;
  678. let tryTime = 0;
  679. let startTimestamp;
  680. return new Promise((resolve, reject) => {
  681. function tryFindElement(timestamp) {
  682. if (!startTimestamp) {
  683. startTimestamp = timestamp;
  684. }
  685. const elapsedTime = timestamp - startTimestamp;
  686. if (elapsedTime >= 500) {
  687. console.log("find element:" + targetContainer + ",this" + tryTime + "num")
  688. tabContainer = body.querySelector(targetContainer)
  689. if (tabContainer) {
  690. resolve(tabContainer)
  691. } else if (++tryTime === maxTryTime) {
  692. reject()
  693. } else {
  694. startTimestamp = timestamp
  695. }
  696. }
  697. if (!tabContainer && tryTime < maxTryTime) {
  698. requestAnimationFrame(tryFindElement);
  699. }
  700. }
  701. requestAnimationFrame(tryFindElement);
  702. });
  703. },
  704.  
  705. sleep: (time) => {
  706. return new Promise((res, rej) => {
  707. setTimeout(() => {
  708. res()
  709. }, time)
  710. })
  711. },
  712.  
  713. showTips: (item = {}) => {
  714. $('#wt-maxindex-mask').css('display', 'block');
  715. $("#wt-tips-box").removeClass('hid-set-box');
  716. $("#wt-tips-box").addClass('show-set-box');
  717. $('#wt-tips-box .btn-box').empty()
  718. $('#wt-tips-box .btn-box').append(`
  719. <button class='cancel'>取消</button>
  720. <button class='submit'>确定</button>
  721. `)
  722. if (item.title) $('#wt-tips-box .content').html(item.title);
  723. if (item.doubt) $('#wt-tips-box .btn-box .cancel').css('display', 'block');
  724. if (item.confirm) $('#wt-tips-box .btn-box .submit').html(item.confirm);
  725. if (item.hidConfirm) {
  726. $('#wt-tips-box .submit').css('display', 'none');
  727. } else {
  728. $('#wt-tips-box .submit').css('display', 'block');
  729. }
  730. $('#wt-tips-box .btn-box .submit').on('click', () => {
  731. $('#wt-maxindex-mask').css('display', 'none');
  732. $("#wt-tips-box").removeClass('show-set-box');
  733. $("#wt-tips-box").addClass('hid-set-box');
  734. if (item.success) item.success(true);
  735. })
  736. $('#wt-tips-box .btn-box .cancel').on('click', () => {
  737. $('#wt-maxindex-mask').css('display', 'none');
  738. $("#wt-tips-box").removeClass('show-set-box');
  739. $("#wt-tips-box").addClass('hid-set-box');
  740. if (item.success) item.success(false);
  741. })
  742. },
  743.  
  744. showDownLoadWindow: (show = true, msg) => {
  745. if (!show) {
  746. $('#wt-mask-box').css('display', 'none');
  747. $("#wt-download-box").removeClass('show-set-box');
  748. $("#wt-download-box").addClass('hid-set-box');
  749. return
  750. }
  751. $('#wt-mask-box').css('display', 'block');
  752. const downloadUrl = superVip._CONFIG_.videoUrl.downloadUrlSign;
  753. if (!document.querySelector('#wt-download-box')) {
  754. let items = `<li class="item" data-url="${downloadUrl}" data-type="copy" style="background-color: #00bcd4;color:#e0e0e0;">复制链接</li>`
  755. superVip._CONFIG_.downUtils.forEach((item, index) => {
  756. items += `
  757. <li class="item" data-url="${item.url + (item.isAppend?'':'?m3u8=') + downloadUrl}">${item.title}</li>
  758. `
  759. })
  760. $('body').append(`
  761. <div id="wt-download-box">
  762. <div class="close"></div>
  763. <div class="tips">* ${msg?msg + '(刷新页面或打开其它帖子链接将丢失,链接有效期60分钟)': '视频链接有效期60分钟,请尽快使用。'}</div>
  764. <ul>${items}</ul>
  765. </div>
  766. `)
  767. } else {
  768. $('#wt-download-box').empty()
  769. let items = `<li class="item" data-url="${downloadUrl}" data-type="copy" style="background-color: #00bcd4;color:#e0e0e0;">复制链接</li>`
  770. superVip._CONFIG_.downUtils.forEach((item, index) => {
  771. items += `
  772. <li class="item" data-url="${item.url + (item.isAppend?'':'?m3u8=') + downloadUrl}">${item.title}</li>
  773. `
  774. })
  775. $('#wt-download-box').append(`<view class="close"></view><div class="tips">* ${msg?msg + '(刷新页面或打开其它帖子链接将丢失,链接有效期60分钟)': '刷新页面或打开其它帖子链接将丢失,链接有效期60分钟'}</div><ul>${items}</ul>`)
  776. }
  777. if(superVip._CONFIG_.isMobile && superVip._CONFIG_.isMobile[0] == 'iPhone'){
  778. $('#wt-download-box ul')[0].innerHTML += `<li class="item" data-open="1" data-url="https://apps.apple.com/cn/app/m3u8-mpjex/id6449724938">苹果视频下载软件</li>`
  779. }
  780. if(superVip._CONFIG_.isMobile && superVip._CONFIG_.isMobile[0] == 'Android'){
  781. $('#wt-download-box ul')[0].innerHTML += `<li class="item" data-open="1" data-url="https://wwjf.lanzoul.com/isifQ18id4fa">安卓视频下载软件(密3y3a)</li>`
  782. }
  783.  
  784. $("#wt-download-box").removeClass('hid-set-box');
  785. $("#wt-download-box").addClass('show-set-box');
  786. $("#wt-download-box .item").on('click', function(e) {
  787. const url = e.target.dataset.url
  788. if(e.target.dataset.type == 'copy'){
  789. if(url){
  790. util.copyText(url).then(res => {
  791. util.showTips({
  792. title: '视频地址复制成功,请尽快使用'
  793. })
  794. }).catch(err =>{
  795. util.showTips({
  796. title: '复制失败,请通过下面在线下载再复制输入框内的视频地址'
  797. })
  798. })
  799. }else{
  800. util.showTips({
  801. title: '抱歉,未检测到视频'
  802. })
  803. }
  804. return;
  805. }
  806. if (!url || !url.includes('.m3u8') && e.target.dataset.open != 1) {
  807. util.showTips({
  808. title: '抱歉,未检测到视频,还继续前往吗?',
  809. doubt: true,
  810. success: (res) => {
  811. if (res) {
  812. window.open(url)
  813. }
  814. }
  815. })
  816. } else {
  817. window.open(url);
  818. }
  819. })
  820. $("#wt-download-box .close").on('click', function() {
  821. $("#wt-mask-box").click()
  822. })
  823. },
  824.  
  825. showNotify: (item = {}) => {
  826. $("#wt-notify-box").removeClass('hid-notify-box')
  827. $("#wt-notify-box").addClass('show-notify-box')
  828. let version = superVip._CONFIG_.version
  829. const v = /当前插件版本 (\d\.\d\.\d\.{0,1}\d{0,2})/.exec(item.title)
  830. if (v) item.title = item.title.replace(v[1], version)
  831. if (item.title) $('#wt-notify-box .content').html(item.title + (version ?
  832. '<div style="text-align: right;color: #ccc;font-size: 10px;margin-top: 10px;">v ' +
  833. version + '</div>' : ''))
  834. superVip._CONFIG_.showNotify = true
  835. $('#wt-notify-box a').on('click', (e) => {
  836. e.stopPropagation()
  837. })
  838. $('#wt-notify-box').on('click', () => {
  839. $("#wt-notify-box").removeClass('show-notify-box')
  840. $("#wt-notify-box").addClass('hid-notify-box')
  841. superVip._CONFIG_.showNotify = false
  842. if (item.success) item.success(true)
  843. })
  844. }
  845. }
  846. const superVip = (function() {
  847. const _CONFIG_ = {
  848. homeUrl: 'https://vip.luckychajian.cn',
  849. apiBaseUrl: 'https://api.luckychajian.com',
  850. cdnBaseUrl: 'https://cdn.luckychajian.com',
  851. guide: '如长时间无法登录请前往以下网站查看公告或尝试联系客服</br></br>Lucky公告网址</br></br><a href="http://luckychajian.3vhost.work?pwd=lucky">luckychajian.3vhost.work?pwd=lucky</a>',
  852. isMobile: navigator.userAgent.match(
  853. /(Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini)/i),
  854. vipBoxId: 'wt-vip-jx-box' + Math.ceil(Math.random() * 100000000),
  855. version: '1.0.0',
  856. videoUrl: {},
  857. downUtils: [
  858. {
  859. title: '在线下载1(适合电脑)',
  860. url: 'http://tools.bugscaner.com/m3u8.html',
  861. isAppend: false
  862. },
  863. {
  864. title: '在线下载2(适合电脑)',
  865. url: 'https://tools.thatwind.com/tool/m3u8downloader#m3u8=',
  866. isAppend: true
  867. },
  868. {
  869. title: '在线下载3(适合电脑)',
  870. url: 'https://blog.luckly-mjw.cn/tool-show/m3u8-downloader/index.html?source=',
  871. isAppend: true
  872. }
  873. ]
  874. }
  875. class BaseConsumer {
  876. constructor(body) {
  877. this.parse = () => {
  878. this.interceptHttp()
  879. util.findTargetElement('body').then(container => {
  880. container.addEventListener('touchmove', function(e){
  881. e.stopPropagation()
  882. })
  883. this.generateElement(container).then(
  884. container => this.bindEvent(container))
  885. })
  886. }
  887. }
  888.  
  889. interceptHttp() {
  890. if(location.href.includes('/pages/hjsq')){
  891. const interceptMedia = (element) => {
  892. if(element.src && element.src.match(/\.mp4$/)){
  893. if(!superVip._CONFIG_.videoUrl.url || superVip._CONFIG_.videoUrl.url != element.src){
  894. superVip._CONFIG_.videoUrl.downloadUrlSign = ''
  895. superVip._CONFIG_.videoUrl.url = element.src
  896. superVip._CONFIG_.videoUrl.type = 0
  897. superVip._CONFIG_.videoUrl.playerType = 'mp4'
  898. util.showAndHidTips('wt_player_haijiao');
  899. }
  900. }
  901. };
  902. setInterval(()=>{
  903. document.querySelectorAll('#myVideo source').forEach(interceptMedia);
  904. },700)
  905. }
  906. const originalFetch = unsafeWindow.fetch;
  907. unsafeWindow.fetch = async function(url, options) {
  908. return await initPlayerUrl(url, originalFetch, options)
  909. };
  910. }
  911.  
  912. generateElement(container) {
  913. GM_addStyle(`
  914. @font-face {
  915. font-family: 'iconfont'; /* Project id 4784633 */
  916. src: url('//at.alicdn.com/t/c/font_4784633_m832t9irm9f.woff2?t=1734418085047') format('woff2'),
  917. url('//at.alicdn.com/t/c/font_4784633_m832t9irm9f.woff?t=1734418085047') format('woff'),
  918. url('//at.alicdn.com/t/c/font_4784633_m832t9irm9f.ttf?t=1734418085047') format('truetype');
  919. }
  920. .iconfont {
  921. font-family: "iconfont" !important;
  922. font-size: 16px;
  923. font-style: normal;
  924. font-weight: 400 !important;
  925. -webkit-font-smoothing: antialiased;
  926. -moz-osx-font-smoothing: grayscale;
  927. }
  928. @keyframes showSetBox {
  929. 0% {
  930. transform: translate(-50%,-50%) scale(0);
  931. }
  932. 80% {
  933. transform: translate(-50%,-50%) scale(1.1);
  934. }
  935. 100% {
  936. transform: translate(-50%,-50%) scale(1);
  937. }
  938. }
  939. @keyframes hidSetBox {
  940. 0% {
  941. transform: translate(-50%,-50%) scale(1);
  942. }
  943. 80% {
  944. transform: translate(-50%,-50%) scale(1.1);
  945. }
  946. 100% {
  947. transform: translate(-50%,-50%) scale(0);
  948. }
  949. }
  950. @keyframes colorAnima {
  951. 0%{
  952. background-color: #f0f0f0;
  953. color: #5d5d5d;
  954. transform: scale(1);
  955. }
  956. 50%{
  957. transform: scale(1.1);
  958. }
  959. 100%{
  960. background-color: #ff6022;;
  961. color: white;
  962. transform: scale(1);
  963. }
  964. }
  965. @keyframes showNotifyBox {
  966. 0% {
  967. transform: translate(-50%,-100%) scale(0);
  968. }
  969. 80% {
  970. transform: translate(-50%,35px) scale(1.1);
  971. }
  972. 100% {
  973. transform: translate(-50%,35px) scale(1);
  974. }
  975. }
  976. @keyframes hidNotifyBox {
  977. 0% {
  978. transform: translate(-50%,35px) scale(1.1);
  979. }
  980. 80% {
  981. transform: translate(-50%,35px) scale(1);
  982. }
  983. 100% {
  984. transform: translate(-50%,-100%) scale(0);
  985. }
  986. }
  987. @keyframes scale {
  988. 0%{
  989. transform: scale(1);
  990. }
  991. 50%{
  992. transform: scale(1.1);
  993. }
  994. 100%{
  995. transform: scale(1);
  996. }
  997. }
  998. @keyframes circletokLeft {
  999. 0%,100% {
  1000. left: 0px;
  1001. width: 12px;
  1002. height: 12px;
  1003. z-index: 0;
  1004. }
  1005. 25% {
  1006. height: 15px;
  1007. width: 15px;
  1008. z-index: 1;
  1009. left: 8px;
  1010. transform: scale(1)
  1011. }
  1012. 50% {
  1013. width: 12px;
  1014. height: 12px;
  1015. left: 22px;
  1016. }
  1017. 75% {
  1018. width: 10px;
  1019. height: 10px;
  1020. left: 8px;
  1021. transform: scale(1)
  1022. }
  1023. }
  1024. @keyframes circletokRight {
  1025. 0%,100% {
  1026. top: 3px;
  1027. left: 22px;
  1028. width: 12px;
  1029. height: 12px;
  1030. z-index: 0
  1031. }
  1032. 25% {
  1033. height: 15px;
  1034. width: 15px;
  1035. z-index: 1;
  1036. left: 24px;
  1037. transform: scale(1)
  1038. }
  1039. 50% {
  1040. width: 12px;
  1041. height: 12px;
  1042. left: 0px;
  1043. }
  1044. 75% {
  1045. width: 10px;
  1046. height: 10px;
  1047. left: 24px;
  1048. transform: scale(1)
  1049. }
  1050. }
  1051. .color-anima{
  1052. animation: colorAnima .3s ease 1 forwards;
  1053. }
  1054. .btn-anima{
  1055. animation: scale .3s ease 1 forwards;
  1056. }
  1057.  
  1058. #app .dplayer-controller{ bottom: 10px !important}
  1059. html .van-overflow-hidden, body{ overflow: auto !important;}
  1060. .video-bg,.playWaring,.packFree,.activity_time,.has-vip .mask, .buy-porp, .md-mine-sj p:nth-child(2), .overlay, .lockOpenbtn, .van-overlay, .van-popup--center, .findhoPack, .bot_banner, .JGbtnList, .ai-inside-box, .popup2-content, .video-ask, .top-swiper, .splashAD, .top_banner, .downApk, .swiperPack{display:none !important;z-index:-99999 !important;opacity: 0!important;width :0 !important;}
  1061. .md-mine-sj p:nth-child(1) {color: #00bcd4;}
  1062. .vipTip-first h2{ position: relative; width: 80%; text-align: center; font-size: 15px; color: #00bcd4;}
  1063. .vipTip-first p{ margin-top: 25px !important;}
  1064. .vipTip-first h2::before{content: '请使用右侧插件播放按钮播放视频'; position: absolute;top: 0;left:0; right:0; bottom:0; background-color: #000;}
  1065.  
  1066. #wt-resources-box{position: relative; border: 1px dashed #ec8181;background: #fff4f4;}
  1067. .sell-btn{border:none !important;margin-top:20px;}
  1068. .margin-left{ margin-left: 0 !important;}
  1069. .show-set-box{ animation: showSetBox 0.3s ease 1 forwards;}
  1070. .hid-set-box{ animation: hidSetBox 0.3s ease 1 forwards;}
  1071. .show-notify-box{ animation: showNotifyBox 0.3s ease 1 forwards;}
  1072. .hid-notify-box{ animation: hidNotifyBox 0.3s ease 1 forwards;}
  1073. #wt-loading-box{display: none;position: fixed;top: 0;left: 0;right: 0;bottom: 0;z-index: 100000;background-color: #0000004d;}
  1074. #wt-loading-box .loading{position: absolute;width: 35px;height: 17px;top: 50%;left: 50%;transform: translate(-50%,-50%);}
  1075. #wt-loading-box .loading::before,
  1076. #wt-loading-box .loading::after{position: absolute;content: "";top: 3px;background-color: #ffe60f;width: 14px;height: 14px;border-radius: 20px;mix-blend-mode: multiply;animation: circletokLeft 1.2s linear infinite;}
  1077. #wt-loading-box .loading::after{animation: circletokRight 1.2s linear infinite;background-color: #4de8f4;}
  1078. #wt-left-show{ position: fixed;left: 20px;top: 50%;transform: translateY(-50%);z-index: 99999;transition: all 0.3s ease;}
  1079. #wt-left-show i {color: #5f5b5b;font-size: 27px;color: #e91e63;text-shadow: #e91e63 2px 2px 12px;font-size: 25px;margin-left: -1px;}
  1080. #wt-${_CONFIG_.vipBoxId}{
  1081. position: fixed;
  1082. top: 50%;
  1083. transform: translate(0, -50%);
  1084. right: 10px;
  1085. width: 46px;
  1086. border-radius: 30px;
  1087. background: rgb(64 64 64 / 81%);
  1088. box-shadow: 1px 1px 8px 1px rgb(98 99 99 / 34%);
  1089. z-index: 99999;
  1090. transition: all 0.3s ease;
  1091. }
  1092. #wt-${_CONFIG_.vipBoxId} .item{position: relative;height: 60px;}
  1093. .tips-yuan::before{ position: absolute; content: '';top: 12px; right: 6px;width: 8px;height: 8px; border-radius: 10px; background-color: #5ef464;}
  1094. .tips-yuan-err::before{ position: absolute; content: '';top: 12px; right: 6px;width: 8px;height: 8px; border-radius: 10px; background-color: #f83f32;}
  1095. #wt-${_CONFIG_.vipBoxId} .item:not(:last-child)::after{position: absolute;bottom: 0;left: 22.5%;content: '';width: 55%;height: 2px;background-color: #fff;}
  1096. #wt-${_CONFIG_.vipBoxId} .item .iconfont,#wt-${_CONFIG_.vipBoxId} .item img{position: absolute;top:50%;left:50%;transform: translate(-50%,-50%)}
  1097. #wt-login-box .close,#wt-set-box .close,#wt-notify-box .close{position: absolute;right: 0px;top: 0px;width: 40px;height: 40px;}
  1098. #wt-login-box .close::before,#wt-login-box .close::after,#wt-set-box .close::before,#wt-set-box .close::after,#wt-notify-box .close::before,#wt-notify-box .close::after{position: absolute;left: 50%;top: 50%;content: '';width: 12px;height: 2px;border-radius: 1px;background-color: #6a6a6a;transform: translate(-50%,-50%) rotate(45deg);visibility: visible;}
  1099. #wt-login-box .close::after,#wt-set-box .close::after,#wt-notify-box .close::after{transform: translate(-50%,-50%) rotate(-45deg);}
  1100. #wt-${_CONFIG_.vipBoxId} .absolute-center{ position: absolute;top: 50%;left: 50%;transform: translate(-50%, -50%);}
  1101. #wt-${_CONFIG_.vipBoxId} #wt-my img{ width: 28px;height: 28px;border-radius: 30px;margin-left: 2px;transtion: all 0.3s ease;}
  1102. #wt-${_CONFIG_.vipBoxId} #wt-my-set i {color: white;font-size: 24px;text-shadow: 2px 2px 14px #ffffff;font-family: 'iconfont';}
  1103. #wt-${_CONFIG_.vipBoxId} #wt-my-down i {color: white;font-size: 24px;text-shadow: 2px 2px 15px #ffffff;font-family: 'iconfont';}
  1104. #wt-${_CONFIG_.vipBoxId} #wt-my-notify i {color: white;font-size: 27px;padding: 10px 1px;text-shadow: 2px 2px 12px #ffffff;}
  1105. #wt-${_CONFIG_.vipBoxId} #wt-hid-box i {color: white;font-size: 21px;text-shadow: 2px 2px 12px #ffffff;margin-left: -1px;}
  1106. .wt-player-btn-box .player-btn{ position:absolute;top:42%;left:50%;transform:translate(-50%,-50%);width: 20%}
  1107. .wt-player-btn-box .tips{ position: absolute;bottom: 20px;left:50%;transform: translateX(-50%);color: #FFC107;width: 80%;text-align: center;font-size: 15px;font-weight: 500;}
  1108. #wt-mask-box,#wt-maxindex-mask{display:none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 10000; background-color: #00000057;}
  1109. #wt-maxindex-mask{z-index: 90000;display:none;}
  1110. #wt-set-box{ position:fixed; top:50%;left:50%; transform: translate(-50%,-50%) scale(0);overflow: hidden;background-color: white;box-shadow: 0 15px 30px rgba(0, 0, 0, .15);border-radius: 12px;z-index: 10010;padding: 10px 15px;padding-right: 5px;box-sizing: border-box;width: 300px;}
  1111. #wt-set-box::before{display: none;content:'';position: absolute;width: 150px;height: 150px;border-radius: 100px;background-color: #2196F3;z-index: -1;opacity: 0.7;bottom: 0;transform: translate(-40%,58%);}
  1112. #wt-set-box::after{display: none; content:'';position: absolute;width: 150px;height: 150px;border-radius: 100px;background-color: #FFC107;z-index: -1;opacity: 0.7;top: 0;right: 0;transform: translate(22%,-53%);}
  1113. #wt-set-box .selected-box .selected{ background-color: #ff6022;color: white;}
  1114. #wt-set-box .user-box-container{display: none;letter-spacing: 1px;}
  1115. #wt-set-box .info-box{display:flex;height: 50px;align-items: center;}
  1116. #wt-set-box .expire{ opacity: 0.35;}
  1117. #wt-set-box .info-box .avatar-box{position: relative;height: 36px;width: 36px;background-color: white;border-radius: 7px;box-shadow: rgb(166 166 166 / 20%) 0px 1px 20px 0px;}
  1118. #wt-set-box .user-box .title{text-align: center;font-weight: 600;font-size: 16px;color: #3a3a3a;}
  1119. #wt-set-box .user-box .desc{display: flex;flex-direction: column;height: 36px;justify-content: space-around;flex: 8;font-size: 10px;color: #5d5d5d;margin-left: 10px;}
  1120. #wt-set-box .user-box .vip-day{margin-right: 10px;text-align: center;color: #8a8a8a;font-size: 11px;}
  1121. #wt-set-box .user-box .avatar{position: absolute; width: 36px;height:36px;border-radius: 30px;border-radius: 7px;font-size: 0;}
  1122. #wt-set-box .user-box .user-info{ position: relative; left: -5px; display: flex;align-items: center;margin-bottom: 4px;background-color: #f1f1f1;border-radius: 11px;padding: 7px;}
  1123. #wt-set-box .user-box .user-info .info{margin-left: 10px;width: 180px;}
  1124. #wt-set-box .user-box .user-info .info .nickname{color: #676767;font-size: 12px;letter-spacing: 1px;}
  1125. #wt-set-box .user-box .user-info .info .username{color: #b9b9b9;font-size: 10px;margin-top: 2px;}
  1126. #wt-set-box .user-box .user-info .logout{position: absolute;font-size: 0;right: 12px;}
  1127. #wt-set-box .user-box .user-info .logout button{padding: 0 10px;height: 28px;background-color: #615b5b;border-radius: 30px;color: white;border: none;font-size: 10px;}
  1128. #wt-set-box .user-box .apps-container{ height: 330px; overflow: auto; margin-bottom: 10px;}
  1129. #wt-tips-box,#wt-download-box{ position:fixed;top:50%;left:50%;transform:translate(-50%,-50%) scale(0);overflow: hidden;width: 240px;min-height:130px;background-color: white;border-radius:12px;z-index: 95000;padding:10px 15px;}
  1130. #wt-tips-box,#wt-download-box .tips{ font-size: 10px;margin-top: 30px;color: #00bcd4;letter-spacing: 1px;}
  1131. #wt-tips-box .title{font-size: 16px;text-align: center;font-weight: 600;}
  1132. #wt-tips-box .content{text-align: center;margin: 14px 0;font-size: 12px;color: #2a2a2a;font-weight: 500;word-break: break-word;}
  1133. #wt-tips-box .content p{color: #ff4757;text-align: left;}
  1134. #wt-tips-box a{color: #1E88E5;text-decoration: underline;}
  1135. #wt-tips-box .btn-box{display:flex;justify-content: space-around;}
  1136. #wt-tips-box .btn-box button{min-width: 60px;height: 28px;background-color: #00bcd4;border-radius: 30px;color: white;border: none;font-size: 12px;}
  1137. #wt-tips-box .btn-box .cancel{display: none;background-color: #eee;color:#2a2a2a}
  1138. #wt-tips-box .logo{position: absolute;top: 9%;left: 1%; color: #dbdbdb; font-size: 11px;transform: rotate(-15deg);text-align: center;z-index: -10;}
  1139. #wt-tips-box .version{position: absolute;top: 5%; right: 10%;transform: rotate(-15deg);color: #dbdbdb;}
  1140. #wt-notify-box {position: fixed;top: 2%;left: 50%;transform:translate(-50%,-100%) scale(0);overflow: hidden;width: 80%;min-height: 75px;letter-spacing: 1px;background-color: white;color:#2a2a2a;border-radius: 15px;box-shadow: 0 15px 30px rgba(0, 0, 0, .15);z-index: 95000;}
  1141. #wt-notify-box::after{display:none; content:'';position: absolute;width: 250px;height: 250px;border-radius: 200px;background-color: #03A9F4;z-index: -1;opacity: 0.7;bottom: 0;left: 0;transform: translate(-50%,85%);}
  1142. #wt-notify-box .title{ text-align: center;height: 35px; line-height: 35px;font-size: 15px;font-weight: 600; color: #00bcd4;}
  1143. #wt-notify-box .content{ color: #3a3a3a;padding: 10px 15px;font-size: 12px;}
  1144. #wt-notify-box .content a{color: #1E88E5;text-decoration: underline;}
  1145. #wt-notify-box .content p{margin-bottom: 5px;}
  1146. .wt-player-btn-box{ position:absolute;top:0;left:0;right:0;bottom:0;z-index: 99998;background-color: #0000004d;}
  1147. #wt-video-container{display: none; position:fixed;top: 0;left: 0;right: 0;bottom: 0; z-index: 99998;background-color: black;}
  1148. #wt-video-container .wt-video{ position:absolute;top:50%;width:100%;transform: translateY(-50%);height: 240px; z-index: 99999;}
  1149. #wt-video-container .wt-video video{width:100%;height: 100%;}
  1150. .dplayer-controller{bottom: 30px !important;}
  1151. .main-player{height: 300px;}
  1152. .dplayer.dplayer-hide-controller .dplayer-controller{ opacity: 0 !important;transform: translateY(200%) !important;}
  1153. .wt-close-btn{ font-size: 15px;position: absolute;top: 40px;left: 25px;color: white;}
  1154. #wt-download-box{ z-index: 10010;}
  1155. #wt-download-box .close{position: absolute;right: 0px;top: 0px;width: 40px;height: 40px;}
  1156. #wt-download-box .close::before,#wt-download-box .close::after{position: absolute;left: 50%;top: 50%;content: '';width: 14px;height: 2px;border-radius: 1px;background-color: #adadad;transform: translate(-50%,-50%) rotate(45deg);}
  1157. #wt-download-box .close::after,#wt-download-box .close::after{transform: translate(-50%,-50%) rotate(-45deg);}
  1158. #wt-download-box::before{display:none; content:'';position: absolute;width: 150px;height: 150px;border-radius: 100px;background-color: #00bcd4;z-index: -1;opacity: 0.7;top: 0;left: 0;transform: translate(-38%,-40%);}
  1159. #wt-download-box::after{display:none;content:'';position: absolute;width: 150px;height: 150px;border-radius: 100px;background-color: #FFC107;z-index: -1;opacity: 0.7;bottom: 0;right: 0;transform: translate(62%,30%);}
  1160. #wt-download-box ul li{ height: 38px;line-height: 38px;font-size: 11px;text-align: center;color:#909090;font-weight: 500;background-color: white;box-shadow: rgb(166 166 166 / 20%) 0px 1px 5px 1px;margin: 18px 30px;border-radius: 40px;}
  1161. `)
  1162. if (_CONFIG_.isMobile) {
  1163. GM_addStyle(`
  1164. #wt-set-box {width:80%;}
  1165. `);
  1166. }
  1167. const roles = util.initAppDate(false);
  1168. $(container).append(`
  1169. <div id="wt-${_CONFIG_.vipBoxId}">
  1170. <div id="wt-my" class="item wt_my_haijiao">
  1171. <img src="${_CONFIG_.cdnBaseUrl + '/image/app.png'}"></img>
  1172. </div>
  1173. <div id="wt-my-set" class="item wt_player_haijiao">
  1174. <i class="iconfont">&#xe623;</i>
  1175. </div>
  1176. <div id="wt-my-down" class="item wt_my_down_haijiao">
  1177. <i class="iconfont">&#xe61c;</i>
  1178. </div>
  1179. <div id="wt-my-notify" class="item wt_my_notify" style="padding: 0 11px;">
  1180. <i class="iconfont">&#xe604;</i>
  1181. </div>
  1182. <div id="wt-hid-box" class="item">
  1183. <i class="iconfont">&#xe65f;</i>
  1184. </div>
  1185. </div>
  1186. <div id="wt-left-show" style="transform: translate(-60px,-50%);padding: 10px;">
  1187. <i class="iconfont">&#xe675;</i>
  1188. </div>
  1189. <div id="wt-mask-box"></div>
  1190. <div id="wt-set-box">
  1191. <div class="close"></div>
  1192. <div class="line-box" style="display:none">
  1193. </div>
  1194. <div class="user-box-container">
  1195. <div class="user-box">
  1196. <div class="title" style="margin-bottom: 10px">我的电量</div>
  1197. <div class="user-info">
  1198. <div class="avatar" style="position: relative;">
  1199. <img src="${_CONFIG_.cdnBaseUrl + '/image/app.png'}" style="width: 100%;height: 100%;border-radius: 8px;"></img>
  1200. </div>
  1201. <div class="info">
  1202. <div class="nickname">请登录</div>
  1203. <div class="username">xxxxxxxxxx</div>
  1204. </div>
  1205. <div class="logout">
  1206. <button>退出登录</button>
  1207. </div>
  1208. </div>
  1209. <div class="apps-container"> ${roles}</div>
  1210. </div>
  1211. </div>
  1212. </div>
  1213. <div id="wt-loading-box">
  1214. <div class="loading"></div>
  1215. </div>
  1216. <div id="wt-maxindex-mask"></div>
  1217. <div id="wt-tips-box">
  1218. <div class="title">提示</div>
  1219. <div class="content"></div>
  1220. <div class="btn-box">
  1221. <button class='cancel'>取消</button>
  1222. <button class='submit'>确定</button>
  1223. </div>
  1224. <div class="logo"><p>@${superVip._CONFIG_.homeUrl}</p></div>
  1225. <div class="version"><p>v ${superVip._CONFIG_.version}</p></div>
  1226. </div>
  1227. <div id="wt-notify-box">
  1228. <div class="close"></div>
  1229. <div class="title">通知</div>
  1230. <div class="content"></div>
  1231. </div>
  1232. <div id="wt-video-container">
  1233. <div class="wt-close-btn">
  1234. <i class="van-icon van-icon-close"></i>
  1235. <span style="margin-left: 5px;">退出播放</span>
  1236. </div>
  1237. <div class="wt-video">
  1238. <video id="wt-video" controls></video>
  1239. </div>
  1240. </div>
  1241. `)
  1242. if (_CONFIG_.user && _CONFIG_.user.avatar) {
  1243. util.logined()
  1244. }
  1245. return new Promise((resolve, reject) => resolve(container));
  1246. }
  1247.  
  1248. bindEvent(container) {
  1249. const vipBox = $(`#wt-${_CONFIG_.vipBoxId}`)
  1250. if (GM_getValue('haijiao_hid_controller', null)) {
  1251. vipBox.css("transform", "translate(125%, -50%)")
  1252. $('#wt-left-show').css("transform", "translate(0, -50%)")
  1253. }
  1254.  
  1255. vipBox.find("#wt-my").on("click", () => {
  1256. if (_CONFIG_.user) {
  1257. $('#wt-mask-box').css('display', 'block')
  1258. $("#wt-set-box .user-box-container").css('display', 'block')
  1259. $("#wt-set-box").removeClass('hid-set-box')
  1260. $("#wt-set-box").addClass('show-set-box')
  1261. $('#wt-set-box .user-box-container .nickname').html(_CONFIG_.user.nickname)
  1262. util.initAppDate()
  1263. } else {
  1264. util.addLogin()
  1265. $('#wt-login-mask').css('display','block')
  1266. $("#wt-login-box").removeClass('hid-set-box')
  1267. $("#wt-login-box").addClass('show-set-box')
  1268. const jsxl_login_code = GM_getValue('jsxl_login_code','')
  1269. if(jsxl_login_code){
  1270. $("#wt-login-box .max-input")[0].value = jsxl_login_code;
  1271. }
  1272. }
  1273. })
  1274.  
  1275. vipBox.find("#wt-my-set").on("click", async () => {
  1276. try{
  1277. document.querySelector('video').pause()
  1278. }catch(e){}
  1279. if (!_CONFIG_.user) {
  1280. $("#wt-my").click()
  1281. return
  1282. }
  1283. if(superVip._CONFIG_.requestErrMsg){
  1284. util.showTips({ title: superVip._CONFIG_.requestErrMsg})
  1285. return
  1286. }
  1287. if (!_CONFIG_.videoUrl.aes) {
  1288. $('#wt-loading-box').css('display', 'block')
  1289. for (let i = 0; i < 3; i++) {
  1290. await util.sleep(1000)
  1291. if (_CONFIG_.videoUrl.aes) {
  1292. $('#wt-loading-box').css('display', 'none')
  1293. break
  1294. }
  1295. }
  1296. $('#wt-loading-box').css('display', 'none')
  1297. }
  1298. if (_CONFIG_.videoUrl.aes) {
  1299. $('#wt-video-container').css('display', 'block')
  1300. $("#wt-hid-box").click()
  1301. util.showTips({
  1302. title: location.href + '</br>视频解析中请勿操作。。。</br>如解析时长大于1分钟请考虑开梯子再试</br>插件网站' + superVip._CONFIG_.homeUrl,
  1303. hidConfirm: true
  1304. })
  1305. await util.sleep(500)
  1306. if(!_CONFIG_.videoUrl.playerUrl || !_CONFIG_.videoUrl.playerUrl.includes('http')){
  1307. _CONFIG_.videoUrl.playerUrl = serializeVideo(_CONFIG_.videoUrl.aes.replace(_CONFIG_.videoUrl.aes.substring(_CONFIG_.videoUrl.aes.length - 5), ''));
  1308. }
  1309. if (!_CONFIG_.videoUrl.playerUrl || !_CONFIG_.videoUrl.playerUrl.includes('http')) {
  1310. if (_CONFIG_.videoUrl.playerUrl.includes('通知:') || _CONFIG_.videoUrl.playerUrl
  1311. .includes('最新版本')) {
  1312. util.showTips({
  1313. title: _CONFIG_.videoUrl.playerUrl
  1314. })
  1315. } else {
  1316. util.showTips({
  1317. title: _CONFIG_.videoUrl.playerUrl + '</br>' + location
  1318. .href + '</br>抱歉,解析失败,请刷新页面再尝试,或尝试重新登录海角账号,或安卓用via浏览器,苹果用focus浏览器再,或者关掉VPN再试,如有问题或需梯子推荐请联系发电网站' + +'中售后联系方式'
  1319. })
  1320. }
  1321. return;
  1322. }
  1323. $('#wt-tips-box .btn-box .submit').click()
  1324. if (_CONFIG_.isMobile && _CONFIG_.isMobile[0] == 'iPhone') {
  1325. $('.wt-video').empty()
  1326. $('.wt-video').append(`
  1327. <video controls width="100%" height="100%">
  1328. <source src="${_CONFIG_.videoUrl.playerUrl}" type="application/x-mpegURL">
  1329. </video>
  1330. `)
  1331. } else {
  1332. $('.wt-video').empty()
  1333. $('.wt-video').append(`<video id="wt-video" controls></video>`)
  1334. const video = document.querySelector('.wt-video #wt-video')
  1335. _CONFIG_.hls_dp = new Hls()
  1336. _CONFIG_.hls_dp.loadSource(_CONFIG_.videoUrl.playerUrl)
  1337. _CONFIG_.hls_dp.attachMedia(video)
  1338. _CONFIG_.hls_dp.on(Hls.Events.MANIFEST_PARSED, function() {
  1339. video.play()
  1340. })
  1341. }
  1342. }
  1343. if (!_CONFIG_.videoUrl.aes) {
  1344. util.showTips({
  1345. title: location.href +
  1346. '</br>抱歉未检测到帖子视频,请关掉其它插件再试,或苹果用Focus浏览器,安卓用Via浏览器再试'
  1347. })
  1348. }
  1349. })
  1350.  
  1351. $('#wt-video-container div').on('click', function(e) {
  1352. e.stopPropagation()
  1353. })
  1354.  
  1355. $('.wt-close-btn').on('click', function() {
  1356. $('#wt-video-container').css('display', 'none')
  1357. var videos = document.querySelectorAll('video');
  1358. videos.forEach(function(video) {
  1359. // video.volume = 0.0
  1360. video.pause();
  1361. });
  1362. $('.wt-video').empty()
  1363. if (_CONFIG_.hls_dp) _CONFIG_.hls_dp.destroy()
  1364. $("#wt-left-show").click();
  1365. })
  1366.  
  1367. vipBox.find("#wt-my-down").on("click", () => {
  1368. if (!_CONFIG_.user) {
  1369. $("#wt-my").click()
  1370. return
  1371. }
  1372. if(superVip._CONFIG_.requestErrMsg){
  1373. util.showTips({ title: superVip._CONFIG_.requestErrMsg})
  1374. return
  1375. }
  1376. if(_CONFIG_.videoUrl.downloadUrlSign){
  1377. util.showDownLoadWindow();
  1378. return;
  1379. }
  1380. if (_CONFIG_.videoUrl.downloadUrl && _CONFIG_.videoUrl.aes) {
  1381. if(_CONFIG_.user && _CONFIG_.user.stopDownload || (_CONFIG_.user.role.use_download_num == _CONFIG_.user.role.max_download_num) ){
  1382. util.showTips({
  1383. title: '抱歉,今日下载次数' + _CONFIG_.user.role.max_download_num + '次已经用完,请明日再下载'
  1384. })
  1385. return;
  1386. }
  1387. util.showTips({
  1388. title: '为了插件的稳定现已日限下载</br>(当前账号日限' + _CONFIG_.user.role.max_download_num +'次,' + superVip._CONFIG_.user.downloadTips +',已使用' + _CONFIG_.user.role.use_download_num +'次,每个插件每日各' + _CONFIG_.user.role.max_download_num +'次),</br>您确定要消耗一次次数来获取视频链接吗(如失败不计数)?',
  1389. doubt: true,
  1390. success: async (confirm) => {
  1391. if (confirm) {
  1392. try {
  1393. $('#wt-loading-box').css('display', 'block')
  1394. await util.sleep(300);
  1395. const downloadType = _CONFIG_.videoUrl.isDecrypDownload? 'decrypDownload?code=': 'signDownload?downloadUrl='
  1396. const res = await util.asyncHttp(superVip._CONFIG_.apiBaseUrl + '/d' + (Math.floor(Math.random() * 3) + 1) + '00/' + downloadType + _CONFIG_.videoUrl.downloadUrl + '&isDownload=1')
  1397. $('#wt-loading-box').css('display', 'none')
  1398. if (res.errMsg == 'success') {
  1399. const result = JSON.parse(res.responseText)
  1400. if (result.errCode != 0) {
  1401. throw new Error(result.errMsg)
  1402. }
  1403. if(result.newToken) _CONFIG_.user.token = result.newToken;
  1404. _CONFIG_.user.role.use_download_num = result.useDownloadNum
  1405. _CONFIG_.videoUrl.downloadUrlSign = result.data
  1406. util.showDownLoadWindow(true, result.errMsg);
  1407. GM_setValue('jsxl_user', _CONFIG_.user);
  1408. } else {
  1409. $('#wt-loading-box').css('display', 'none')
  1410. util.showTips({
  1411. title: _CONFIG_.videoUrl.url +
  1412. '</br>' + location.href +
  1413. '</br>' + res.errMsg
  1414. })
  1415. }
  1416. } catch (e) {
  1417. console.log(e)
  1418. $('#wt-loading-box').css('display', 'none')
  1419. util.showTips({
  1420. title: e.message +
  1421. '</br>' + location.href +
  1422. '</br>获取下载链接失败'
  1423. })
  1424. if(e.message.includes('明日再下载')){
  1425. _CONFIG_.user.stopDownload = true
  1426. _CONFIG_.user.role.use_download_num = _CONFIG_.user.role.max_download_num
  1427. GM_setValue('jsxl_user', _CONFIG_.user);
  1428. }
  1429. }
  1430. }
  1431. }
  1432. })
  1433. return;
  1434. }
  1435.  
  1436. util.showTips({
  1437. title: location.href + '</br>需要播放按钮有小绿点或暂不支持下载'
  1438. })
  1439. })
  1440.  
  1441. vipBox.find("#wt-hid-box").on("click", () => {
  1442. vipBox.css("transform", "translate(125%, -50%)");
  1443. $('#wt-left-show').css("transform", "translate(0, -50%)")
  1444. GM_setValue('haijiao_hid_controller', 1)
  1445. })
  1446.  
  1447. $('#wt-left-show').on('click', () => {
  1448. $('#wt-left-show').css("transform", "translate(-60px, -50%)");
  1449. vipBox.css("transform", "translate(0, -50%)")
  1450. GM_setValue('haijiao_hid_controller', '')
  1451. })
  1452.  
  1453. $('#wt-mask-box').on('click', () => {
  1454. $('#wt-mask-box').css('display', 'none')
  1455. $("#wt-set-box").removeClass('show-set-box');
  1456. $("#wt-set-box").addClass('hid-set-box')
  1457. $("#wt-download-box").removeClass('show-set-box');
  1458. $("#wt-download-box").addClass('hid-set-box')
  1459. setTimeout(() => {
  1460. $("#wt-set-box .line-box").css('display', 'none');
  1461. $("#wt-set-box .user-box-container").css('display', 'none')
  1462. }, 500)
  1463. })
  1464.  
  1465. $("#wt-set-box .close").on("click", () => {
  1466. $('#wt-mask-box').click()
  1467. })
  1468.  
  1469. vipBox.find("#wt-my-notify").on("click", () => {
  1470. if (_CONFIG_.showNotify) {
  1471. $('#wt-notify-box').click()
  1472. } else {
  1473. const notify = GM_getValue('notify', '');
  1474. if (notify && (notify.date == new Date().setHours(0, 0, 0, 0))) {
  1475. util.showNotify({
  1476. title: notify.msgInfo
  1477. })
  1478. } else {
  1479. util.showNotify({
  1480. title: '还没有通知信息'
  1481. })
  1482. };
  1483. util.showAndHidTips('wt_my_notify', 'set', false)
  1484. }
  1485. })
  1486.  
  1487. $("#wt-set-box .user-box .user-info").on('click', function() {
  1488. util.showTips({
  1489. title: '确定要跳转到插件官网吗?',
  1490. doubt: true,
  1491. success: (res) =>{
  1492. if(res){
  1493. location.href = superVip._CONFIG_.homeUrl
  1494. }
  1495. }
  1496. })
  1497. })
  1498.  
  1499. $('#wt-set-box .logout').on('click', function(e) {
  1500. util.showTips({
  1501. title: '您确定要退出登录吗?',
  1502. doubt: true,
  1503. success: (res) => {
  1504. if (res) {
  1505. util.logouted()
  1506. $('#wt-mask-box').click()
  1507. }
  1508. }
  1509. })
  1510. e.stopPropagation()
  1511. })
  1512.  
  1513. if (!_CONFIG_.user) {
  1514. util.addLogin()
  1515. util.findTargetElement('#wt-my').then(res => {
  1516. setTimeout(() => {
  1517. res.click()
  1518. }, 2500)
  1519. })
  1520. }
  1521. }
  1522. }
  1523.  
  1524. return {
  1525. start: () => {
  1526. _CONFIG_.user = GM_getValue('jsxl_user', '')
  1527. if (_CONFIG_.user) {
  1528. if (_CONFIG_.user.login_date && (_CONFIG_.user.login_date != new Date().setHours(0, 0, 0,
  1529. 0))) {
  1530. _CONFIG_.user = ''
  1531. GM_setValue('jsxl_user', '')
  1532. }
  1533. }
  1534. new BaseConsumer().parse()
  1535. },
  1536. _CONFIG_
  1537. }
  1538. })();
  1539. superVip.start();
  1540. }
  1541.  
  1542.  
  1543. if(!window.jQuery){
  1544. const script = document.createElement('script');
  1545. script.src = 'https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js';
  1546. script.onload = function() {
  1547. init(window.jQuery)
  1548. };
  1549. script.onerror = function(e) {
  1550. alert('jquery初始化失败')
  1551. };
  1552. document.head.appendChild(script);
  1553. }else{
  1554. init(window.jQuery)
  1555. }