您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
It's a dark theme... for reddit...
当前为
// ==UserScript== // @name Reddit Dark Theme // @version 0.2 // @description It's a dark theme... for reddit... // @icon http://keycdn.mturkcrowd.com/data/avatars/l/0/132.jpg?1452627961 // @author Danny Hinshaw // @namespace http://nulleffort.com/ // @match https://www.reddit.com/* // ==/UserScript== (function() { 'use strict'; /*jshint esnext: true */ // Set CSS sylesheet for Dark Theme const css = '#header { background-color: #393994; }'+ 'body { background-color: #0F0F14; }'+ 'a.title.may-blank.loggedin.outbound { color: #5454A7; }'+ 'a.title.may-blank.loggedin.outbound:visited { color: purple; }'+ 'a.title.may-blank.loggedin { color: #5454A7; }'+ 'a.title.may-blank.loggedin:visited { color: purple; }'+ 'a.title.may-blank { color: #5454A7; }'+ 'a.title.may-blank:visited { color: purple; }'+ 'a.title.may-blank.outbound { color: #5454A7; }'+ 'a.title.may-blank.outbound:visited { color: purple; }'+ 'p { color: #5454A7; }'+ 'div.listing-chooser.initialized, div.side { background-color: #222271 }', style = document.createElement('style'); style.type = 'text/css'; style.appendChild(document.createTextNode(css)); document.head.appendChild(style); // Remove sidebar ads [].forEach.call(document.querySelectorAll('div.dfp-ad-container'), e => e.parentNode.remove()); // Timeout to remove ad's that are loaded after the page has finished loading setTimeout(() => { [].forEach.call(document.querySelectorAll('p.tagline'), e => { if (e.innerText.includes('promoted')) e.parentNode.parentNode.remove(); }); }, 250); })();