[Invidious Embed] fix div embed

This commit is contained in:
Jesús 2019-12-25 16:35:58 -05:00
parent 5705b891a7
commit 969a78757b
No known key found for this signature in database
GPG Key ID: F6EE7BC59A315766

View File

@ -23,11 +23,14 @@
let instance = 'invidio.us' // set instance
// Console Style - Debug
let consoleCSS = 'background: #000; color: #00FF00; padding: 0px 7px; border: 1px solid #00FF00; line-height: 16px;';
let i, j, k, index;
let video_id, video_url, video_link;
let risky_elements, risky_attributes, risky_node;
let risky_tags = ["object", "embed", "iframe"];
let risky_tags = ["object", "embed", "iframe", "div"];
let bad_elements = [];
let bad_ids = [];
@ -82,3 +85,10 @@ for (i = 0; i < bad_ids.length; i++) {
bad_elements[i].parentNode.replaceChild(video_link, bad_elements[i]);
}
function statuscheck(){
// Console Feedback
console.log("%cUSERSCRIPT | " + GM_info.script.name + " " + GM_info.script.version + " | successfully initialized", consoleCSS);
}
statuscheck()