您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Replaces the Islamic Republic of Iran censored content notice page with this message: "Content has been censored by the Islamic Republic of Iran!" and allows you to load the censored content from Google web cache.
- // ==UserScript==
- // @name Remove peyvandha.ir
- // @namespace Remove peyvandha.ir
- // @description Replaces the Islamic Republic of Iran censored content notice page with this message: "Content has been censored by the Islamic Republic of Iran!" and allows you to load the censored content from Google web cache.
- // @include *
- // @version 0.0.1.20150519151043
- // ==/UserScript==
- var filters = ["http://10.10.34.34/"];
- var iframe = document.getElementsByTagName("iframe")[0];
- var loc = document.location;
- for (var j = 0; j < filters.length; ++j) {
- if (iframe.src.indexOf(filters[j]) != -1) {
- var cache = "https://webcache.googleusercontent.com/search?q=cache:" + loc + "&hl=en";
- var text = document.createElement("p");
- text.innerHTML = "Content has been censored by the Islamic Republic of Iran! <a href = '" + cache + "'>Click here</a> to try loading it from Google web cache.";
- iframe.parentNode.replaceChild(text, iframe);
- }
- }