[scripts-greasemonkey] minor fix
This commit is contained in:
parent
59ef2a40f6
commit
725f7bac0e
@ -13,7 +13,7 @@
|
||||
// @exclude /^http(s|)://(www\.|)tube\.poal\.co/.*$/
|
||||
// @exclude /^http(s|)://(www\.|)invidious\.13ad\.de/.*$/
|
||||
// @grant GM_xmlhttpRequest
|
||||
// @version 8.4.2
|
||||
// @version 8.4.1
|
||||
// ==/UserScript==
|
||||
/* jshint esversion: 6 */
|
||||
|
||||
@ -25,7 +25,6 @@ var b=1; //set to 0 to not replace all youtube links to Invidious [default 1]
|
||||
var c=1; //set to 0 to disable DASH playback (beta feature) [default 1]
|
||||
var d=1; //set to 0 to disable Invidious proxy [default 1]
|
||||
var e=1; //set to 0 to disable bypass of url shorteners [default 1]
|
||||
var f=1; //set to 0 to disable dark-theme [default 1]
|
||||
|
||||
var ytdomains=new RegExp(/http(s|)\:\/\/(m\.|i\.|www\.|img\.|)(youtu(|be|be-nocookie)|.*ytimg)\.(com|be)\/.*/);
|
||||
var shorteners=new RegExp(/^http(s|):\/\/(bit.ly|goo.gl|tinyurl.com|t.co|ow.ly|is.gd|buff.ly|deck.ly|su.pr|lnk.co|fur.ly|moourl.com|)\/.*/);
|
||||
@ -166,6 +165,5 @@ function ytel(el){
|
||||
}
|
||||
|
||||
function ythref(el){
|
||||
// return ref
|
||||
return(decodeURIComponent(el.href).match(ytdomains));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user