kopia lustrzana https://github.com/learn-awesome/learndb
repeated function deleted
rodzic
bed0b1d752
commit
0291bfe3a1
|
@ -55,10 +55,6 @@
|
|||
return wikiurl.replace('simple.wikipedia.org/','simple.m.wikipedia.org/').replace('en.wikipedia.org/','en.m.wikipedia.org/');
|
||||
}
|
||||
|
||||
function get_tld(url){
|
||||
return (new URL(url)).hostname.replace('www.','');
|
||||
}
|
||||
|
||||
// function youtube_parser(url){
|
||||
// var regExp = /^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#&?]*).*/;
|
||||
// var match = url.match(regExp);
|
||||
|
|
Ładowanie…
Reference in New Issue