Bug 512709 - Greasemonkey directive GM_addStyle upon CSP restriction
Summary: Greasemonkey directive GM_addStyle upon CSP restriction
Status: REPORTED
Alias: None
Product: Falkon
Classification: Applications
Component: extensions (other bugs)
Version First Reported In: 25.08.3
Platform: Arch Linux Linux
: NOR wishlist
Target Milestone: ---
Assignee: Unassigned bugs
URL:
Keywords:
Depends on: 497082
Blocks:
  Show dependency treegraph
 
Reported: 2025-11-28 05:31 UTC by Schimon Jehudah
Modified: 2025-11-28 05:32 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Schimon Jehudah 2025-11-28 05:31:27 UTC
SUMMARY

I utilize the directive `GM_addStyle` which is applied upon CSP restriction.

https://greasyfork.org/scripts/465932-newspaper-syndication-feed-reader/diff?v1=1703314&v2=1702746

Previously, I used to iterate CSS propertoes and attach them inline to their respective elements, yet the method of inline CSS it is unable to apply "pseudo" directives; so, `GM_addStyle`, and perhaps `GM_addElement` serve that cause better.

The directive `GM_addStyle` under CSP works as expected with ScriptCat, Tampermonkey, and Violent Monkey.

STEPS TO REPRODUCE

1. Install https://greasyfork.org/scripts/465932-newspaper-syndication-feed-reader
2. Navigate https://metalhead.club/@error.rss

OBSERVED RESULT

CSS stylesheet is not applied.

EXPECTED RESULT

CSS stylesheet is applied as at https://falkon.org/index.xml

SOFTWARE/OS VERSIONS

Linux: Arch Linux and i3 (X11/Xorg)
Qt Version: 6.10.1

ADDITIONAL INFORMATION

https://github.com/erosman/firemonkey/issues/12