您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Refresh the website for the theme to appear.
当前为
// ==UserScript== // @name Pixmap Void theme // @version 1.1 // @description Refresh the website for the theme to appear. // @author TrxrKnocks // @grant GM_xmlhttpRequest // @grant unsafeWindow // @connect githubusercontent.com // @connect github.com // @connect pixmap.fun // @match *://pixmap.fun/* // @namespace https://greasyfork.org/users/1293155 // ==/UserScript== fetch('https://raw.githubusercontent.com/TouchedByDarkness/pixelplanet-void-style/main/style.css') .then(res => res.text()) .then(css => { const ssv = unsafeWindow.ssv; const link = Array.from(document.querySelectorAll('link')).find(link => { const href = link.getAttribute('href'); return ( link.getAttribute('rel') === 'stylesheet' && link.getAttribute('type') === 'text/css' && href && Object.values(ssv.availableStyles).some(path => href.includes(path)) && !href.includes(ssv.availableStyles.default)); }); if(link) { link.parentNode.removeChild(link); } const style = document.createElement('style'); style.innerHTML = css; document.head.appendChild(style); });