User:Bobogoobo/wikia.js

// wish list: I forget

// http://dev.wikia.com/wiki/RevealAnonIP importArticles({   type: "script",    articles: [        "w:c:dev:RevealAnonIP/usercode.js"    ] });

// Disable redirects when visiting from special pages if (wgCanonicalNamespace == "Special" && wgTitle != "ListRedirects") { $("[class*='redirect'] a").each(function{   var asdf = $(this).attr("href");    $(this).attr("href", asdf + "?redirect=no");  }); }

// Keep Maintenance reports columns somewhat sorted if (wgPageName == "Special:SpecialPages") { $('a[title="Special:UncategorizedCategories"]').parent.prependTo($("table.mw-specialpages-table:eq(0) td:eq(2) ul")); }

// Swap collapsed states on RecentChanges var collapsedOnes = $('[class="mw-collapsible-toggle mw-collapsible-toggle-collapsed"]'); $('[class="mw-collapsible-toggle"]').addClass("mw-collapsible-toggle-collapsed"); collapsedOnes.removeClass("mw-collapsible-toggle-collapsed");

// Disable autoplay on all embedded YouTube videos // (works on both user pages and file pages) $("iframe[src^='http://www.youtube.com']").each(function{ var source = $(this).attr("src");  $(this).attr("src", source.replace("autoplay=1", "autoplay=0")); });