Changeset 3130
- Timestamp:
- 12/14/07 17:09:47 (6 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
lang/javascript/userscripts/hatena.haiku.usetumblrinsteadoffotolife.user.js
r3127 r3130 3 3 // @description Use tumblr to post illusts instead of fotolife 4 4 // @namespace http://lowreal.net/ 5 // @include http://h.hatena.ne.jp/ 5 // @include http://h.hatena.ne.jp/* 6 6 // ==/UserScript== 7 7 … … 89 89 location.href = "javascript:(function () { if (window.console) console.log.apply(console.log, "+o.toSource()+") })();"; 90 90 } 91 } 91 92 if (!arguments.callee.element) { 93 arguments.callee.element = h("<div style='position:fixed;top:0;left:0;background:#000;color:#fff;padding:0 0.5em;'/>").firstChild; 94 document.body.appendChild(arguments.callee.element); 95 } 96 arguments.callee.element.innerHTML = escapeHTML(m); 97 } 98 99 function escapeHTML (str) { 100 var map = { "&" : "&", "<" : "<" , ">" : ">"}; 101 return str.replace(/[&<>]/g, function (m) { 102 return map(m); 103 }); 104 }; 105 106 92 107 93 108 function $N(name, attr, childs) {
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)