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 {

if (       evnt.ctrlKey ||         evnt.shiftKey ||         evnt.metaKey || // apple        (evnt.button && evnt.button == 1) // middle click, >IE9 + everyone else    ){ return; }

var url = $(this).attr('href'); var id = url.substring(url.indexOf(".be/") + 4, url.indexOf("?")); var cond = "&" + url.substring(url.indexOf("?") + 1); $('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 url = $(this).attr('href');        var id = url.substring(url.indexOf("v=") + 2, url.indexOf("&"));        var cond = url.substring(url.indexOf("&"));        $('body').prepend('  ✕   ');        $('.close-modal').on('click', function { $(".greyout, .mymodal").remove; });       return false;    } });