Tampermonkey/tampermonkey

GM_addStyle breaks XML viewer in Firefox

Closed this issue · 1 comments

Probably related to #452. That thread seems not to be particular to GM_addStyle so I opened a new issue.

If you create a script that runs on XML pages and the script uses GM_addStyle to inject CSS code, the style element will break XML viewer.

For example:
https://www.w3schools.com/xml/note.xml

Stylus ended up using browser API to inject CSS code in this situation.

Specifications

  • Firefox Dev 65.0b12
  • TM: 4.8.5847
  • OS: Windows 7

Script

Any script that uses GM_addStyle.

Duplicate of #452