does anyone know how to replace JavaScript on a site with Greasemonkey ie.
This is the default code:
var Test="1";
And i want to replace it like this on the page load:
var Test="2";
Thanks in advance!
假设Test是全局变量,请在用户脚本中尝试以下操作:
unsafeWindow.Test="2";
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.