您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
We can use the website now, so let's use it in style.
// ==UserScript== // @name Better iFunny // @namespace http://tampermonkey.net/ // @version 0.1 // @description We can use the website now, so let's use it in style. // @author Keidran // @match https://ifunny.co/* // @grant none // ==/UserScript== (function() { 'use strict'; function addGlobalStyle(css) { var head, style; head = document.getElementsByTagName('head')[0]; if (!head) { return; } style = document.createElement('style'); style.type = 'text/css'; style.innerHTML = css; head.appendChild(style); } addGlobalStyle(".button_pinterest, .l-sidebar, .l-categories, .header__leftbar{display:none}"); function remove(cla) { document.querySelectorAll(cla).forEach(function(a){a.remove()}); } remove(".button_pinterest"); remove(".l-sidebar"); remove(".l-categories"); remove(".header__leftbar"); var sublink=document.querySelectorAll('.navigation__link')[0]; sublink.href="/subscriptions"; sublink.innerText="subscriptions"; addGlobalStyle("body, .switcher, .profile__base, .l-header, .post__toolbar, .button_copy, button_copy:hover, .comments-form__field{background-color:#111111;color:#CCCCCC}"); addGlobalStyle(".header__container{flex-grow:0;margin-right:0}"); addGlobalStyle(".header{justify-content:center}"); addGlobalStyle(".l-content, .l-content-wrap{margin:auto}"); })();