Author Topic: How Would I use this code on tampermonkey-Chrome?  (Read 551 times)

please help
i guess

Code: [Select]
// ==UserScript==
// @name         Mr Man? More like
// @version      0.1
// @description  yeah
// @author       Steve5451
// @match        http://forum.blockland.us/*
// @grant        none
// @noframes
// ==/UserScript==

var userUrl = "http://forum.blockland.us/index.php?action=profile;u=35550";

var newName = "Mr stuff";

var links = document.getElementsByTagName("a");

for(i = 0; i < links.length; i++) {
    if(links[i].href == userUrl) {
        links[i].innerHTML = newName;   
    }
}

no disrespect Mr Man.
I don't know how to plug this in to tampermonkey



wow that's not vry neighbourly code u got ther....

Probably should've mentioned you have to edit the code so it changes your name to something different.
Code: [Select]
// ==UserScript==
// @name         Simple name changer
// @version      0.1
// @description  yeah
// @author       original: Steve5451 edit: L's & D's
// @match        http://forum.blockland.us/*
// @grant        none
// @noframes
// ==/UserScript==

var userUrl = "http://forum.blockland.us/index.php?action=profile;u=25867";

var newName = "Radio";

var links = document.getElementsByTagName("a");

for(i = 0; i < links.length; i++) {
    if(links[i].href == userUrl) {
        links[i].innerHTML = newName;   
    }
}
I've edited the code for you, assuming you want your changed to your IGN.

assuming you want your changed to your IGN.
Pretty sure he doesn't
If you read where the quote is from, someone is specifically requesting "a script that changes mr man's name to mr stuff"



how do i use it on greasemonkey

how do i use it on greasemonkey
Copy the code, create a new user script, paste from your clipboard.