Skip to content

弃掉 GM_openInTab {useOpen: true} #863

@cyfung1031

Description

@cyfung1031

#178

概念问题
不是 offscreen window.open("protocol://xxxx")
是 service_worker chrome.tab.create("redirect.html?url=protocol://xxxx")location.replace

因为目标是非 http https file 等协议
所以不需要额外 options
直接用scheme判断就行

(即忽略 useOpen 设定)


1) 弹警告问题
2) chrome.tab.create 的打开网址限制 (
chrome-extension://apmmpaebfobifelkijhaljbmpcgbjbdo/manage.html#stylus-options
moz-extension://da7197d4-4117-4ec3-ad91-8bcacd815466/manage.html#stylus-options
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions