Skip to content

Commit

Permalink
1.7.3: incremental stuffs
Browse files Browse the repository at this point in the history
  • Loading branch information
Riley committed Feb 28, 2016
1 parent 859ffce commit a47789a
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 46 deletions.
78 changes: 39 additions & 39 deletions bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,45 +10,45 @@ chrome.runtime.onInstalled.addListener(function(details) {

defaults["changeThisSite"] = false;
defaults["sites"] = [
"news.google.com/",
"bloomberg.com/",
"abcnews.go.com/",
"espn.go.com/",
"news.nationalpost.com/",
"www.wsj.com/",
"www.nytimes.com/",
"www.washingtonpost.com/",
"www.huffingtonpost.com/",
"www.reuters.com/",
"www.foxnews.com/",
"www.chicagotribune.com/",
"www.pcmag.com/",
"www.people.com/",
"www.denverpost.com/",
"www.time.com/",
"www.sltrib.com/",
"www.scienceworldreport.com/",
"www.nasa.gov/",
"www.space.com/",
"www.spacex.com/",
"www.nasdaq.com/",
"www.sfgate.com/",
"www.nj.com/",
"www.wkyc.com/",
"www.discovery.com/",
"www.cnn.com/",
"www.verdenews.com/",
"www.dcourier.com/",
"mashable.com/", //This one will never work :( no www.
"www.macrumors.com/",
"www.postbulletin.com/",
"www.newsweek.com/",
"www.usatoday.com/",
"www.appleinsider.com/",
"www.seattlepi.com/",
"www.csmonitor.com/",
"www.miamiherald.com/",
"www.latimes.com/"
"news.google.com",
"bloomberg.com",
"abcnews.go.com",
"espn.go.com",
"news.nationalpost.com",
"www.wsj.com",
"www.nytimes.com",
"www.washingtonpost.com",
"www.huffingtonpost.com",
"www.reuters.com",
"www.foxnews.com",
"www.chicagotribune.com",
"www.pcmag.com",
"www.people.com",
"www.denverpost.com",
"www.time.com",
"www.sltrib.com",
"www.scienceworldreport.com",
"www.nasa.gov",
"www.space.com",
"www.spacex.com",
"www.nasdaq.com",
"www.sfgate.com",
"www.nj.com",
"www.wkyc.com",
"www.discovery.com",
"www.cnn.com",
"www.verdenews.com",
"www.dcourier.com",
"mashable.com", //This one will never work :( no www.
"www.macrumors.com",
"www.postbulletin.com",
"www.newsweek.com",
"www.usatoday.com",
"www.appleinsider.com",
"www.seattlepi.com",
"www.csmonitor.com",
"www.miamiherald.com",
"www.latimes.com"
]

chrome.storage.sync.set({news_humor_options: defaults});
Expand Down
2 changes: 1 addition & 1 deletion popup-2.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ <h4>News Humor Options</h4>
<button id="remove-this" name="remove-this">Remove</button>
</div>
<script src="popup.js"></script>
<h2>News Humor 1.7.2
<h2>News Humor 1.7.3
<a href="https://github.com/random-person-001/news-humor">Extension Source</a>
</h2>
</body>
Expand Down
7 changes: 1 addition & 6 deletions popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,9 @@ document.addEventListener('DOMContentLoaded', function(){
chrome.runtime.sendMessage({greeting: "Please, could you add this domain?"}, function(response) {
console.log(response.farewell);
});
// chrome.storage.sync.get("news_humor_options", function(original){
// original['news_humor_options']['addThisSite'] = true; // For bootstrap.js to handle
// chrome.storage.sync.set({news_humor_options : original['news_humor_options']});
// });
//Reload
});
removeDomain.addEventListener("click", function(){
// Tell botstrap.js to add this domain to list
// Tell botstrap.js to remove this domain to list
chrome.runtime.sendMessage({greeting: "Please, could you remove this domain?"}, function(response) {
console.log(response.farewell);
});
Expand Down

0 comments on commit a47789a

Please sign in to comment.