Commit 05fe5a3e authored by Leon Schmidt's avatar Leon Schmidt
Browse files

Initial commit (can open incognito tabs)

parents
{
"name": "Auto Incognito",
"version": "0.1",
"description": "Automatically opens specific web pages in an incognito tab!",
"manifest_version": 2,
"browser_action": {
"default_popup": "popup.html"
},
"permissions": [
"activeTab"
]
}
\ No newline at end of file
<!DOCTYPE html>
<html>
<head>
<title>Auto Incognito</title>
</head>
<body>
<p>Senf</p>
<button id="button">Click me!</button>
<pre id="lol"></pre>
<script src="./pupup.js"></script>
</body>
</html>
\ No newline at end of file
document.getElementById("button").addEventListener("click", () => {
/*chrome.tabs.getSelected(null, (tab) => {
document.getElementById("lol").innerHTML = JSON.stringify(tab, null, 4)
})*/
document.getElementById("lol").innerHTML = JSON.stringify(chrome.tabs, null, 4)
chrome.windows.create({
url: "https://leon.wtf",
incognito: true
})
})
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment