§
Δημοσιεύτηκε: 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。