Add addon: contextMenuWindow

This commit is contained in:
Fierelier 2023-01-10 15:26:43 +01:00
parent 6f2b747e0c
commit 9306959dfe
1 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1,9 @@
def newAction(status):
browser = mfp.require("browser")
browser.windows.append(mfp.require("browser").module.require(mfp.p("window","browser.py")).create("about:blank"))
def addNew(status):
status.addon.addItem(status,"New window",newAction)
eventHandler = mfp.Bunch()
eventHandler["contextMenu:created"] = addNew