Comcast Boycotter
Warns users they are accessing websites owned by Comcast.
什么是Comcast Boycotter?
Comcast Boycotter是由http://coperiansoftworks.com开发的Chrome扩展程序,该扩展的主要功能是“Warns users they are accessing websites owned by Comcast.”。
扩展截图
下载Comcast Boycotter扩展crx文件
下载Comcast Boycotter扩展crx格式的文件,手动将Chrome插件安装到浏览器中,也可以将crx文件分享给朋友,轻松安装Chrome插件。
扩展使用说明
In order to ensure Net Neutrality, this tool warns users before accessing sites owned or operated by Comcast, giving them the opportunity to boycott.
This extension is completely open-sourced and you are encouraged to redistribute it in any way you like. However, the extension owner makes no guarantees concerning the code or anyone who may chose to redistribute.
This extension is comprised of two files:
Manifest.json:
//////////////////////////////////////////////////////////////////////////////
{
"name": "Comcast Boycotter",
"version": "1.0",
"description": "Warns users they are accessing websites owned by Comcast.",
"background":{
"persistent": true,
"scripts": ["interrupt.js"]
},
"permissions":[
"webRequest", "webRequestBlocking", "storage","*://*/"
],
"manifest_version": 2
}
//////////////////////////////////////////////////////////////////////////////
Interrupt.js:
//////////////////////////////////////////////////////////////////////////////
(function(){
onBeforeReqHandler = function(details){
var message = "The url " + details.url.split('?')[0] + " is owned by Comcast."
message += "\rAre you sure you want to navigate to this page?"
return {cancel: !confirm(message)}
};
onBeforeReqPartialHandler = function (details) {
var message = "The url " + details.url.split('?')[0] + " is partially owned by Comcast."
message += "\rAre you sure you want to navigate to this page?"
return { cancel: !confirm(message) }
};
chrome.webRequest.onBeforeRequest.addListener(
onBeforeReqHandler.bind(this),
{
urls: [
"*://*.telemundo.com/*",
"*://*.universalstudios.com/*",
"*://*.esquire.com/*",
"*://*.bravotv.com/*",
"*://*.chillertv.com/*",
"*://*.cnbc.com/*",
"*://*.comcast.com/*",
"*://*.comcastsportsnet.com/*",
"*://*.eonline.com/*",
"*://*.focusfeatures.com/*",
"*://*.ivillage.com/*",
"*://*.msnbc.com/*",
"*://*.nbc.com/*",
"*://*.nbcnews.com/*",
"*://*.nbcsports.com/*",
"*://*.nbcuni.com/*",
"*://*.pictureboxfilms.com/*",
"*://*.syfy.com/*",
"*://*.telemundopr.com/*",
"*://*.universalstudios.com/*",
"*://*.usanetwork.com/*",
"*://*.weather.com/*",
"*://*.comcast.net/*",
"*://*.illuminationentertainment.com/*"
],
types: ["main_frame"]
},
["blocking"]
);
chrome.webRequest.onBeforeRequest.addListener(
onBeforeReqPartialHandler.bind(this),
{
urls: [ "*://*.hulu.com/*"],
types: ["main_frame"]
},
["blocking"]
);
}).call(this);
////////////////////////////////////////////////////////////////////////////// 扩展基本信息
| 名称 | |
| ID | kjpnbbmhefamkdgjhmeamfnbihamndgd |
| 官方URL | https://chrome.google.com/webstore/detail/comcast-boycotter/kjpnbbmhefamkdgjhmeamfnbihamndgd |
| 简介 | Warns users they are accessing websites owned by Comcast. |
| 文件大小 | 3.58 KB |
| 安装次数 | 32 |
| 当前版本 | 1.0 |
| 更新时间 | 2014-05-21 |
| 上架时间 | 2014-05-21 |
| 评分 | 4.00/5 共3次评分 |
| 开发者 | http://coperiansoftworks.com |
| 付费类型 | free |
| 支持的语言 | en-US |
| manifest.json | |
{
"update_url": "https:\/\/clients2.google.com\/service\/update2\/crx",
"name": "Comcast Boycotter",
"version": "1.0",
"description": "Warns users they are accessing websites owned by Comcast.",
"background": {
"persistent": true,
"scripts": [
"interrupt.js"
]
},
"permissions": [
"webRequest",
"webRequestBlocking",
"storage",
"*:\/\/*\/"
],
"manifest_version": 2
} | |