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