{
"manifest_version": 2,
"name": "Infinity Pools",
- "version": "1.1",
+ "version": "1.2",
"description": "An extension to hide various feeds like Facebook's, Pocket, etc. ",
"update_url": "https://khamidou.com/extensions/update.xml",
"content_scripts": [
{
- "matches": ["*://*.facebook.com/*", "*://*.getpocket.com/*", "*://*.twitter.com/*"],
+ "matches": ["*://*.facebook.com/*", "*://*.getpocket.com/*",
+ "*://*.twitter.com/*", "*://*.reddit.com/*",
+ "*://news.ycombinator.com/*"],
"js": ["start.js"]
}
]
}
+var hideRedditComments = function() {
+ console.log("Hiding reddit comments");
+ hideAll("commentarea");
+}
+
+
+var hideHNComments = function() {
+ hideAll("comment");
+}
+
+
var hideFeeds = function() {
var domain = document.domain;
hidePocketFeed();
} else if (domain.match(/twitter\.com/)) {
hideTwitterFeed();
+ } else if (domain.match(/reddit\.com/)) {
+ hideRedditComments();
+ } else if (domain.match(/news\.ycombinator\.com/)) {
+ hideHNComments();
}
+
+
+
}