aboutsummaryrefslogtreecommitdiffstats
path: root/ldr_unread_counter.js
diff options
context:
space:
mode:
authorteramako2009-02-20 18:18:57 +0000
committerteramako2009-02-20 18:18:57 +0000
commit0b901855cd596445b9e5f86d911e415a2c76847f (patch)
tree7e7b27392e3487a4ba7962196459430d90b60730 /ldr_unread_counter.js
parentdef0c4ef563bc8d013246a5d95e97d49127c4198 (diff)
downloadvimperator-plugins-0b901855cd596445b9e5f86d911e4
* add option -event
* Google Reader, Google Calendarに対応..したと思う git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@30395 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'ldr_unread_counter.js')
0 files changed, 0 insertions, 0 deletions
an class="cm"> * :feedgooglereader, :fgr * -> feed Google Reader * http://www.google.com/reader * * :feedfastladder, :ffl * -> feed Fastladder * http://fastladder.com * * :feedlivedoorreader, :fldr * -> feed livedoor Reader * http://reader.livedoor.com/ * * HISTORY * 2008/11/10 ver 0.10 - initial written * * */ ( function () { // for Google Reader commands.addUserCommand( ['feedgooglereader', 'fgr'], 'feed current site URL to Google Reader', function () { let doc = content.document; let b = doc.body; let GR________bookmarklet_domain = 'http://www.google.com'; if (b && ! doc.xmlVersion){ let z = doc.createElement('script'); z.src = 'http://www.google.com/reader/ui/subscribe-bookmarklet.js'; z.type = 'text/javascript'; b.appendChild(z); } else { liberator.open( 'http://www.google.com/reader/view/feed/' + encodeURIComponent(liberator.modules.buffer.URL), (options['newtab'] && options.get('newtab').has('all')) ? liberator.NEW_TAB : liberator.CURRENT_TAB ); } }, {} ); // for Fastladder commands.addUserCommand( ['feedfastladder', 'ffl'], 'feed current site URL to Fastladder', function () { liberator.open( 'http://fastladder.com/subscribe/' + liberator.modules.buffer.URL, (options['newtab'] && options.get('newtab').has('all')) ? liberator.NEW_TAB : liberator.CURRENT_TAB ); }, {} ); // for livedoor Reader commands.addUserCommand( ['feedlivedoorreader', 'fldr'], 'feed current site URL to livedoor Reader', function () { liberator.open( 'http://reader.livedoor.com/subscribe/' + liberator.modules.buffer.URL, (options['newtab'] && options.get('newtab').has('all')) ? liberator.NEW_TAB : liberator.CURRENT_TAB ); }, {} ); })(); // vim:sw=4 ts=4 et: