blob: 1bdd34ffd6fa2f2bb74dd9002377ff61b729eb64 [file] [log] [blame]
{
"name": "Content scripts that destroy their frame",
"manifest_version": 2,
"version": "1",
"content_scripts": [{
"run_at": "document_start",
"all_frames": true,
"match_about_blank": true,
"js": ["remove_self.js"],
// URL of the parent frame.
"matches": ["*://*/*.html?blankstart*"]
}, {
"run_at": "document_end",
"all_frames": true,
"match_about_blank": true,
"js": ["flag_document_end.js", "remove_self.js"],
// URL of the parent frame.
"matches": ["*://*/*.html?blankend*"]
}, {
"run_at": "document_start",
"all_frames": true,
"js": ["remove_self.js"],
// 1st URL for the parent frame, second URL for the child frame.
"matches": ["*://*/*.html?start*", "*://*/*?child*"]
}, {
"run_at": "document_end",
"all_frames": true,
"js": ["flag_document_end.js", "remove_self.js"],
// 1st URL for the parent frame, second URL for the child frame.
"matches": ["*://*/*.html?end*", "*://*/*?child*"]
}],
"permissions": ["*://*/*", "webNavigation"]
}