[youtube_to_invidious.user.js fix namespace and added statuscheck
This commit is contained in:
parent
4d0e283195
commit
24c7c7231a
@ -1,8 +1,9 @@
|
||||
// ==UserScript==
|
||||
// @name YouTube to Invidious
|
||||
// @author OdinBrood, Jesús E.
|
||||
// @namespace Krul & Brood
|
||||
// @namespace InvidiousRedirect
|
||||
// @description Scan page for Youtube embeds and urls and replace with Invidious.
|
||||
// @homepageURL https://libregit.org/heckyel/book/src/branch/master/scripts-greasemonkey
|
||||
// @include *
|
||||
// @exclude /^http(s|)://(www[.]|)invidio[.]us/.*$/
|
||||
// @exclude /^http(s|)://(www[.]|)invidious[.]snopyta[.]org/.*$/
|
||||
@ -18,7 +19,11 @@
|
||||
// ==/UserScript==
|
||||
/* jshint esversion: 6 */
|
||||
|
||||
var instance='proxy.invidious.snopyta.org'; //set you favorite Invidious instance! (https://github.com/omarroth/invidious/wiki/Invidious-Instances)
|
||||
// set you favorite Invidious instance! (https://github.com/omarroth/invidious/wiki/Invidious-Instances)
|
||||
var instance = 'proxy.invidious.snopyta.org';
|
||||
|
||||
// Console Style - Debug
|
||||
var consoleCSS = 'background: #000; color: #00FF00; padding: 0px 7px; border: 1px solid #00FF00; line-height: 16px;';
|
||||
|
||||
// change script options, default values recommended
|
||||
var a=1; //set to 0 to force autoplay off, set to 1 to keep embed's value [default 1]
|
||||
@ -40,6 +45,7 @@ if(current){
|
||||
if(frames.length>0)embed();
|
||||
if(thumbs.length>0)thumb();
|
||||
if(links.length>0)link();
|
||||
statuscheck();
|
||||
}else{
|
||||
var title=Array.prototype.slice.call(document.getElementsByTagName('h1'));
|
||||
addbtn();
|
||||
@ -168,3 +174,8 @@ function ytel(el){
|
||||
function ythref(el){
|
||||
return(decodeURIComponent(el.href).match(ytdomains));
|
||||
}
|
||||
|
||||
function statuscheck(){
|
||||
// Console Feedback
|
||||
console.log("%cUSERSCRIPT | " + GM_info.script.name + " " + GM_info.script.version + " | successfully initialized", consoleCSS);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user