lisonge / vite-plugin-monkey

A vite plugin server and build your.user.js for userscript engine like Tampermonkey, Violentmonkey, Greasemonkey, ScriptCat
MIT License
1.31k stars 70 forks source link

fix: GM_log param type #93

Closed andywang425 closed 1 year ago

andywang425 commented 1 year ago

According to my tests, GM_log in tampermonkey acts similarly to console.log. It's description on https://www.tampermonkey.net/documentation.php#api:GM_log is not accurate.

GM_log({a:1}, '123') // OK
GM_log('%d', 1) // doesn't support, prints "%d 1"

Tested on Tampermonkey v4.19.0.

netlify[bot] commented 1 year ago

Deploy Preview for vite-plugin-monkey ready!

Name Link
Latest commit cdf845d8b20b3af7043defd6ac421cc4ecafa0c1
Latest deploy log https://app.netlify.com/sites/vite-plugin-monkey/deploys/64a6e2234be89c000817dcf3
Deploy Preview https://deploy-preview-93--vite-plugin-monkey.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

lisonge commented 1 year ago

released by v3.3.0