├── firefox ├── README.md ├── icon.png ├── icon64.png ├── package.json ├── index.js └── data │ └── nepijano.js ├── chrome ├── icon_128.png ├── icon_16.png ├── icon_48.png ├── manifest.json ├── background.js └── nepijano.js ├── releases ├── nepi-jano_0.10.0.xpi ├── nepi-jano_0.11.0.xpi ├── nepi-jano_0.9.6.xpi ├── nepi-jano_0.9.7.xpi ├── nepi_jano_0.1.1.crx ├── nepi_jano_0.1.2.crx ├── nepi_jano_0.10.0.crx ├── nepi_jano_0.10.0.zip ├── nepi_jano_0.9.0.crx ├── nepi_jano_0.9.1.crx ├── nepi_jano_0.9.2.crx ├── nepi_jano_0.9.3.crx ├── nepi_jano_0.9.4.crx ├── nepi_jano_0.9.5.crx ├── nepi_jano_0.9.6.crx ├── nepi_jano_0.9.7.crx ├── nepi_jano_0.9.7.zip ├── nepi_jano_0.10.0.crx.zip ├── nepi_jano_0.9.7.crx.zip ├── nepi-jano_0.9.7.safariextz └── nepi_jano_0.10.0.safariextz ├── safari └── nepi_jano.safariextension │ ├── Icon.png │ ├── Icon_64.png │ ├── global.html │ ├── Info.plist │ └── nepijano.js ├── MIT-LICENSE.txt ├── readme.md └── GPL-LICENSE.txt /firefox/README.md: -------------------------------------------------------------------------------- 1 | # Nepi Jano! 2 | Read paid content on www.sme.sk -------------------------------------------------------------------------------- /firefox/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ejci/nepi-jano/HEAD/firefox/icon.png -------------------------------------------------------------------------------- /chrome/icon_128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ejci/nepi-jano/HEAD/chrome/icon_128.png -------------------------------------------------------------------------------- /chrome/icon_16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ejci/nepi-jano/HEAD/chrome/icon_16.png -------------------------------------------------------------------------------- /chrome/icon_48.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ejci/nepi-jano/HEAD/chrome/icon_48.png -------------------------------------------------------------------------------- /firefox/icon64.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ejci/nepi-jano/HEAD/firefox/icon64.png -------------------------------------------------------------------------------- /releases/nepi-jano_0.10.0.xpi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ejci/nepi-jano/HEAD/releases/nepi-jano_0.10.0.xpi -------------------------------------------------------------------------------- /releases/nepi-jano_0.11.0.xpi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ejci/nepi-jano/HEAD/releases/nepi-jano_0.11.0.xpi -------------------------------------------------------------------------------- /releases/nepi-jano_0.9.6.xpi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ejci/nepi-jano/HEAD/releases/nepi-jano_0.9.6.xpi -------------------------------------------------------------------------------- /releases/nepi-jano_0.9.7.xpi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ejci/nepi-jano/HEAD/releases/nepi-jano_0.9.7.xpi -------------------------------------------------------------------------------- /releases/nepi_jano_0.1.1.crx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ejci/nepi-jano/HEAD/releases/nepi_jano_0.1.1.crx -------------------------------------------------------------------------------- /releases/nepi_jano_0.1.2.crx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ejci/nepi-jano/HEAD/releases/nepi_jano_0.1.2.crx -------------------------------------------------------------------------------- /releases/nepi_jano_0.10.0.crx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ejci/nepi-jano/HEAD/releases/nepi_jano_0.10.0.crx -------------------------------------------------------------------------------- /releases/nepi_jano_0.10.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ejci/nepi-jano/HEAD/releases/nepi_jano_0.10.0.zip -------------------------------------------------------------------------------- /releases/nepi_jano_0.9.0.crx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ejci/nepi-jano/HEAD/releases/nepi_jano_0.9.0.crx -------------------------------------------------------------------------------- /releases/nepi_jano_0.9.1.crx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ejci/nepi-jano/HEAD/releases/nepi_jano_0.9.1.crx -------------------------------------------------------------------------------- /releases/nepi_jano_0.9.2.crx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ejci/nepi-jano/HEAD/releases/nepi_jano_0.9.2.crx -------------------------------------------------------------------------------- /releases/nepi_jano_0.9.3.crx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ejci/nepi-jano/HEAD/releases/nepi_jano_0.9.3.crx -------------------------------------------------------------------------------- /releases/nepi_jano_0.9.4.crx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ejci/nepi-jano/HEAD/releases/nepi_jano_0.9.4.crx -------------------------------------------------------------------------------- /releases/nepi_jano_0.9.5.crx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ejci/nepi-jano/HEAD/releases/nepi_jano_0.9.5.crx -------------------------------------------------------------------------------- /releases/nepi_jano_0.9.6.crx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ejci/nepi-jano/HEAD/releases/nepi_jano_0.9.6.crx -------------------------------------------------------------------------------- /releases/nepi_jano_0.9.7.crx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ejci/nepi-jano/HEAD/releases/nepi_jano_0.9.7.crx -------------------------------------------------------------------------------- /releases/nepi_jano_0.9.7.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ejci/nepi-jano/HEAD/releases/nepi_jano_0.9.7.zip -------------------------------------------------------------------------------- /releases/nepi_jano_0.10.0.crx.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ejci/nepi-jano/HEAD/releases/nepi_jano_0.10.0.crx.zip -------------------------------------------------------------------------------- /releases/nepi_jano_0.9.7.crx.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ejci/nepi-jano/HEAD/releases/nepi_jano_0.9.7.crx.zip -------------------------------------------------------------------------------- /releases/nepi-jano_0.9.7.safariextz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ejci/nepi-jano/HEAD/releases/nepi-jano_0.9.7.safariextz -------------------------------------------------------------------------------- /releases/nepi_jano_0.10.0.safariextz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ejci/nepi-jano/HEAD/releases/nepi_jano_0.10.0.safariextz -------------------------------------------------------------------------------- /safari/nepi_jano.safariextension/Icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ejci/nepi-jano/HEAD/safari/nepi_jano.safariextension/Icon.png -------------------------------------------------------------------------------- /safari/nepi_jano.safariextension/Icon_64.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ejci/nepi-jano/HEAD/safari/nepi_jano.safariextension/Icon_64.png -------------------------------------------------------------------------------- /firefox/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "Nepi Jano!", 3 | "name": "nepi-jano", 4 | "version": "0.11.0", 5 | "description": "Read paid content on www.sme.sk", 6 | "main": "index.js", 7 | "author": "Miroslav Magda, Viliam Pucik", 8 | "homepage": "https://github.com/ejci/nepi-jano", 9 | "engines": { 10 | "firefox": ">=38.0a1", 11 | "fennec": ">=38.0a1" 12 | }, 13 | "license": "MPL-2.0", 14 | "keywords": [ 15 | "jetpack" 16 | ], 17 | "permissions": { 18 | "cross-domain-content": ["http://s.sme.sk/"] 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /chrome/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Nepi Jano!", 3 | "description": "This extension allows to read paid content on www.sme.sk.", 4 | "version": "0.10.0", 5 | "manifest_version": 2, 6 | "permissions": ["webRequest", "webRequestBlocking", "*://*.sme.sk/*"], 7 | "background": { 8 | "scripts": ["background.js"] 9 | }, 10 | "content_scripts": [ 11 | { 12 | "js": ["nepijano.js"], 13 | "matches": ["*://*.sme.sk/*"] 14 | } 15 | ], 16 | "homepage_url": "https://github.com/ejci/nepi-jano", 17 | "icons": { 18 | "16": "icon_16.png", 19 | "48": "icon_48.png", 20 | "128": "icon_128.png" 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /firefox/index.js: -------------------------------------------------------------------------------- 1 | var data = require("sdk/self").data; 2 | var pageMod = require("sdk/page-mod").PageMod; 3 | var request = require("sdk/request").Request; 4 | 5 | pageMod({ 6 | include : /.*\.sme\.sk\/c\/\d+\/.*/, 7 | contentScriptFile : data.url("nepijano.js"), 8 | onAttach : function(worker) { 9 | worker.port.on("loadPage", function(url) { 10 | request({ 11 | url : url, 12 | headers : { 13 | "User-Agent" : "", 14 | }, 15 | onComplete : function(response) { 16 | if (response.status == 200) { 17 | worker.port.emit("rewritePage", response.text); 18 | } 19 | } 20 | }).get(); 21 | }); 22 | } 23 | }); 24 | -------------------------------------------------------------------------------- /chrome/background.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @fileOverview Nepi Jano Google Chrome extension 3 | * @author Miroslav Magda, http://blog.ejci.net 4 | * @version 0.10.0 5 | */ 6 | 7 | /** 8 | * For each request to sme.sk remove UA string 9 | */ 10 | chrome.webRequest.onBeforeSendHeaders.addListener(function(details) { 11 | for (var i = 0; i < details.requestHeaders.length; ++i) { 12 | //remove UA string :) 13 | if (details.requestHeaders[i].name.toLowerCase() == 'user-agent') { 14 | details.requestHeaders.splice(i, 1); 15 | break; 16 | } 17 | } 18 | return { 19 | requestHeaders : details.requestHeaders 20 | }; 21 | }, { 22 | urls : ["*://*.sme.sk/*"] 23 | }, ["blocking", "requestHeaders"]); 24 | -------------------------------------------------------------------------------- /safari/nepi_jano.safariextension/global.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /MIT-LICENSE.txt: -------------------------------------------------------------------------------- 1 | Copyright (c) 2011 Miroslav Magda, http://ejci.net/ 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining 4 | a copy of this software and associated documentation files (the 5 | "Software"), to deal in the Software without restriction, including 6 | without limitation the rights to use, copy, modify, merge, publish, 7 | distribute, sublicense, and/or sell copies of the Software, and to 8 | permit persons to whom the Software is furnished to do so, subject to 9 | the following conditions: 10 | 11 | The above copyright notice and this permission notice shall be 12 | included in all copies or substantial portions of the Software. 13 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 15 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 16 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 17 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 18 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 19 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 20 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -------------------------------------------------------------------------------- /safari/nepi_jano.safariextension/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 |