Skip to content

Instantly share code, notes, and snippets.

@tanabe
Created September 4, 2009 04:53
Show Gist options
  • Save tanabe/180736 to your computer and use it in GitHub Desktop.
Save tanabe/180736 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name Dokodemo Ikemen Clock
// @namespace http://kaihatsubu.com/
// @description display ikemen clock anywhere
// @include http://*
// @include https://*
// ==/UserScript==
(function() {
function initialize() {
(function(){var d = new Date();var t = d.getHours() * 60 + d.getMinutes();if(t < 1000){t='0'+t}; var url='http://orega.tv/images/m' + t + '.jpg';var e = document.createElement("img");e.src=url;document.body.appendChild(e);e.style.position = 'absolute';e.style.top = '0px';e.style.left = '0px';})()
window.removeEventListener("load", initialize);
}
window.addEventListener("load", initialize, true);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment