Skip to content

Possibly injects too late for some scripts to run successfully? #183

@fortinmike

Description

@fortinmike

It seems like things might be injected too late for some userscripts to work properly.

For example, Simple YouTube Age Restriction Bypass fails to run due to the script running after YouTube defines some "non-configurable properties" which are then locked for modification.

A collaborator hints that it's probably not working because it runs too late:
zerodytrash/Simple-YouTube-Age-Restriction-Bypass#102

What is your take on this? Could injecting scripts be done earlier in the page's lifetime to make userscripts such as this one work? Can something be done within the script itself? I'm guessing this is not the only userscript that's affected by this, if this is indeed something specific to Userscripts (the app).

Thanks!

System Information:

macOS version: 12.1 (21C52)
Userscripts version: 3.3.1
Safari version: 15.2 (17612.3.6.1.6)
Is this issue related to script injection? YES
Did the test script (pasted above) successfully run on your machine? YES

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions