User:Jarry1250/vector.js

( function ( $, undefined ) {

//Let's do this thing. Security ftw. var wikEdConfig = {}; wikEdConfig.imagePath = '//upload.wikimedia.org/wikipedia/commons/'; // importScript('User:Splarka/ajaxfilemove.js'); // importScript('User:John254/mass rollback.js') importScript('User:Anomie/linkclassifier.js'); // Linkback: User:Anomie/linkclassifier.js importScript('User:Jarry1250/dykcheck.js'); //DYKcheck tool popupFixDabs=true; popupAdminLinks=true; importScript('User:X!/userrights.js'); // importScript('User:AWeenieMan/furme.js');//Fair use rational // importScript('User:Ale_jrb/Scripts/csdhelper.js'); //User:Ale_jrb/Scripts importScript("User:GregU/dashes.js"); importScript('User:Ucucha/HarvErrors.js'); // importScript('User:Mr.Z-man/refToolbar.js'); // importScript('User:Ohconfucius/script/MOSNUM dates.js');

mw.loader.load('//www.wikidata.org/w/index.php?title=User:Yair_rand/checksitelinks.js&action=raw&ctype=text/javascript'); var IPv6shortener = { found: [], shortened: [], onLoad: function{ $('a[href^="/wiki/Special:Contributions/2"],[href^="/wiki/User:2"],[href^="/w/index.php?title=User:2"]').each( function{           if( $(this).text.match('^([0-9A-F]{1,4}:){7}[0-9A-F]{1,4}$') ){                IPv6shortener.shorten( $(this) );            }        }); },    shorten: function( object ){ $(object).attr( 'title',$(object).text ); var blocks = $(object).text.split(':'); var suggested; for( var i = 4; i < 9; i++ ){ suggested = blocks.slice( ( (-1) * i ) ).join(':'); if( !( IPv6shortener.shortened.indexOf( suggested ) !== -1 && IPv6shortener.found.indexOf( suggested ) === -1 )				  && suggested.substr( 0, 2 ) !== '0:' ){ IPv6shortener.shortened.push( suggested ); IPv6shortener.found.push( $(object).text ); break; }       }        $(object).text( suggested ); } }; jQuery(document).ready( IPv6shortener.onLoad ); } ( jQuery )); // End wrap with anonymous function