§
Публикуван на: 28.10.2018
Редактиран на: 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

woxxomМод
§
Публикуван на: 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?

§
Публикуван на: 28.10.2018

i just need to change the text

§
Публикуван на: 28.10.2018

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

§
Публикуван на: 29.10.2018

Need help!

§
Публикуван на: 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

Публикувайте отговор

Влезте, за да публикувате отговор.

长期地址
遇到问题?请前往 GitHub 提 Issues。