您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
浏览阮一峰博客时,不必关闭广告屏蔽器。
// ==UserScript== // @name KAO#1:ruanyifeng // @namespace https://www.bennythink.com/ // @version 0.4 // @description 浏览阮一峰博客时,不必关闭广告屏蔽器。 // @author BennyThink // @supportURL https://github.com/BennyThink/KeepABPOn // @license MIT // @match *://*.ruanyifeng.com/* // @grant none // ==/UserScript== var content = document.querySelector('#main-content').cloneNode(true); function loadjscssfile(filename) { var fileref = document.createElement("link"); fileref.setAttribute("rel", "stylesheet"); fileref.setAttribute("type", "text/css"); fileref.setAttribute("href", filename); if (typeof fileref != "undefined") document.getElementsByTagName("head")[0].appendChild(fileref) } // credits goes for https://github.com/BennyThink/KeepABPOn/issues/5 function ruanyifeng() { document.getElementsByClassName('asset-meta')[0].nextElementSibling.style = 'display:none'; document.querySelector('article.hentry').insertBefore(content, document.querySelector('.asset-footer')); } setTimeout(ruanyifeng, 1001); loadjscssfile('/static/themes/theme_scrapbook/theme_scrapbook.css');