Greasy Fork is available in English.

Discussions » Development

How to edit a webpage script automatically?

§
Posted: 2022.08.28.

Hello everyone,

I would need to know how I can edit the script below:

div id = "viewVideo" style = "display: none;" class = "place-bid" bis_skin_checked = "1"

I would like that every time I visit the web page I can get this change (style = "display;") automatically as seen below:

div id = "viewVideo" style = "display;" class = "place-bid" bis_skin_checked = "1"

I know it's a very simple script to write but unfortunately I don't know the java language, I hope some of you can help me. Thank you.

§
Posted: 2022.08.28.
Edited: 2022.08.28.

document.querySelector("#viewVideo").style.display = ' ';

Post reply

Sign in to post a reply.