aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--viewtube.js10
1 files changed, 4 insertions, 6 deletions
diff --git a/viewtube.js b/viewtube.js
index 7b45b05..e41b167 100644
--- a/viewtube.js
+++ b/viewtube.js
@@ -169,12 +169,10 @@
// =====YouTube===== //
// Add stylesheet
- document.head.appendChild(createElement("link", {rel: "stylesheet", type: "text/css", href: browser.extension.getURL("viewtube.css")}));
-
- /* Redirect Categories */
- if (page.url.indexOf('gaming.youtube.com') != -1) {
- page.win.location.href = page.url.replace('gaming', 'www');
- }
+ createElement("link", {rel: "stylesheet",
+ type: "text/css",
+ href: browser.extension.getURL("viewtube.css")},
+ document.head);
/* Video Availability */
var ytVideoUnavailable = document.querySelector("#player-unavailable");