Hatena::Let title separator
@@ -1,11 +1,16 @@
/*
- * @title Hatena::LetのタイトルとEditとかDeleteの間に改行
- * @description タイトルそのまま
- * @include http://let.hatelabo.jp*
- * @license MIT License
+ * @title Hatena::Let title separator
+ * @description append line-break to title on Hatena::Let
+ * @include http://let.hatelabo.jp/*
+ * @contributor mafucode http://let.hatelabo.jp/mafucode/let/gYC-x8aVsIr6EA (Fork of)
+ * @author noromanba
+ * @license MIT License http://opensource.org/licenses/MIT
* @require
*/
-if(document.getElementById("bookmarklet-title")){
-document.querySelector('#bookmarklet-title span.title span span.edit-navi').outerHTML="<br/>"+document.querySelector('#bookmarklet-title span.title span span.edit-navi').outerHTML;
-}
+(function () {
+ var title = document.querySelector('#bookmarklet-title .title .edit-navi');
+ if (!title) return;
+
+ title.parentNode.insertBefore(document.createElement('br'), title);
+})();
/*
* @title Hatena::Let title separator
* @description append line-break to title on Hatena::Let
* @include http://let.hatelabo.jp/*
* @contributor mafucode http://let.hatelabo.jp/mafucode/let/gYC-x8aVsIr6EA (Fork of)
* @author noromanba
* @license MIT License http://opensource.org/licenses/MIT
* @require
*/
(function () {
var title = document.querySelector('#bookmarklet-title .title .edit-navi');
if (!title) return;
title.parentNode.insertBefore(document.createElement('br'), title);
})();
- Permalink
- このページへの個別リンクです。
- RAW
- 書かれたコードへの直接のリンクです。
- Packed
- 文字列が圧縮された書かれたコードへのリンクです。
- Userscript
- Greasemonkey 等で利用する場合の .user.js へのリンクです。
- Loader
- @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
- Metadata
- コード中にコメントで @xxx と書かれたメタデータの JSON です。