Skip to content

定时脚本使用 GM_openInTab() 会多次打开 #147

@zhongsir98

Description

@zhongsir98

初步判断 一个GM_openInTab 会打开三次页面,(chrome \edge 其他未测试)

// ==UserScript==
// @name 定时任务,作为打开页面功能
// @namespace https://bbs.tampermonkey.net.cn/
// @Version 0.1.0
// @description try to take over the world!
// @author You
// @crontab 0 21 * * *
// @grant GM_openInTab
// ==/UserScript==

return new Promise((resolve, reject) => {
// Your code here...
GM_openInTab('https://www.baidu.com')
resolve();
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions