Skip to content

Commit

Permalink
fix extension using new selector
Browse files Browse the repository at this point in the history
  • Loading branch information
spencercanner committed Feb 20, 2021
1 parent 3310171 commit 72cfef4
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 12 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.DS_Store
2 changes: 1 addition & 1 deletion blockFeed.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const mainElement = document.querySelector(".core-rail");
const mainElement = document.querySelector("main");

const feed = mainElement.children[2];

Expand Down
Binary file added icon128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 5 additions & 4 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
{
"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": {
"scripts": ["feeds.js"],
"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" }
}
14 changes: 7 additions & 7 deletions popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down

0 comments on commit 72cfef4

Please sign in to comment.