• You're viewing the Team9000 Archives. These old threads are closed to new comments, but if something interests you or you have a question, feel free to open a new thread in the main forums.

Website banners

Oooh snap, ooh snap! Come to our macaroni party and we'll take a nap...

1715845552_tn_memes_no_face_of_course_not_answer_2_xlarge.jpg
 
MagicForDummies said:
Summertime and you know what that means gonna head down to the beach.. gonna do some beachy things ... :)

*pelvic thrusting tape*

SUMMAH TIEM LU-HUH-HUHVIN

LOVING IN THE SUMMAHTIEM


moondoggy23 said:
A Battletoads banner would be EPIC.

Sir, do you have battle toads?
 
Can someone help me with the image replacement script NOW?
this one doesn't work:
Code:
// ==UserScript==
// @name           T9K replacer 2
// @namespace      imagereplace
// @include        https://www.team9000.net/
// ==/UserScript==


var findString = ['https://static.team9000.net/styles/default/team9000/header/mlp_pinkiepie.png']; // array of image src
var newString = ['http://i.imgur.com/sRGO8.png']; // array of new image src

var allImages, thisImage;

allImages = document.evaluate(
    '//img[@src]',
    document,
    null,
    XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,
    null);

for (var i = 0; i < allImages.snapshotLength; i++) {
    thisImage = allImages.snapshotItem(i);
    for (var j = 0; j < findString.length; j++) {
        if (thisImage.src.match(findString)) {
            thisImage.src = thisImage.src.replace(findString[j], newString[j]);
        }
    }
}
 
Replace the entire script with this:

Code:
$('#nkBackground').css('background-image', 'url("http://i.imgur.com/sRGO8.png")');
 
Replace the entire script with this:

Code:
$('#nkBackground').css('background-image', 'url("http://i.imgur.com/sRGO8.png")');
thanks, it worked!, now to figure out why the size is off
funny thing is, it worked better on chrome with no official greasemonkey support than on firefox.
 
Back
Top