您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Tries to set reddit posts to not be quite so wide so they don't interfere with other elements on the page (useful for RES)
// ==UserScript== // @name Reddit width fixer // @namespace http://tampermonkey.net/ // @version 0.2 // @description Tries to set reddit posts to not be quite so wide so they don't interfere with other elements on the page (useful for RES) // @author You // @match https://www.reddit.com/* // @icon https://www.google.com/s2/favicons?sz=64&domain=reddit.com // @grant none // ==/UserScript== (function() { 'use strict'; // Your code here... // https://stackoverflow.com/questions/707565/how-do-you-add-css-with-javascript/14898381#14898381 function insertCss( code ) { var style = document.createElement('style'); style.type = 'text/css'; if (style.styleSheet) { // IE style.styleSheet.cssText = code; } else { // Other browsers style.innerHTML = code; } document.getElementsByTagName("head")[0].appendChild( style ); } insertCss('.nestedlisting > .thing{width:72.5%;}') insertCss('.linklisting > .thing{width:72.5%;}') })();