Skip to content

Foxy Gestures User Scripts

stoically edited this page Feb 24, 2018 · 2 revisions

You can use the API in Foxy Gesture User Scripts:

Open New Temporary Container Tab

browser.runtime.sendMessage('{c607c8df-14a7-4f28-894f-29e8722976af}', {
    method: 'createTabInTempContainer'
});

Open Link in New Temporary Container Tab

const url = data.element && data.element.linkHref;
if (url) {
    browser.runtime.sendMessage('{c607c8df-14a7-4f28-894f-29e8722976af}', {
        method: 'createTabInTempContainer',
        active: true,
        url
    });
}

Open Link in New Background Temporary Container Tab

const url = data.element && data.element.linkHref;
if (url) {
    browser.runtime.sendMessage('{c607c8df-14a7-4f28-894f-29e8722976af}', {
        method: 'createTabInTempContainer',
        active: false,
        url
    });
}
Clone this wiki locally