您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
add john sayori's cat to twitter
// ==UserScript== // @name the meaning of life // @namespace http://tampermonkey.net/ // @version 1.0 // @description add john sayori's cat to twitter // @author cv // @match *://x.com/* // @match *://twitter.com/* // @icon https://avatars.githubusercontent.com/u/186732841?v=4 // @grant none // ==/UserScript== (function() { 'use strict'; const urlchanges = () => { let currentURL = window.location.href; setInterval(() => { if (currentURL !== window.location.href) {currentURL = window.location.href; main()}}, 500); }; const main = () => {const loadwait = setInterval(() => { const element = document.querySelector("div.css-175oi2r.r-1awozwy.r-aqfbo4.r-kemksi.r-18u37iz.r-1h3ijdo.r-6gpygo.r-15ysp7h.r-1xcajam.r-ipm5af"); if (element) { loadstuff(element); clearInterval(loadwait); } }, 100)}; const loadstuff = (element) => { setInterval(() => { element.innerHTML = "<img src='https://pbs.twimg.com/media/Gd0hSO9XIAAFlud?format=webp&name=medium' height='500px' alt='john sayori\'s photogenic maine coon with noticeably long whiskers. she\'s looking to the side'>"; element.style.height = "500px"; element.style.position = "relative"; element.style.zIndex = "9999"; }, 500); }; urlchanges(); main(); })();