Last active
May 17, 2024 01:52
-
-
Save cpojer/0b12cc2f5f2485ecc2c3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<style type="text/css"> | |
body { | |
margin: 0; | |
} | |
iframe { | |
bottom: 0; | |
left: 0; | |
position: absolute; | |
right: 0; | |
top: 0; | |
} | |
</style> | |
</head> | |
<body> | |
<iframe src="/path/to/devtools" width="100%" height="100%" seamless></iframe> | |
</body> | |
</html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<script type="text/javascript" src="main.js"></script> | |
</head> | |
<body> | |
</body> | |
</html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function createMainPanel() { | |
chrome.devtools.panels.create('My DevTools', 'icon.png', 'main-panel.html', function(panel) {}); | |
} | |
createMainPanel(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"manifest_version": 2, | |
"name": "My Devtools", | |
"description": "Devtools.", | |
"version": "0.0.1", | |
"icons": { | |
"48": "icons/icon48.png", | |
"128": "icons/icon128.png" | |
}, | |
"devtools_page": "main.html", | |
"content_security_policy": "script-src 'self' 'unsafe-eval' https://some.domain; object-src 'self' https://some.domain", | |
"permissions": ["https://*.some.domain/", "*://*/*"] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment