Greasy Fork is available in English.

讨论 » 开发

How to edit a webpage script automatically?

§
发表于: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.

§
发表于:2022-08-28
编辑于:2022-08-28

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

发表回复

登录以发表回复。