mirror of
https://github.com/lawrencehook/remove-youtube-suggestions.git
synced 2026-07-25 06:54:31 +00:00
refresh HTML attributes on new page loads
This commit is contained in:
@@ -562,6 +562,9 @@ function handleNewPage() {
|
||||
// Mark whether or not we're on a video page
|
||||
HTML.setAttribute('on_video', onVideo);
|
||||
|
||||
// Refresh HTML attributes
|
||||
Object.entries(cache).forEach(([key, value]) => HTML.setAttribute(key, value));
|
||||
|
||||
// Homepage redirects
|
||||
if (
|
||||
on &&
|
||||
|
||||
Reference in New Issue
Block a user