How to change numbers on a webpage using tampermonkey?

Is there a way to edit numbers on a webpage using tamper monkey? It is in a table and I can't change it looping through a replace function.

Thank you!

1 Answer

Relevance
  • Chris
    Lv 7
    4 months ago

    Something like

    const cell = document.querySelector( "#thetable tr:nth-child(3) td:nth.child(5)" );

    cell.textContent = 123;

    • Login to reply the answers
Still have questions? Get your answers by asking now.