Skip to content

Commit

Permalink
no message
Browse files Browse the repository at this point in the history
  • Loading branch information
sniklaus committed Apr 1, 2020
1 parent ceed425 commit 100aa21
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
24 changes: 12 additions & 12 deletions background.js
Original file line number Diff line number Diff line change
Expand Up @@ -1305,6 +1305,18 @@ Node.series({

}

if (window.localStorage.getItem('extensions.Youwatch.Visualization.boolShowbadge') === String(false)) {
chrome.tabs.insertCSS(objTab.id, {
'code': '.youwatch-mark:last-child:after { display:none; }'
});
}

if (window.localStorage.getItem('extensions.Youwatch.Visualization.boolHideprogress') === String(true)) {
chrome.tabs.insertCSS(objTab.id, {
'code': 'ytd-thumbnail-overlay-resume-playback-renderer { display:none; }'
});
}

if (window.localStorage.getItem('extensions.Youwatch.Condition.boolBrowser') === String(true)) {
if (objTab.url.indexOf('https://www.youtube.com/watch?v=') !== 0) {
return;
Expand Down Expand Up @@ -1339,18 +1351,6 @@ Node.series({
}
});
}

if (window.localStorage.getItem('extensions.Youwatch.Visualization.boolShowbadge') === String(false)) {
chrome.tabs.insertCSS(objTab.id, {
'code': '.youwatch-mark:last-child:after { display:none; }'
});
}

if (window.localStorage.getItem('extensions.Youwatch.Visualization.boolHideprogress') === String(true)) {
chrome.tabs.insertCSS(objTab.id, {
'code': 'ytd-thumbnail-overlay-resume-playback-renderer { display:none; }'
});
}
});

return funcCallback({});
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 @@
"description": "Automatically mark videos that you have already watched.",
"homepage_url": "https://sniklaus.com/",

"version": "4.0.3",
"version": "4.0.4",

"permissions": [ "alarms", "downloads", "history", "tabs", "webRequest", "webNavigation", "*://*.youtube.com/*", "*://*.ytimg.com/*" ],

Expand Down

0 comments on commit 100aa21

Please sign in to comment.