您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
If you know, you know.
// ==UserScript== // @name Make list edit sections actual links // @namespace https://rateyourmusic.com/ // @match https://rateyourmusic.com/lists/edit* // @grant none // @version 1.0 // @author AnotherBubblebath // @license MIT // @description If you know, you know. // ==/UserScript== 'use strict'; setTimeout(function(){ run(); },500); function run(){ let sections = []; for (let i = 0; i < getSection().length; i++){ sections.push(getSection()[i]); } setSections(sections); } function getSection(){ return document.querySelectorAll('.navlinknum'); } function setSections(sections){ const buttonCopy = document.querySelectorAll('.btn.blue_btn.btn_small')[2].getAttribute('href'); let url = "https://rateyourmusic.com/lists/edit" + buttonCopy.substring(buttonCopy.indexOf('?list_id=')); for (let i = 0; i < sections.length; i++){ let link = url + "&page=" + sections[i].innerText; sections[i].setAttribute('href', link); } }