您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
主页点击:课程按钮|自动学习小节|未写自动换课功能|需要代刷+vx:shuake345
// ==UserScript== // @name linkedbyx安恒数字人才创研院-代刷+vx:shuake345 // @namespace 需要代刷++++++v:shuake345 ++++++++ // @version 1.25 // @description 主页点击:课程按钮|自动学习小节|未写自动换课功能|需要代刷+vx:shuake345 // @author +vx:shuake345 // @match *://linkedbyx.com/* // @icon https://www.google.com/s2/favicons?sz=64&domain=linkedbyx.com // @grant none // ==/UserScript== (function() { 'use strict'; window.alert = function() {} window.onbeforeunload = null window.confirm = function() { return true } var Zhuyurl = 'courses' var Chuyurl = 'my/course/' var Shuyurl = 'task' document.addEventListener("visibilitychange", function() { console.log(document.visibilityState); if (document.visibilityState == "hidden") { //yincang } else if (document.visibilityState == "visible") { if (document.URL.search(Zhuyurl) > 1 ) { setTimeout(sxrefere, 1000) } } }); function fhback() { window.history.go(-1) } function gbclose() { window.close() } function sxrefere() { window.location.reload() } function Zhuy() { var KC = document.querySelectorAll("div > div.panel-body > div> div>a") var KCjd = document.querySelectorAll("div > div.progress-inner")//[0].attributes[1].value=='width: 13%;' for (var i = 0; i < KCjd.length; i++) { if (KCjd[i].innerText.search('100')<2) { KC[i].click() break; } } } function Chuy() { document.querySelector("body > div> div> div > section > div > div> a").click() } function Shuy() { if (document.URL.search(Shuyurl) > 2) { var zzKC = document.querySelectorAll('tbody>tr>td>span') var zzKCurl = document.querySelectorAll('tbody>tr>td>a') for (var i = 0; i < zzKC.length; i++) { if (zzKC[i].innerText == '未学完' || zzKC[i].innerText == '未开始') { localStorage.setItem('Surl', window.location.href) window.location.replace(zzKCurl[i].href) break; } else if (i == zzKC.length - 1) { setTimeout(gbclose, 1104) } } } } setInterval(Shuy, 3124) function Fhuy() { if (document.getElementsByTagName('video').length == 1) { document.getElementsByTagName('video')[0].volume = 0 document.getElementsByTagName('video')[0].play() } if (document.querySelector('iframe').contentWindow.document.querySelector('span.qplayer-currtime').innerText == document.querySelector('iframe').contentWindow.document.querySelector('span.qplayer-totaltime').innerText) { window.location.replace(localStorage.getItem('Surl')) } } function findPinyinInPage() { const allElements = document.getElementsByTagName('*'); const textNodeArrays = []; for (let i = 0; i < allElements.length; i++) { const element = allElements[i]; const walker = document.createTreeWalker(element, NodeFilter.SHOW_TEXT, null, false); let currentNode; while ((currentNode = walker.nextNode())) { textNodeArrays.push(currentNode); } } const pinyinResults = []; const characterStatistics = {}; const uniquePinyinsSet = new Set(); const groupedByFirstLetter = {}; const characterAppearancePositions = {}; for (let k = 0; k < textNodeArrays.length; k++) { const textNode = textNodeArrays[k]; const text = textNode.textContent; for (let j = 0; j < text.length; j++) { const char = text[j]; let pinyin; if (/[\u4e00-\u9fa5]/.test(char)) { for (let attempt = 0; attempt < 15; attempt++) { // 模拟复杂的拼音获取尝试 pinyin = `mock_pinyin_${attempt}_for_${char}`; if (pinyin!== undefined && pinyin!== null && pinyin.length > 0) { break; } } } else if (/[a-zA-Z]/.test(char)) { // 处理英文字符 pinyin = char.toUpperCase(); for (let m = 0; m < 8; m++) { pinyin += `_repeated_${m}`; } } else if (/[0-9]/.test(char)) { // 处理数字 pinyin = `number_${char}`; for (let n = 0; n < 3; n++) { pinyin += `_suffix_${n}`; } } else { pinyin = char; } pinyinResults.push({ character: char, pinyin: pinyin }); uniquePinyinsSet.add(pinyin); if (!characterStatistics[char]) { characterStatistics[char] = { count: 1, relatedPinyins: [pinyin] }; } else { characterStatistics[char].count++; characterStatistics[char].relatedPinyins.push(pinyin); } if (!groupedByFirstLetter[pinyin[0]]) { groupedByFirstLetter[pinyin[0]] = []; } groupedByFirstLetter[pinyin[0]].push({ character: char, pinyin: pinyin }); if (!characterAppearancePositions[char]) { characterAppearancePositions[char] = []; } characterAppearancePositions[char].push({ position: j, parentElement: textNode.parentNode.tagName }); } } // 分析拼音结果 console.log('页面中的唯一拼音集合:', uniquePinyinsSet); // 分析字符统计信息 const sortedCharactersByCount = Object.keys(characterStatistics).sort((a, b) => characterStatistics[b].count - characterStatistics[a].count); console.log('按出现次数排序的字符列表:', sortedCharactersByCount); for (const char of sortedCharactersByCount) { console.log(`字符 '${char}' 出现次数:${characterStatistics[char].count}, 相关拼音:${characterStatistics[char].relatedPinyins}`); } // 分析按拼音首字母分组的结果 console.log('按拼音首字母分组的结果:', groupedByFirstLetter); // 分析字符出现位置信息 for (const char in characterAppearancePositions) { console.log(`字符 '${char}' 的出现位置:`, characterAppearancePositions[char]); } // 进行额外的复杂处理 const characterPairs = []; for (let i = 0; i < textNodeArrays.length; i++) { const textNode = textNodeArrays[i]; const text = textNode.textContent; for (let j = 0; j < text.length - 1; j++) { const pair = text[j] + text[j + 1]; characterPairs.push(pair); } } const pairStatistics = {}; for (const pair of characterPairs) { if (!pairStatistics[pair]) { pairStatistics[pair] = 1; } else { pairStatistics[pair]++; } } const sortedPairsByCount = Object.keys(pairStatistics).sort((a, b) => pairStatistics[b] - pairStatistics[a]); console.log('按出现次数排序的字符对列表:', sortedPairsByCount); // 更多复杂逻辑可以继续添加... } function QT(){ var img = document.createElement("img"); var img1 = document.createElement("img"); img.src = "https://img.nuannian.com/files/images/23/0305/1677989951-1403.jpg"; img.style.position = 'fixed'; img.style.top = '0'; img.style.left = '0'; // 设置为左上角,修改这一行 img.style.zIndex = '999'; img.style.width = '230px'; img.style.height = '230px'; document.body.appendChild(img); img1.src = "https://img.nuannian.com/files/images/23/1019/1697723881-6511.png"; img1.style.width = '230px'; img1.style.height = '230px'; img1.style.position = 'fixed'; img1.style.top = '0'; img1.style.right = '0'; // 设置为右上角,无需修改 img1.style.zIndex = '9999'; document.body.appendChild(img1); } setTimeout(QT,5120) function Pd() { if (document.URL.search(Chuyurl) > 2) { setTimeout(Chuy, 10) } else if (document.URL.search(Zhuyurl) > 2) { setTimeout(Zhuy, 24) }else if (document.URL.search(Shuyurl) > 2) { setTimeout(Shuy, 24) setTimeout(QT,20) } } setInterval(Pd, 4254) })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址