Skip to content

Instantly share code, notes, and snippets.

@cpojer
Last active August 29, 2015 14:27
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cpojer/0b12cc2f5f2485ecc2c3 to your computer and use it in GitHub Desktop.
Save cpojer/0b12cc2f5f2485ecc2c3 to your computer and use it in GitHub Desktop.
<!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>
<!doctype html>
<html>
<head>
<script type="text/javascript" src="main.js"></script>
</head>
<body>
</body>
</html>
function createMainPanel() {
chrome.devtools.panels.create('My DevTools', 'icon.png', 'main-panel.html', function(panel) {});
}
createMainPanel();
{
"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