Greasy Fork is available in English.

Diskuse » Creation Requests

Hello guys i need help

§
Posted: 28. 10. 2018
Edited: 28. 10. 2018

Hello guys i need help

Plz help me i need scipt i have Tampermonkey®

I have html code and I would like to change its value using a script

          <p class="top-b-acc__amount">0</p>

and I would like to change the value of 0 to 1 using a script

wOxxOmMod
§
Posted: 28. 10. 2018

Changing the displayed text won't change the value, I'm afraid. To change the actual value we would need to "hack" into the page script. Can you share the URL?

§
Posted: 28. 10. 2018

i just need to change the text

§
Posted: 28. 10. 2018

I need to write this or something else
var input = document.querySelector

§
Posted: 29. 10. 2018

Need help!

§
Posted: 31. 10. 2018
var input = document.querySelector('p.top-b-acc__amount');
input.innerText = 1;

if you don't know the css selector rule,right click the elements item in the inspector and select the copy——copy selector,it may work usually

Post reply

Sign in to post a reply.