User:Jxtreme/wikia.js

see3 = $(' ').append($("span:contains('See also')").parent.next.find("li:nth-child(3) a").clone).remove.html; see1 = $(' ').append($("span:contains('See also')").parent.next.find("li:nth-child(1) a").clone).remove.html; see2 = $(' ').append($("span:contains('See also')").parent.next.find("li:nth-child(2) a").clone).remove.html;

cat1 = $(' ').append($('.WikiaPageHeader details .categories a:nth-child(1)').clone).remove.html; cat2 = $(' ').append($('.WikiaPageHeader details .categories a:nth-child(2)').clone).remove.html; cat3 = $(' ').append($('.WikiaPageHeader details .categories a:nth-child(3)').clone).remove.html;

if (cat1 != "") {$(".WikiaPageHeader h1").append(cat1);} else {$(".WikiaPageHeader h1").append("cat1 is empty");}

if(see3 != ""){more3 = see3} else {more3 = cat3} if(see1 != ""){more1 = see1} else {more1 = cat1} if(see2 != ""){more2 = see2} else {more2 = cat2}

if (more3 == "" && more2 != "") {$(".WikiaPageHeader details .categories").replaceWith("Read More: " + more1 + ", " + more2 + " ");}

if (more3 == "" && more2 == "" && more1 != "") {$(".WikiaPageHeader details .categories").replaceWith("Read More: " + more1 + " ");}

if (more3 != "") {$(".WikiaPageHeader details .categories").replaceWith("Read More: " + more1 + ", " + more2 + ", " + more3 + " ");}

if (document.getElementById("title-Good")) { $("#WikiaPageHeader .wikia-menu-button").before($("#title-Good")); $("#title-Good").attr("style","font-size: 188\%; float: left; position: relative; top: \-5px;left:\-10px"); } if (document.getElementById("title-Featured")) { $("#WikiaPageHeader .wikia-menu-button").before($("#title-Featured")); $("#title-Featured").attr("style","font-size: 188\%; float: left; position: relative; top: \-2px;left:\-10px"); } $("#WikiaPageHeader h1").css("float","left");