Bug 512709

Summary: Greasemonkey directive GM_addStyle upon CSP restriction
Product: [Applications] Falkon Reporter: Schimon Jehudah <sch>
Component: extensionsAssignee: Unassigned bugs <unassigned-bugs-null>
Status: REPORTED ---    
Severity: wishlist    
Priority: NOR    
Version First Reported In: 25.08.3   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
See Also: https://github.com/erosman/firemonkey/issues/12
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Bug Depends on: 497082    
Bug Blocks:    

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