violentmonkey: `GM_addElement` missing

What is the problem?

Scripts that use GM_addElement are completely broken 😦

How to reproduce it?

  1. Install https://raw.githubusercontent.com/SNDST00M/material-dynmap/main/src/user.js
  2. Open https://mc.westeroscraft.com
  3. Watch the console get lit like a Christmas tree

What is the expected result?

https://www.tampermonkey.net/documentation.php#GM_addElement

What is the actual result?

Doesn’t work and borks the whole script.

What is the result in the upcoming release?

Identical result, there’s been no work in this avenue.

Environment

  • Browser: Edge.
  • Browser version: 92.0
  • Violentmonkey version: 2.13.0
  • OS: Windows 10 Home 20H2

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 23 (11 by maintainers)

Commits related to this issue

Most upvoted comments

I recently stumbled across https://github.com/Tampermonkey/tampermonkey/issues/881 for the CSP issue. It’s probably why modifying GitHub locally necessitate(d) a custom extension.