Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
// ==UserScript==
// @name coconutsfine
// @namespace http://d.hatena.ne.jp/coconutsfine/
// @description visit my page!!!
// @include *
// ==/UserScript==
(function () {
var mypage = 'http://d.hatena.ne.jp/coconutsfine/'
if(window.location.href.match(mypage) ){
alert("俺のページにようこそ!!");
}else{
while (!window.confirm("俺のページに来てください!!"));
window.location.href = mypage
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment