您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
帖子分层更加明显
// ==UserScript== // @name Anime字幕论坛帖子美化 // @namespace http://tampermonkey.net/ // @version 0.2 // @description 帖子分层更加明显 // @license MIT // @author ElapseRecall // @match https://bbs.acgrip.com/* // @match https://bbs.acgrip.com/forum.php?* // @icon https://bbs.acgrip.com/favicon.ico // @grant none // ==/UserScript== (function () { 'use strict'; let postList = document.querySelector('#postlist'); postList.style.border = '0px'; let postTitle = postList.firstElementChild; postTitle.style.border = '1px solid #E5E5E5'; postTitle.style.marginBottom = '5px'; let allPost = document.querySelectorAll('#postlist > div[id^=post_]'); allPost.forEach((post, index) => { post.style.border = '1px solid #E5E5E5'; if (index == 0) { post.style.marginTop = '5px'; } else { post.style.marginTop = '10px'; } }); })();