您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Überspringt den Wait-Timer auf NSWpedia.com und zeigt sofort den Download-Link an
// ==UserScript== // @name NSWpedia Timer Skipper // @namespace http://tampermonkey.net/ // @version 1.0 // @description Überspringt den Wait-Timer auf NSWpedia.com und zeigt sofort den Download-Link an // @author You // @match https://nswpedia.com/* // @match http://nswpedia.com/* // @grant none // @run-at document-start // @license MIT // ==/UserScript== (function() { 'use strict'; console.log('NSWpedia Timer Skipper: Script geladen'); function skipTimer() { // Warte bis das DOM vollständig geladen ist if (document.readyState === 'loading') { document.addEventListener('DOMContentLoaded', skipTimer); return; } // Suche nach dem Progress Container const progressContainer = document.querySelector('.progress-container'); const downloadSection = document.getElementById('download-section'); const progressBar = document.querySelector('.progress-bar'); if (progressContainer && downloadSection) { console.log('NSWpedia Timer Skipper: Timer gefunden, überspringe...'); // Verstecke den Progress Container progressContainer.style.display = 'none'; // Zeige den Download-Section sofort an downloadSection.style.display = 'block'; // Setze die Progress Bar auf 100% if (progressBar) { progressBar.style.width = '100%'; progressBar.setAttribute('aria-valuenow', '100'); progressBar.textContent = '100%'; } console.log('NSWpedia Timer Skipper: Timer erfolgreich übersprungen!'); } else { // Falls die Elemente noch nicht geladen sind, versuche es erneut setTimeout(skipTimer, 100); } } // Starte das Script sofort skipTimer(); // Zusätzlich: Überwache Änderungen am DOM (für dynamisch geladene Inhalte) const observer = new MutationObserver(function(mutations) { mutations.forEach(function(mutation) { if (mutation.type === 'childList') { // Prüfe ob neue Timer-Elemente hinzugefügt wurden const progressContainer = document.querySelector('.progress-container'); const downloadSection = document.getElementById('download-section'); if (progressContainer && progressContainer.style.display !== 'none') { skipTimer(); } } }); }); // Starte das DOM-Überwachung observer.observe(document.body, { childList: true, subtree: true }); // Zusätzliche Sicherheit: Überspringe Timer auch bei Seitenwechseln window.addEventListener('beforeunload', function() { observer.disconnect(); }); })();