]> khamidou — GitHub mirrors - infinity-pools.git/commitdiff
Add support for twitter!
authorKarim Hamidou <khamidou@gmail.com>
Sat, 13 Jan 2018 11:37:18 +0000 (12:37 +0100)
committerKarim Hamidou <khamidou@gmail.com>
Sat, 13 Jan 2018 11:37:18 +0000 (12:37 +0100)
InfinityPools.crx
README.md
infinity_pools-1.0-an+fx.xpi [deleted file]
manifest.json
start.js

index 28cd38f8d7646bcafdfc30301f6427700b960057..feb1d6480a3f6858181da36215226a044101a11a 100644 (file)
Binary files a/InfinityPools.crx and b/InfinityPools.crx differ
index c7086787d96ed9eaa1bd507657d10799c68d65fb..15ef28a094da516a31bd201afc64bcafd5b46cfe 100644 (file)
--- a/README.md
+++ b/README.md
@@ -1,3 +1,5 @@
 # infinity-pools
 
 This is a tiny tiny Chrome and Firefox extension which blocks various [infinity pools](https://medium.com/time-dorks/distractions-are-a-nuisance-but-infinity-pools-are-the-real-problem-e84122d62c0c) – that is, website with infinite feeds like Facebook or Pocket's recommended articles page.
+
+This extension supports (so far) Facebook, Twitter and Reddit.
diff --git a/infinity_pools-1.0-an+fx.xpi b/infinity_pools-1.0-an+fx.xpi
deleted file mode 100644 (file)
index 346a543..0000000
Binary files a/infinity_pools-1.0-an+fx.xpi and /dev/null differ
index 38ab2073b75c71607c48e1cfcb38358bcf8d1fed..0a9dcd37c5037e912165b2ec9d9793d4091a0df3 100644 (file)
@@ -1,19 +1,13 @@
 {
   "manifest_version": 2,
   "name": "Infinity Pools",
-  "version": "1.0",
+  "version": "1.1",
 
   "description": "An extension to hide various feeds like Facebook's, Pocket, etc. ",
-  "update_url": "http://khamidou.com/extensions/update.xml",
-  "applications": {
-     "gecko": {
-        "id": "infinitypools@khamidou.com"
-     }
-  },
-
+  "update_url": "https://khamidou.com/extensions/update.xml",
   "content_scripts": [
     {
-      "matches": ["*://*.facebook.com/*", "*://*.getpocket.com/*"],
+      "matches": ["*://*.facebook.com/*", "*://*.getpocket.com/*", "*://*.twitter.com/*"],
       "js": ["start.js"]
     }
   ]
index d4d0036ac9acde2dd414cc8529bd69b574d8ad5e..3c30acc5baddcd58b7301d883d31127cc2f3b20a 100644 (file)
--- a/start.js
+++ b/start.js
@@ -29,6 +29,12 @@ var hidePocketFeed = function() {
 }
 
 
+var hideTwitterFeed = function() {
+  hideAll("stream-items");
+  hideAll("home");
+}
+
+
 var hideFeeds = function() {
   var domain = document.domain;
 
@@ -36,8 +42,9 @@ var hideFeeds = function() {
     hideFacebookFeed();
   } else if (domain.match(/getpocket\.com/)) {
     hidePocketFeed();
+  } else if (domain.match(/twitter\.com/)) {
+    hideTwitterFeed();
   }
-
 }