您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Automatically skip songs on Spotify Web Player after a random interval between 75 to 90 seconds, then repeat.
// ==UserScript== // @name Spotify Wrapped Farming // @namespace https://greasyfork.org/en/users/1464319 // @version 2025.05.01 // @description Automatically skip songs on Spotify Web Player after a random interval between 75 to 90 seconds, then repeat. // @author Lin808 // @match https://open.spotify.com/* // @grant none // @run-at document-idle // @license MIT // ==/UserScript== (function() { 'use strict'; function getRandomInt(min, max) { min = Math.ceil(min); max = Math.floor(max); return Math.floor(Math.random() * (max - min) + min); } function doSkip() { // Spotify "Next" button usually has aria-label="Next" var button = document.querySelector('button[aria-label="Next"]'); if(button) { button.click(); console.log('Skipped song at', new Date().toLocaleTimeString()); } else { console.log('Next button not found'); } } (function loop() { var rand = getRandomInt(75000, 90000); console.log('Next skip in (ms):', rand); setTimeout(function() { doSkip(); loop(); }, rand); }()); })();