// ==UserScript== // @name 樱花转AGE // @namespace http://tampermonkey.net/ // @version 0.2 // @description try to take over the world! // @author You // @match http://www.yinghuacd.com/v/* // @icon https://www.google.com/s2/favicons?domain=yhdm.so // @grant none // @run-at document-end // @downloadURL none // ==/UserScript== (function() { 'use strict'; let name = document.querySelector("body > div:nth-child(2) > div.gohome.l > h1 > a") name.href = "https://www.agefans.vip/search?query="+name.innerText name.setAttribute('style',"color:red;") // Your code here... })();