Skip to content

Strict Mode wrapper prevents @require libs from working #362

Description

@LeoNatan

Hello,

Some change, be it an OS update or a Userscripts update, has broken one of my scripts, on macOS and iOS. I have been on iOS 16 betas for a while, and I think the script worked in that period, and only recently stopped working, so I suspect it’s a change in Userscripts.

The exception thrown:

TypeError: 'arguments', 'callee', and 'caller' cannot be accessed in this context.

Screenshot 2022-10-28 at 11 43 57

The script:
https://raw.githubusercontent.com/LeoNatan/NFOHump/master/EmbedVideos/NFOHumpEmbedVideos.user.js

Can be tested on:
https://www.nfohump.com/forum/viewtopic.php?t=114985

System Information:

macOS or iOS version: 13.1 Beta, 16.2 Beta
Userscripts version: 4.3.1 (62)
Safari version: Version 16.1 (18614.3.2.11.2)
Is this issue related to script injection? Yes
Did the test script (pasted above) successfully run on your machine? Yes

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingmaintenanceChores and refactoring

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions