# 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.
{
"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"]
}
]
}
+var hideTwitterFeed = function() {
+ hideAll("stream-items");
+ hideAll("home");
+}
+
+
var hideFeeds = function() {
var domain = document.domain;
hideFacebookFeed();
} else if (domain.match(/getpocket\.com/)) {
hidePocketFeed();
+ } else if (domain.match(/twitter\.com/)) {
+ hideTwitterFeed();
}
-
}