Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
sfi0zy committed Sep 2, 2016
0 parents commit 742615b
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 0 deletions.
2 changes: 2 additions & 0 deletions blank-protector.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
window.opener = null;
console.log('Your window opener is protected.');
Binary file added icon128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icon16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icon48.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "BlankProtector",
"manifest_version": 2,
"version": "1.0.0",
"description": "Sets window.opener on every page to null to avoid phishing attacks based on target _blank vulnerability",
"permissions": ["tabs", "http://*/*"],
"content_scripts": [
{
"matches": ["http://*/*"],
"js": ["blank-protector.js"],
"run_at": "document_start"
}
],
"icons": {
"16": "icon16.png",
"48": "icon48.png",
"128": "icon128.png"
}
}

0 comments on commit 742615b

Please sign in to comment.