-
-
Save neetsdkasu/ca01b1a0ec3d87cc581f3913a8f88aa2 to your computer and use it in GitHub Desktop.
control my interestings on Hatena bookmark
This file contains 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": "control my interestings on Hatena bookmark", | |
"version": "1.0", | |
"author": "Leonardone", | |
"description": "control my interestings on Hatena bookmark", | |
"icons" : { | |
"48": "icon.png", | |
"96": "icon2.png" | |
}, | |
"content_scripts": [ | |
{ | |
"matches": ["*://b.hatena.ne.jp/*"], | |
"js": ["script.js"], | |
"run_at": "document_start" | |
} | |
] | |
} |
This file contains 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
// script.js | |
// control my interestings on Hatena bookmark | |
// control my interestings on Hatena bookmark | |
// author: Leonardone | |
const loc = window.location; | |
if (loc.toString().indexOf("neetsdkasu") < 0) { | |
const url = 'https://b.hatena.ne.jp/neetsdkasu/'; | |
loc.replace(url); | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment