User:KurwaAntics/common.js

if( window.location.href.indexOf('T:') > -1) window.location.href = window.location.href.replace('T:','Template:'); if( window.location.href.indexOf('Css') > -1) window.location.href = window.location.href.replace('Css','User:UntergangerPlus/vector.css'); if( window.location.href.indexOf('Js') > -1) window.location.href = window.location.href.replace('Js','User:UntergangerPlus/common.js');

$('a[href*="youtu.be/"]').on('click', function{   if ($(".greyout")[0]){        return false;    } else {        var id = $(this).attr('href').split('.be/')[1].split('?')[0];        $('body').prepend('  ✕   ');        $('.close-modal').on('click', function { $(".greyout, .mymodal").remove; });       return false;    } });

$('a[href*="youtube.com/watch"]').on('click', function{   if ($(".greyout")[0]){        return false;    } else {        var id = $(this).attr('href').split('?v=')[1].split('&')[0];        $('body').prepend('  ✕   ');        $('.close-modal').on('click', function { $(".greyout, .mymodal").remove; });       return false;    } });