Skip to content

Instantly share code, notes, and snippets.

@kainlite
Created June 18, 2015 02:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kainlite/dde05645f90158b43624 to your computer and use it in GitHub Desktop.
Save kainlite/dde05645f90158b43624 to your computer and use it in GitHub Desktop.
Chrome extension
var iframeContentBody = document.getElementById('contentBody');
var innerDocContentBody = iframeContentBody.contentWindow.document;
var iframeRawContent = innerDocContentBody.getElementById('rawContent');
var innerDocRawContent = iframeRawContent.contentWindow.document;
console.log(iframeRawContent.messages);
{
"manifest_version": 2,
"name": "Read Comments",
"description": "Read all comments from the current forum",
"version": "1.0",
"content_scripts": [{
"matches": ["*://*.forum.net/*", "*://localhost/*"],
"js": ["content.js"]
}],
"browser_action": {
"default_title": "Read Comments"
},
"permissions": ["activeTab","tabs"]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment