I tried to create a popup window in the extension that I pull through GreasyFork, but since there is only JS there, I can’t bring the window to the output. How can I create a popup window in js?
I tried to wrap it in a function and substitute it in my own execution conditions, but how to attach the rest? if they are not considered in js? enter image description here I also tried that, but it doesn't work either enter image description here
İf you want open a new window:
chrome.windows.create({
url: 'popup.html',
type: 'popup', width: 400, height: 400,
});
İf you want open with on new tab:
chrome.tabs.create({ url:"popup.html" });
But you must add "tabs" permission to use this method.