User:Killr833/wikiaredlink.js

/* Finds links to other Wikia * sites and if the link is to * a page that doesn't exist, * make it a redlink. */

$(document).ready(function {   var toWikia = []; // Array for 's linking to Wikia    var wikiaDB = []; // Array for corresponding database    $('a.extiw').each(function { var urlSegments = this.attr('href').split('.'); if(urlSegments[0] != 'http://www' && urlSegments[1] == 'wikia' && urlSegments[2].substring(0,4) == 'com/') { // TODO: Add element and database to array }   }; };