Created
July 25, 2009 03:20
-
-
Save cherenkov/154674 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name LDR_entry_widgets_test | |
| // @namespace http://d.hatena.ne.jp/Cherenkov/ | |
| // @include http://reader.livedoor.com/reader/ | |
| // ==/UserScript== | |
| //未読エントリーの表示数が11件くらいで止まっちゃう。なんでや。 | |
| //<script>alert("load")</script>のように、scriptタグを | |
| //そのまま書いても実行されないのでサンプルでは | |
| //<script>console.log("entry_load")</script>を | |
| //base64化してiframeにつっこんだ。 | |
| (function(){ | |
| var w = (typeof unsafeWindow == 'undefined') ? window : unsafeWindow; | |
| w.entry_widgets.add('test', function(feed, item){ | |
| return [ | |
| '<iframe src="data:text/html;charset=utf-8;base64,PHNjcmlwdD4NCmNvbnNvbGUubG9nKCJlbnRyeV9sb2FkIikNCjwvc2NyaXB0Pg%3D%3D"', | |
| '</irame>' | |
| ].join(''); | |
| }); | |
| })(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment