LDR29
by
june29
2010-12-09 [2010/12/09 12:00:23]
Customize LDR's keybind and view
@@ -5,6 +5,9 @@
*/
(function() {
+
+ // style
+
var styles = ['#header, #control, #menu, #footer { display: none !important; }',
'#subs_toolbar, #subs_buttons, #subs_search { display: none !important; }',
'#ads_bottom { display: none !important; }'
@@ -20,4 +23,37 @@
div.setAttribute('style', 'height: 50px; padding-left: 35px; background-color: #fff;');
subs_tools.appendChild(div);
div.appendChild(running_man);
+
+ // keybind
+
+ Keybind.add("j",Control.go_next);
+ Keybind.add("k",Control.go_prev);
+
+ Keybind.add('p', function(){
+ Control.pin();
+ Control.go_next();
+ })
+
+/*
+ Keybind.add('o', function(){
+ var item = get_active_item(true);
+ if (!item) return;
+ setTimeout(GM_openInTab,0,item.link);
+ Control.go_next();
+ })
+
+ Keybind.add('M', function(){
+ var queue = new Queue();
+ get_active_feed().items.forEach(function(item){
+ queue.push(function(){
+ setTimeout(GM_openInTab,0,item.link);
+ });
+ });
+ queue.interval = 200;
+ queue.exec();
+ })
+*/
+
+ Keybind.remove("b");
+ Keybind.remove("i");
})();
/*
* @title LDR29
* @description Customize LDR's keybind and view
* @include http://reader.livedoor.com/reader/
*/
(function() {
// style
var styles = ['#header, #control, #menu, #footer { display: none !important; }',
'#subs_toolbar, #subs_buttons, #subs_search { display: none !important; }',
'#ads_bottom { display: none !important; }'
];
var style = document.createElement('style');
style.innerHTML = styles.join('\n');
document.body.appendChild(style);
var running_man = document.getElementById('message_box');
var subs_tools = document.getElementById('subs_tools');
var div = document.createElement('div');
div.setAttribute('style', 'height: 50px; padding-left: 35px; background-color: #fff;');
subs_tools.appendChild(div);
div.appendChild(running_man);
// keybind
Keybind.add("j",Control.go_next);
Keybind.add("k",Control.go_prev);
Keybind.add('p', function(){
Control.pin();
Control.go_next();
})
/*
Keybind.add('o', function(){
var item = get_active_item(true);
if (!item) return;
setTimeout(GM_openInTab,0,item.link);
Control.go_next();
})
Keybind.add('M', function(){
var queue = new Queue();
get_active_feed().items.forEach(function(item){
queue.push(function(){
setTimeout(GM_openInTab,0,item.link);
});
});
queue.interval = 200;
queue.exec();
})
*/
Keybind.remove("b");
Keybind.remove("i");
})();
- Permalink
- このページへの個別リンクです。
- RAW
- 書かれたコードへの直接のリンクです。
- Packed
- 文字列が圧縮された書かれたコードへのリンクです。
- Userscript
- Greasemonkey 等で利用する場合の .user.js へのリンクです。
- Loader
- @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
- Metadata
- コード中にコメントで @xxx と書かれたメタデータの JSON です。