From: Karim Hamidou Date: Sat, 13 Jan 2018 11:37:18 +0000 (+0100) Subject: Add support for twitter! X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=d2bff1c9380f32ea23a7dc4de7cb221b1f4d0ee5;p=infinity-pools.git Add support for twitter! --- diff --git a/InfinityPools.crx b/InfinityPools.crx index 28cd38f..feb1d64 100644 Binary files a/InfinityPools.crx and b/InfinityPools.crx differ diff --git a/README.md b/README.md index c708678..15ef28a 100644 --- 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 index 346a543..0000000 Binary files a/infinity_pools-1.0-an+fx.xpi and /dev/null differ diff --git a/manifest.json b/manifest.json index 38ab207..0a9dcd3 100644 --- a/manifest.json +++ b/manifest.json @@ -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"] } ] diff --git a/start.js b/start.js index d4d0036..3c30acc 100644 --- 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(); } - }