您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
quickly show answers on pomahach.com
// ==UserScript== // @name Pomahach // @namespace griffi-gh // @description quickly show answers on pomahach.com // @version 1 // @grant none // @match *://pomahach.com/question/* // @icon https://pomahach.com/themes/test/favicon1.ico // ==/UserScript== //unfold Array.from(document.getElementsByClassName("collapseds")).forEach(e => e.style.display = "block"); //remove labels Array.from(document.getElementsByClassName("label-info")).forEach(e => e.remove()); //remove first block document.getElementsByClassName("list-group")[0].remove(); //remove button document.querySelectorAll("a.collapsed.spoiler.btn-success.btn")[0].remove(); //remove warning document.querySelectorAll("div.alert.alert-warning")[0].remove(); //bring correct to the top and make it bigger { const correct_arr = Array.from(document.querySelectorAll(".list-group-item.list-group-item-success")); for (const correct of correct_arr) { correct.style.fontWeight = "bold"; correct.style.fontSize = "2rem"; const parent = correct.parentElement; correct.remove(); parent.prepend(correct); } } //remove spacing between question and answ Array.from(document.getElementsByClassName("floatright")[0].querySelectorAll("br")).forEach(v => v.remove());