Skip to content

Commit

Permalink
release v0.14
Browse files Browse the repository at this point in the history
  • Loading branch information
rushilsrivastava committed Aug 18, 2018
1 parent 2524699 commit 9ccdbf9
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 35 deletions.
5 changes: 3 additions & 2 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -22,7 +23,7 @@
},
"content_scripts": [{
"matches": ["https://cooking.nytimes.com/*"],
"css": ["css/nyt.css"]
"css": ["src/css/nyt.css"]
}],
"permissions": [
"webRequest",
Expand Down
File renamed without changes.
File renamed without changes.
55 changes: 25 additions & 30 deletions src/html/popup.html
Original file line number Diff line number Diff line change
@@ -1,34 +1,29 @@
<!DOCTYPE html>
<html style="min-width: 250px; max-height: 275px;">

<head>
<link rel="stylesheet" href="/css/material.min.css">
<script src="/js/material.min.js"></script>
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<style>
<head>
<link rel="stylesheet" href="/src/css/material.min.css">
<script src="/src/js/material.min.js"></script>
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<style>
hr {
display: block;
height: 1px;
border: 0;
border-top: 5px solid #fff;
margin: 1em 0;
padding: 0;
display: block;
height: 1px;
border: 0;
border-top: 5px solid #fff;
margin: 1em 0;
padding: 0;
}
</style>
</head>


<body style="text-align: center; color: white; background-color: #337ccefa;">
<div style="margin-left: 24px; margin-right: 24px;">
<h3>OpenNews</h3>
<h5 style="margin-top:-1em;">by Rushil Srivastava</h5>
<hr style="margin-top:-0.4em;">

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

<a target="_blank" href="https://rushilsrivastava.com/software/opennews/"><button class="mdl-button mdl-js-button mdl-button--raised mdl-js-ripple-effect mdl-button--accent">Learn More</button></a>
</div>

</body>

</html>
</style>
</head>
<body style="text-align: center; color: white; background-color: #337ccefa;">
<div style="margin-left: 24px; margin-right: 24px;">
<h3>OpenNews</h3>
<h5 style="margin-top:-1em;">by Rushil Srivastava</h5>
<hr style="margin-top:-0.4em;">
<p>You are experiencing a free, open web experience. Why pay for news that should be free?</p>
<small style="margin-top: -2em !important; margin-bottom: -2em !important;"><p>Running Version: <b id="version"></b></p></small>
<a target="_blank" href="https://rushilsrivastava.com/extensions/opennews/"><button class="mdl-button mdl-js-button mdl-button--raised mdl-js-ripple-effect mdl-button--accent">Learn More</button></a>
</div>
<script src="/src/js/popup.js"></script>
</body>
</html>
4 changes: 1 addition & 3 deletions src/js/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -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});

}
Expand Down
1 change: 1 addition & 0 deletions src/js/popup.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9ccdbf9

Please sign in to comment.