Created
February 22, 2009 07:04
-
-
Save hitode909/68373 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
// ==UserScript== | |
// @name coconutsfine | |
// @namespace http://d.hatena.ne.jp/coconutsfine/ | |
// @description visit my page!!! | |
// @include * | |
// ==/UserScript== | |
var mypage = 'http://d.hatena.ne.jp/coconutsfine/' | |
if(window.location.href.match(mypage) ){ | |
alert("俺のページにようこそ!!"); | |
}else{ | |
alert("俺のページに来てください!!"); | |
window.location.href = mypage | |
} | |
// うまくいかなかった | |
// var visit = function(mypage){ | |
// window.location.href = mypage | |
// } | |
// if(window.location.href.match(mypage) ){ | |
// alert("俺のページにようこそ!!"); | |
// }else{ | |
// if(confirm("俺のページに来てください!!")){ | |
// visit(mypage); | |
// } | |
// } | |
// GM_registerMenuCommand('Visit now!!', visit(mypage)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment