From a47789a149d8062c0735568896ed2cce8273e3bf Mon Sep 17 00:00:00 2001 From: Riley Date: Sat, 27 Feb 2016 23:44:23 -0600 Subject: [PATCH] 1.7.3: incremental stuffs --- bootstrap.js | 78 ++++++++++++++++++++++++++-------------------------- popup-2.html | 2 +- popup.js | 7 +---- 3 files changed, 41 insertions(+), 46 deletions(-) diff --git a/bootstrap.js b/bootstrap.js index 138d4c8..58a47a9 100644 --- a/bootstrap.js +++ b/bootstrap.js @@ -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}); diff --git a/popup-2.html b/popup-2.html index 8b41ef7..fe91801 100644 --- a/popup-2.html +++ b/popup-2.html @@ -58,7 +58,7 @@

News Humor Options

-

News Humor 1.7.2 +

News Humor 1.7.3 Extension Source

diff --git a/popup.js b/popup.js index 32009b3..b562449 100644 --- a/popup.js +++ b/popup.js @@ -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); });