Tampermonkey / Grease monkey

Posts 1–11 of 11 · Page 1 of 1
Tampermonkey / Grease monkey
I know this should be in the programming section "Java scripting" I guess , but i need some quick info.
I need some quick help on this , i have no background in JS.
Code:
document.body.innerHTML= document.body.innerHTML.replace(/<td align="center" valign="middle" title="230">230</td>/g,"<td align="center" valign="middle" title="333">333</td>");
Why ^ this doesn't work for example ?
Code:
<td align="center" valign="middle" title="230">230</td>
is the part in the website that I want to edit the number in it to be 333 or any other number ?
I'm a big greasemoney fan, Reek's anti ad-block killer is the bomb
Quote Originally Posted by lockedalt View Post
I'm a big greasemoney fan, Reek's anti ad-block killer is the bomb
You're not helping tho
I don't know what you're trying to do, document.body.innerHTML replaces everything inside the body tag.

Only error I can see is that the argument of document.body.innerHTML.replace aren't inside a ' ' - other than that, I don't see anything wrong -.
Quote Originally Posted by Stack View Post
I don't know what you're trying to do, document.body.innerHTML replaces everything inside the body tag.

Only error I can see is that the argument of document.body.innerHTML.replace aren't inside a ' ' - other than that, I don't see anything wrong -.
Let's say I want the script to change your Posts count "666" to "999". ?
Quote Originally Posted by Janitor View Post

Let's say I want the script to change your Posts count "666" to "999". ?
document.body.innerHTML= document.body.innerHTML.replace('666', '999');
Quote Originally Posted by Stack View Post
document.body.innerHTML= document.body.innerHTML.replace('666', '999');
Banned you. because it didn't work.
Quote Originally Posted by Janitor View Post

Banned you. because it didn't work.
Damn is it that serious
Quote Originally Posted by FlexGod View Post
Damn is it that serious
No, it was just a coincidence.
I'm no staff..

/bump
I've already mastered C# I try not to help people with their lines if they break.
Posts 1–11 of 11 · Page 1 of 1

Post a Reply

Similar Threads

Talk with us