User:Eighty5cacao/secure.js

function alwayssecurelinks { if ( window.disableSecureLinks === true ) return;

var links = document.getElementsByTagName( 'a' );

for ( var i = links.length; i--; ) { var link = links[i], href = link.href;

if ( $( link ).hasClass( 'external' ) && /^http:\/\/(www\.)?pineight\.com\//i.test( href ) ) { link.href = href.replace( /^http:\/\//i, "//"); $( link ).addClass( 'securelinkfixed' ); }   } }

$( alwayssecurelinks );