Skip to content

Instantly share code, notes, and snippets.

@Sixeight
Forked from hitode909/coconutsfine.user.js
Created February 22, 2009 09:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Sixeight/68420 to your computer and use it in GitHub Desktop.
Save Sixeight/68420 to your computer and use it in GitHub Desktop.
// ==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