diff options
author | Jesús <heckyel@hyperbola.info> | 2019-12-25 16:35:58 -0500 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2019-12-25 16:35:58 -0500 |
commit | 969a78757b9e2f71fccdcc5d5c9a14f774d47469 (patch) | |
tree | 01a7a80a85a9337bac5d6ca66d5aec651e8f2b06 | |
parent | 5705b891a79fba5a05373f46d5190c8de24eb192 (diff) | |
download | book-969a78757b9e2f71fccdcc5d5c9a14f774d47469.tar.lz book-969a78757b9e2f71fccdcc5d5c9a14f774d47469.tar.xz book-969a78757b9e2f71fccdcc5d5c9a14f774d47469.zip |
[Invidious Embed] fix div embed
-rw-r--r-- | scripts-greasemonkey/invidio_embed.user.js | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/scripts-greasemonkey/invidio_embed.user.js b/scripts-greasemonkey/invidio_embed.user.js index 26f591e..7917b48 100644 --- a/scripts-greasemonkey/invidio_embed.user.js +++ b/scripts-greasemonkey/invidio_embed.user.js @@ -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() |