diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..496ee2c --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.DS_Store \ No newline at end of file diff --git a/blockFeed.js b/blockFeed.js index a2fee9b..34fec82 100644 --- a/blockFeed.js +++ b/blockFeed.js @@ -1,4 +1,4 @@ -const mainElement = document.querySelector(".core-rail"); +const mainElement = document.querySelector("main"); const feed = mainElement.children[2]; diff --git a/icon128.png b/icon128.png new file mode 100644 index 0000000..e11c6e3 Binary files /dev/null and b/icon128.png differ diff --git a/manifest.json b/manifest.json index ee10834..b05e80d 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "name": "Feedblocker", - "description": "Remove feeds from linkedin.", - "version": "0.1", + "description": "Remove feeds from LinkedIn.", + "version": "0.2", "minimum_chrome_version": "16.0.884", "permissions": ["activeTab"], "background": { @@ -9,7 +9,8 @@ "persistent": false }, "browser_action": { - "default_title": "Make this page red" + "default_title": "Remove LinkedIn feed" }, - "manifest_version": 2 + "manifest_version": 2, + "icons": { "128": "icon128.png" } } diff --git a/popup.js b/popup.js index 02f36d8..05d8f94 100644 --- a/popup.js +++ b/popup.js @@ -7,13 +7,13 @@ window.onload = function () { }); }; -chrome.runtime.onMessage.addListener(function (message, callback) { - if (message == "changeColor") { - chrome.tabs.executeScript({ - code: 'document.body.style.backgroundColor="orange"', - }); - } -}); +// chrome.runtime.onMessage.addListener(function (message, callback) { +// if (message == "changeColor") { +// chrome.tabs.executeScript({ +// code: 'document.body.style.backgroundColor="orange"', +// }); +// } +// }); // "browser_action": { "default_popup": "popup.html" }, // "content_scripts": [