Monaco files/Awa wiki redirect tfwiki.user.js

// ==UserScript== // @name    AWA Wiki linkfixer(TFWiki Test) // @version 0.9 // @namespace tag:bbusai@gmail.com,2011:mandrke // @description Fixes Links from AWA Member Wikis // @include    * // ==/UserScript==

(function(d){

function main {

var counter = 0; var anchors = d.getElementsByTagName('a'); var anchors_length = anchors.length; for (var i=0; i<anchors_length; i++) { if (anchors[i].hostname == "transformers.wikia.com" ) { anchors[i].href = "http://tfwiki.net" + anchors[i].pathname; counter++; } 	   else if (anchors[i].hostname == "touhou.wikia.com" ) { anchors[i].href = "http://en.touhouwiki.net" + anchors[i].pathname; counter++; } 	   else if (anchors[i].hostname == "furry.wikia.com" ) { anchors[i].href = "http://wikifur.com" + anchors[i].pathname; counter++; } 	   else if (anchors[i].hostname == "super-smash-bros.wikia.com" ) { anchors[i].href = "http://www.ssbwiki.com" + anchors[i].pathname; counter++; } // Need some other approch for Apple Wiki //	 	else if (anchors[i].hostname == "apple.wikia.com/wiki" ) { //		anchors[i].href = "http://techessentials.org/apple" + anchors[i].pathname; //		counter++; //		 } 	   else if (anchors[i].hostname == "clubpenguin.wikia.com" ) { anchors[i].href = "http://clubpenguinwiki.info" + anchors[i].pathname; counter++; } 	   else if (anchors[i].hostname == "http://pikmin.wikia.com" ) { anchors[i].href = "http://www.pikminwiki.com" + anchors[i].pathname; counter++; } 	   else if (anchors[i].hostname == "pikminfanon.wikia.com" ) { anchors[i].href = "http://fanon.pikminwiki.com" + anchors[i].pathname; counter++; } 	   else if (anchors[i].hostname == "absurdopedia.wikia.com" ) { anchors[i].href = "http://absurdopedia.net" + anchors[i].pathname; counter++; } 	   else if (anchors[i].hostname == "automobile.wikia.com" ) { anchors[i].href = "http://auto.shoutwiki.com" + anchors[i].pathname; counter++; } 	   else if (anchors[i].hostname == "deviousmud.wikia.com" ) { anchors[i].href = "http://deviousmud.shoutwiki.com" + anchors[i].pathname; counter++; } 	   else if (anchors[i].hostname == "simpsons.wikia.com" ) { anchors[i].href = "http://simpsons.shoutwiki.com" + anchors[i].pathname; counter++; } 	   else if (anchors[i].hostname == "asheron.wikia.com" ) { anchors[i].href = "http://ac.wikkii.net" + anchors[i].pathname; counter++; } 	   else if (anchors[i].hostname == "gta.wikia.com" ) { anchors[i].href = "http://www.grandtheftwiki.com" + anchors[i].pathname; counter++; } 	   else if (anchors[i].hostname == "talismanonline.wikia.com" ) { anchors[i].href = "http://talismanonlinewiki.com" + anchors[i].pathname; counter++; } 	   else if (anchors[i].hostname == "ru.wow.wikia.com" ) { anchors[i].href = "http://www.wowpedia.ru" + anchors[i].pathname; counter++; } 	   else if (anchors[i].hostname == "spyro.wikia.com" ) { anchors[i].href = "http://en.spyro.shoutwiki.com" + anchors[i].pathname; counter++; } 	   else if (anchors[i].hostname == "neukolumbia.wikia.com" ) { anchors[i].href = "http://neukolumbia.shoutwiki.com" + anchors[i].pathname; counter++; } 	   else if (anchors[i].hostname == "animalcrossing.wikia.com" ) { anchors[i].href = "http://animalcrossingwiki.me" + anchors[i].pathname; counter++; } 	   else if (anchors[i].hostname == "halo.wikia.com" ) { anchors[i].href = "http://halopedian.com" + anchors[i].pathname; counter++; } 	   else if (anchors[i].hostname == "ultima.wikia.com" ) { anchors[i].href = "http://codex.ultimaaiera.com" + anchors[i].pathname; counter++; }		else if (anchors[i].hostname == "donkeykong.wikia.com" ) { anchors[i].href = "http://www.donkeykongwiki.com" + anchors[i].pathname; counter++; } 	   else if (anchors[i].hostname == "clubpenguinfanon.wikia.com" ) { anchors[i].href = "http://fanon.clubpenguinwiki.info" + anchors[i].pathname; counter++; } 	   else if (anchors[i].hostname == "khchina.wikia.com" ) { anchors[i].href = "http://khchina.shoutwiki.com" + anchors[i].pathname; counter++; } 	   else if (anchors[i].hostname == "nethack.wikia.com" ) { anchors[i].href = "http://nethackwiki.com" + anchors[i].pathname; counter++; }	  else if (anchors[i].hostname == "brickpost.wikia.com" ) { anchors[i].href = "http://brickpost.info" + anchors[i].pathname; counter++; } 	   else if (anchors[i].hostname == "dragonquest.wikia.com" ) { anchors[i].href = "http://www.dragon-quest.org" + anchors[i].pathname; counter++; } 	   else if (anchors[i].hostname == "micronations.wikia.com" ) { anchors[i].href = "http://www.microwiki.co.cc" + anchors[i].pathname; counter++; } 	   else if (anchors[i].hostname == "pl.astronomia.wikia.com" ) { anchors[i].href = "http://astronomia.shoutwiki.com" + anchors[i].pathname; counter++; }	  else if (anchors[i].hostname == "nl.harrypotter.wikia.com" ) { anchors[i].href = "http://nl.harrypotter.shoutwiki.com" + anchors[i].pathname; counter++; } 	   else if (anchors[i].hostname == "ru.mining.wikia.com" ) { anchors[i].href = "http://miningwiki.ru" + anchors[i].pathname; counter++; } 	   else if (anchors[i].hostname == "goldensun.wikia.com" ) { anchors[i].href = "http://goldensunwiki.net" + anchors[i].pathname; counter++; } 	   else if (anchors[i].hostname == "dragonball.wikia.com" ) { anchors[i].href = "http://www.dragonballencyclopedia.com" + anchors[i].pathname; counter++; }	  else if (anchors[i].hostname == "pvx.wikia.com" ) { anchors[i].href = "http://www.gwpvx.com" + anchors[i].pathname; counter++; } 	   else if (anchors[i].hostname == "simpsonsfanon.wikia.com" ) { anchors[i].href = "http://simpsonsfanon.shoutwiki.com" + anchors[i].pathname; counter++; } 	   else if (anchors[i].hostname == "mightandmagic.wikia.com" ) { anchors[i].href = "http://wiki.celestialheavens.com" + anchors[i].pathname; counter++; } 	   else if (anchors[i].hostname == "sl.tolkienslovenija.wikia.com" ) { anchors[i].href = "http://sl.tolkienslovenija.shoutwiki.com" + anchors[i].pathname; counter++; }	  else if (anchors[i].hostname == "guildwars.wikia.com" ) { anchors[i].href = "http://guildwiki.org" + anchors[i].pathname; counter++; } 	   else if (anchors[i].hostname == "madnesscombat.wikia.com" ) { anchors[i].href = "http://madness.shoutwiki.com" + anchors[i].pathname; counter++; } 	   else if (anchors[i].hostname == "gintama.wikia.com" ) { anchors[i].href = "http://gintama.wikkii.net" + anchors[i].pathname; counter++; } 	   else if (anchors[i].hostname == "onepiece.wikia.com" ) { anchors[i].href = "http://onepiece.wikkii.net" + anchors[i].pathname; counter++; }	  else if (anchors[i].hostname == "90210.wikia.com" ) { anchors[i].href = "http://90210.shoutwiki.com" + anchors[i].pathname; counter++; } 	   else if (anchors[i].hostname == "koopa.wikia.com" ) { anchors[i].href = "http://koopa.shoutwiki.com" + anchors[i].pathname; counter++; } 	   else if (anchors[i].hostname == "ru.virtualopedia.wikia.com" ) { anchors[i].href = "http://virtualopedia.co.cc" + anchors[i].pathname; counter++; } 	   else if (anchors[i].hostname == "ru.politic.wikia.com" ) { anchors[i].href = "http://polit-wiki.co.cc" + anchors[i].pathname; counter++; }	  else if (anchors[i].hostname == "iceagedinosaurs.wikia.com" ) { anchors[i].href = "http://iceagedinosaurs.shoutwiki.com" + anchors[i].pathname; counter++; } 	   else if (anchors[i].hostname == "sickapedia.wikia.com" ) { anchors[i].href = "http://sickapedia.shoutwiki.com" + anchors[i].pathname; counter++; } 	   else if (anchors[i].hostname == "dead-rising.wikia.com" ) { anchors[i].href = "http://deadrising.shoutwiki.com" + anchors[i].pathname; counter++; } 	   else if (anchors[i].hostname == "deadrising.wikia.com" ) { anchors[i].href = "http://deadrisingwiki.com" + anchors[i].pathname; counter++; }	  else if (anchors[i].hostname == "wackypedia.wikia.com" ) { anchors[i].href = "http://www.illogicopedia.org" + anchors[i].pathname; counter++; } 	  else if (anchors[i].hostname == "wackypedia.wikia.com" ) { anchors[i].href = "http://www.illogicopedia.org" + anchors[i].pathname; counter++; } 	  //WoWwiki, CN SOS, not available due to spliting from base. for WoWWiki a top bar tellimg that most of the community has moved to Wowpedia is required. do the same for all wikis. //only did those on moved are done. }

if (counter === 0) { setTimeout(main, 60000); working = {}; } else { // setTimeout(main, 10000 / counter); }    }

main; }(document));