diff --git a/manifest.json b/manifest.json index 5a9e883..d305eb8 100755 --- a/manifest.json +++ b/manifest.json @@ -1,10 +1,11 @@ { "name": "OpenNews", - "version": "0.11", + "version": "0.14", "manifest_version": 2, "description": "Get around the paywall for many news sites, and experience an open, free web.", "author": "Rushil Srivastava", "homepage_url": "https://rushilsrivastava.com/extensions/opennews/", + "update_url": "https://rushilsrivastava.com/extensions/opennews/updates.xml", "browser_action": { "default_icon": "icons/icon16.png", "default_popup": "src/html/popup.html" @@ -22,7 +23,7 @@ }, "content_scripts": [{ "matches": ["https://cooking.nytimes.com/*"], - "css": ["css/nyt.css"] + "css": ["src/css/nyt.css"] }], "permissions": [ "webRequest", diff --git a/css/material.min.css b/src/css/material.min.css similarity index 100% rename from css/material.min.css rename to src/css/material.min.css diff --git a/css/nyt.css b/src/css/nyt.css similarity index 100% rename from css/nyt.css rename to src/css/nyt.css diff --git a/src/html/popup.html b/src/html/popup.html index aefc0d5..f7174ee 100644 --- a/src/html/popup.html +++ b/src/html/popup.html @@ -1,34 +1,29 @@ - - - - - - - - - - -
-

OpenNews

-
by Rushil Srivastava
-
- -

You are experiencing a free, open web experience. Why pay for access to the internet, when it is free?

- - -
- - - - + + + +
+

OpenNews

+
by Rushil Srivastava
+
+

You are experiencing a free, open web experience. Why pay for news that should be free?

+

Running Version:

+ +
+ + + \ No newline at end of file diff --git a/src/js/background.js b/src/js/background.js index a308685..3a8813a 100755 --- a/src/js/background.js +++ b/src/js/background.js @@ -151,14 +151,12 @@ browser.webRequest.onBeforeSendHeaders.addListener( chrome.webRequest.onCompleted.addListener(function(details) { for (var urlIndex in cookieBasedURLs) { - console.log("OpenNews [DEBUG]: Clearing cookies after load"); var url = cookieBasedURLs[urlIndex]; baseURL = url.substring(6, url.length - 2) chrome.cookies.getAll({domain: baseURL}, function(cookies) { for (var i = 0; i < cookies.length; i++) { - + console.log("OpenNews [DEBUG]: Clearing cookies after load"); var protocol = cookies[i].secure ? 'https://' : 'http://'; - chrome.cookies.remove({url: protocol + cookies[i].domain + cookies[i].path, name: cookies[i].name}); } diff --git a/src/js/popup.js b/src/js/popup.js new file mode 100644 index 0000000..1961f67 --- /dev/null +++ b/src/js/popup.js @@ -0,0 +1 @@ +document.getElementById('version').innerHTML = document.getElementById('version').innerHTML + chrome.app.getDetails().version; \ No newline at end of file