User:Strongwillow/vector.js

var en_fr = //g; var en_zh = //g; var en_nl = //g; var en_ja = //g;

var fr_en = //g; var fr_zh = //g; var fr_nl = //g;

var zh_en = //g; var zh_fr = //g; var zh_nl = //g;

var str = $("#p-lang").html; var c = {"fr": "blue", "en": "black", "zh": "red", "nl": "red", "ja": "green"}; var group = [ [en_fr, c["fr"]], [en_zh, c['zh']], [en_nl, c['nl']], [en_ja, c['ja']], [zh_fr, c["fr"]], [fr_zh, c['zh']], [fr_en, c['en']], [zh_en, c['en']], [zh_nl, c["nl"]], [fr_nl, c['nl']], ];

function appendLangLink(id){ try{ var data = group[id][0].exec(str); var link = $(data[0]); link.text(data[2]); link.css("color", group[id][1]); $("#firstHeading").append(" / " + link[0].outerHTML); }   catch(e){ } }

function clean{ $("#siteSub").remove; $("#p-cactions").remove; // $("#p-search").remove; $(".portal").remove; $("#siteNotice").remove; $("#mw-panel").remove; $(".new").remove $("#pt-betafeatures").remove; $("#pt-mycontris").remove; }

clean; appendLangLink(0); appendLangLink(1); appendLangLink(2); appendLangLink(3); $("a:lang(zh)").eq(0).addClass("class_zh") $("a:lang(ja)").eq(0).addClass("class_ja")

document.write('');