您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
9/13/2024, 2:28:10 PM
// ==UserScript== // @name Additional shortlink // @namespace Violentmonkey&Tampermonkey Scripts // @match *://*/* // @grant none // @version 1.3 // @author Ojo Ngono // @description 9/13/2024, 2:28:10 PM // ==/UserScript== (function() { 'use strict'; window.addEventListener('load', function() { var tombol = document.getElementById('tp-snp2'); if (tombol) { tombol.click(); } }); function checkAndClickVerify() { const timerElement = document.getElementById('myTimer'); const verifyButton = document.getElementById('VerifyBtn'); if (timerElement && verifyButton) { const timerValue = parseInt(timerElement.textContent, 10); if (timerValue === 0) { verifyButton.click(); scrollAndClickNext(); } } } function scrollAndClickNext() { setTimeout(() => { window.scrollTo(0, document.body.scrollHeight); const nextButton = document.getElementById('NextBtn'); if (nextButton) { nextButton.click(); } }, 2000); } setInterval(checkAndClickVerify, 1000); function clickButton(buttonText) { const buttons = document.querySelectorAll('button'); for (let button of buttons) { if (button.textContent.includes(buttonText) && button.style.display !== 'none') { button.click(); return true; } } return false; } function clickButtonById(id) { var button = document.getElementById(id); if (button) { button.click(); return true; } return false; } function observeDOM() { const observer = new MutationObserver(() => { if (clickButtonById('claimButton')) { return; } }); observer.observe(document.body, { childList: true, subtree: true }); } window.addEventListener('load', function() { const icons = document.querySelectorAll('.stat'); const iconCount = {}; icons.forEach(icon => { const iconClass = icon.querySelector('i').className; if (iconCount[iconClass]) { iconCount[iconClass]++; } else { iconCount[iconClass] = 1; } }); let leastDisplayedIcon = null; let leastCount = Infinity; for (const iconClass in iconCount) { if (iconCount[iconClass] < leastCount) { leastCount = iconCount[iconClass]; leastDisplayedIcon = iconClass; } } function clickLeastDisplayedIcon() { const icons = document.querySelectorAll('#iconContainer .stat'); const leastDisplayedIcon = document.getElementById('correctIcon').value; if (icons.length === 0) { return false; } let iconClicked = false; icons.forEach(icon => { const iconClass = icon.querySelector('i').className; if (iconClass === leastDisplayedIcon) { icon.click(); iconClicked = true; } }); return iconClicked; } function clickStepButton() { const stepButton = document.getElementById('claimButton1'); if (stepButton && stepButton.getAttribute('data-step') === "0") { stepButton.click(); } } function clickConfirmButton() { const confirmButton = document.querySelector('.modal-dialog .btn-primary'); if (confirmButton) { confirmButton.click(); } } function handleModalActions() { const iconClicked = clickLeastDisplayedIcon(); if (iconClicked) { setTimeout(() => { clickStepButton(); }, 1000); setTimeout(() => { clickConfirmButton(); }, 2000); } } const observer = new MutationObserver(function(mutations) { mutations.forEach(function(mutation) { if (mutation.type === 'childList' && mutation.addedNodes.length > 0) { handleModalActions(); } }); }); observer.observe(document.body, { childList: true, subtree: true }); }); const buttonSelector = '.continue-button'; const waitForButton = setInterval(() => { const button = document.querySelector(buttonSelector); if (button) { button.click(); clearInterval(waitForButton); } }, 1000); const clickTopResult = () => { const topResult = document.querySelector('a h3'); if (topResult) { topResult.closest('a').click(); } }; window.addEventListener('load', function() { setTimeout(clickTopResult, 2000); }); const progressBarSelector = '#progressBar'; const waitForProgressBar = setInterval(() => { const progressBar = document.querySelector(progressBarSelector); if (progressBar) { const width = progressBar.style.width; const numericWidth = parseInt(width); const linkText = progressBar.textContent.trim(); if (numericWidth >= 99 && linkText.includes("Click here to continue")) { const link = progressBar.querySelector('a'); if (link) { link.click(); } clearInterval(waitForProgressBar); } } }, 2000); const continueButtonSelector = '#continue-button'; const waitForContinueButton = setInterval(() => { const continueButton = document.querySelector(continueButtonSelector); if (continueButton) { continueButton.click(); clearInterval(waitForContinueButton); } }, 5000); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址