A couple people in the IRC channel suggested I make it available, so I added the code snippets that would allow someone to choose any of the old logos, just with a little copying and pasting, and here it is:
Download as a .js file
Code: Select all
// ==UserScript==
// @name a-m-v.org logo replacement
// @namespace http://www.honouproductions.net
// @description Replaces the Org logo with the logo of your choice
// @include http://animemusicvideos.org/*
// @include http://www.animemusicvideos.org/*
// ==/UserScript==
// Script based on "Patriotic Google Logo" by Jesse Hathaway
// Notes:
// *** You must define the URL of the custom logo below, or the script will display the default logo! ***
//Replace the block here with the logo you want to have appear
var newLogoURL = "http://www.animemusicvideos.org/_media/AMVLogo.png";
var newLogoWidth = 131;
var newLogoHeight = 70;
var newForumURL = "http://www.animemusicvideos.org/_media/AMVLogo.png";
/* For ancient 1999-2001 brown round logo:
var newLogoURL = "http://www.animemusicvideos.org/_media/logo.gif";
var newLogoWidth = 127;
var newLogoHeight = 80;
var newForumURL = "http://www.animemusicvideos.org/_media/logo.gif";
*/
/* For ancient 1999-2001 text logo:
var newLogoURL = "http://www.animemusicvideos.org/_media/logo3.gif";
var newLogoWidth = 187;
var newLogoHeight = 80;
var newForumURL = "http://www.animemusicvideos.org/_media/logo3.gif";
*/
// The 2002 logo available in the _media folder is the text portion of the logo only.
// The note portion is not available directly from the org.
/* For 2002 music note text logo:
var newLogoURL = "http://www.animemusicvideos.org/_media/logo5.gif";
var newLogoWidth = 175;
var newLogoHeight = 62;
var newForumURL = "http://www.animemusicvideos.org/_media/logo5.gif";
*/
/* For 2003-2004 filmstrip logo:
var newLogoURL = "http://www.animemusicvideos.org/_media/AMVLogo.png";
var newLogoWidth = 131;
var newLogoHeight = 70;
var newForumURL = "http://www.animemusicvideos.org/_media/AMVLogo.png";
*/
/* For 2005 black oval logo:
var newLogoURL = "http://www.animemusicvideos.org/_media/AMVLogo2005.png";
var newLogoWidth = 192;
var newLogoHeight = 70;
var newForumURL = "http://www.animemusicvideos.org/_media/AMVLogo2005.png";
*/
/* For 2006 paintbrush logo:
var newLogoURL = "http://www.animemusicvideos.org/_media/AMVLogo2006.png";
var newLogoWidth = 168;
var newLogoHeight = 70;
var newForumURL = "http://www.animemusicvideos.org/_media/AMVLogo2006.png";
*/
/* For 2007 flower petal logo:
var newLogoURL = "http://www.animemusicvideos.org/_media/AMVLogo2007.png";
var newLogoWidth = 152;
var newLogoHeight = 80;
var newForumURL = "http://www.animemusicvideos.org/_media/AMVLogo2007.png";
*/
/* For 2008 note cloud logo:
var newLogoURL = "http://www.animemusicvideos.org/_media/AMVLogo2008.gif";
var newLogoWidth = 168;
var newLogoHeight = 70;
var newForumURL = "http://www.animemusicvideos.org/_media/AMVLogo2008.gif";
*/
/*
getElementsByAttribute function is:
Copyright Robert Nyman, http://www.robertnyman.com
Free to use if this text is included
Slightly modified to work in this user script
*/
window.getElementsByAttribute = function(oElm, strTagName, strAttributeName, strAttributeValue){
var arrElements = (strTagName == "*" && oElm.all)? oElm.all : oElm.getElementsByTagName(strTagName);
var arrReturnElements = new Array();
var oAttributeValue = (typeof strAttributeValue != "undefined")? new RegExp("(^|\\s)" + strAttributeValue + "(\\s|$)") : null;
var oCurrent;
var oAttribute;
for(var i=0; i<arrElements> 0){
if(typeof strAttributeValue == "undefined" || (oAttributeValue && oAttributeValue.test(oAttribute))){
arrReturnElements.push(oCurrent);
}
}
}
return arrReturnElements;
}
var logos = getElementsByAttribute(document.body, "img", "src", "/_media/AMVLogo2008.gif");
if(logos != "") {
logos[0].src = newLogoURL;
logos[0].width = newLogoWidth;
logos[0].height = newLogoHeight;
} else {
logos = getElementsByAttribute(document.body, "img", "src", "templates/subSilver/images/logo_phpBB.gif");
if(logos != "") { logos[0].src = newForumURL; }
}