Skip to content

Commit

Permalink
Remove 'ubEntry' class for compatibility with SearchPreview #2
Browse files Browse the repository at this point in the history
  • Loading branch information
iorate committed Oct 28, 2018
1 parent 4a1eddb commit 72b60c5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions content.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,7 @@ class UBlacklist {
}

setupEntry({ base, pageUrl, actionParent, actionTag, actionClass }) {
if (base.classList.contains('ubEntry')) { return; }
base.classList.add('ubEntry');
if (base.hasAttribute('data-ub-page-url')) { return; }
base.setAttribute('data-ub-page-url', pageUrl);

const action = document.createElement(actionTag);
Expand Down Expand Up @@ -231,7 +230,7 @@ class UBlacklist {

rejudgeAllEntries() {
this.blockedEntryCount = 0;
for (const entry of document.getElementsByClassName('ubEntry')) {
for (const entry of document.querySelectorAll('[data-ub-page-url]')) {
entry.classList.remove('ubBlockedEntry');
this.judgeEntry(entry);
}
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

"name": "__MSG_extensionName__",
"description": "__MSG_extensionDescription__",
"version": "1.6.0",
"version": "1.6.1",
"permissions": ["activeTab", "storage"],

"background": {
Expand Down

0 comments on commit 72b60c5

Please sign in to comment.