async function setAfterCurrent() {
let result = await browser.browserSettings.newTabPosition.set({
value: "afterCurrent",
});
console.log(`Result: ${result}`);
let newValue = await browser.browserSettings.newTabPosition.get({});
console.log(`New value: ${newValue.value}`);
}browserSettings.newTabPosition / notebook
browserSettings.newTabPosition
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.