您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
change view of pku hole!
当前为
// ==UserScript== // @name 改变pku树洞网页版显示 // @namespace [email protected] // @version 1.0 // @description change view of pku hole! // @author nicolas // @match https://pkuhelper.pku.edu.cn/hole/ // @grant none // @license MIT // ==/UserScript== setInterval(function() { 'use strict'; var aEle = document.getElementsByTagName('*'); for(var i=0;i<aEle.length;i++){ if(aEle[i].className == "flow-item-row flow-item-row-with-prompt" || aEle[i].className == "flow-item-row flow-item-row-quote"){ aEle[i].style.display="flex"; } if(aEle[i].className == "flow-item" || aEle[i].className == "flow-item flow-item-quote"){ aEle[i].style.margin="0 auto"; } if(aEle[i].className == "flow-reply-row"){ aEle[i].parentNode.removeChild(aEle[i]); } } }, 100);