您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
阮一峰博客在使用屏蔽广告后的样式修复
// ==UserScript== // @name 阮一峰博客屏蔽广告后样式修复 // @namespace roastchicken // @version 0.1 // @description 阮一峰博客在使用屏蔽广告后的样式修复 // @author kj863257 // @match http*://www.ruanyifeng.com/* // @grant none // ==/UserScript== (function() { 'use strict'; function loadjscssfile(filename, filetype){ if (filetype=="js"){ //if filename is a external JavaScript file var fileref=document.createElement('script') fileref.setAttribute("type","text/javascript") fileref.setAttribute("src", filename) } else if (filetype=="css"){ //if filename is an external CSS file 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) } //loadjscssfile("http://www.ruanyifeng.com/blog/styles.css", "css"); loadjscssfile('/static/themes/theme_scrapbook/theme_scrapbook.css', "css"); var a = document.createElement('a'),img = document.createElement('img'); img.setAttribute('src', 'about:blank;?wangbase.com/blogimg/asset/'); a.appendChild(img); document.body.appendChild(a) })();