Skip to content

Remove unknown named targets #5

@Exagone313

Description

@Exagone313

When an unknown name is used as a target, link is opened in a new tab.

Currently, the extension only removes targets starting by _, but some sites use wrong values for target such as blank or new.

Valid names can be retrieved from window.frames array and its members' own frames property recursively.

PS: This would probably break a website adding links before frames are created/loaded.

I'd like to look into submitting a PR.

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