mirror of
https://github.com/SoPat712/videospeed.git
synced 2025-08-21 18:08:46 -04:00
@@ -188,8 +188,10 @@ chrome.runtime.sendMessage({}, function(response) {
|
|||||||
if (blacklisted)
|
if (blacklisted)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
window.onload = () => initializeNow(document);
|
window.onload = () => {
|
||||||
if (document && document.doctype.name == "html") {
|
initializeNow(window.document)
|
||||||
|
};
|
||||||
|
if (document && document.doctype && document.doctype.name == "html") {
|
||||||
if (document.readyState === "complete") {
|
if (document.readyState === "complete") {
|
||||||
initializeNow(document);
|
initializeNow(document);
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user