diff --git a/antizapret-chrome-extension.crx b/antizapret-chrome-extension.crx new file mode 100755 index 0000000..3d81411 Binary files /dev/null and b/antizapret-chrome-extension.crx differ diff --git a/antizapret-chrome-extension/background.js b/antizapret-chrome-extension/background.js new file mode 100755 index 0000000..3f8c270 --- /dev/null +++ b/antizapret-chrome-extension/background.js @@ -0,0 +1,17 @@ +'use strict'; + +var config = { + mode: "pac_script", + pacScript: { + url: "http://antizapret.prostovpn.org/proxy.pac" + } +}; + +chrome.proxy.settings.set( + {value: config, scope: 'regular'}, + function() {} +); + +chrome.browserAction.onClicked.addListener(function(tab) { + chrome.tabs.create( {url: "http://antizapret.prostovpn.org"} ) +}); diff --git a/antizapret-chrome-extension/manifest.json b/antizapret-chrome-extension/manifest.json new file mode 100755 index 0000000..6bcbf06 --- /dev/null +++ b/antizapret-chrome-extension/manifest.json @@ -0,0 +1,25 @@ +{ + "manifest_version": 2, + + "name": "Антизапрет", + "description": "РосКомНадзор заблокировал очередной сайт? Ты не нарушаешь закон! Ты не ребёнок!", + "version": "0.1", + + "browser_action": { + "default_icon": "unlock.png", + "default_title": "Обсуждай на https://reddit.com/r/ru" + }, + "permissions": [ + "proxy" + ], + "icons": { "16": "unlock.ico", + "128": "unlock.png" }, + "background": { + "scripts": ["background.js"], + "persistent": false + }, + + "author": "ilyaigpetrov@gmail.com", + "homepage_url": "https://github.com/ilyaigpetrov/antizapret-chrome-extension", + "short_name": "Антизапрет" +} diff --git a/antizapret-chrome-extension/unlock.ico b/antizapret-chrome-extension/unlock.ico new file mode 100755 index 0000000..5cd4c52 Binary files /dev/null and b/antizapret-chrome-extension/unlock.ico differ diff --git a/antizapret-chrome-extension/unlock.png b/antizapret-chrome-extension/unlock.png new file mode 100755 index 0000000..66f096c Binary files /dev/null and b/antizapret-chrome-extension/unlock.png differ