This file contains 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
models.register(update({ | |
name : 'pixiv', | |
ICON : 'http://www.pixiv.net/favicon.ico', | |
check : function(ps){ | |
return (/(photo|link)/).test(ps.type) && ps.pageUrl.match(/^http:\/\/www\.pixiv\.net\/member_illust\.php/); | |
}, | |
getToken : function(){ | |
var status = this.updateSession(); | |
switch (status){ | |
case 'none': |
This file contains 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
var PLUGIN_INFO = | |
<VimperatorPlugin> | |
<name>{name}</name> | |
<description>Tomblooのサービスを利用してtumblrとhatenaのアカウントを切り替えます</description> | |
<minVersion>2.0pre</minVersion> | |
<maxVersion>2.0pre</maxVersion> | |
<author homepage="http://d.hatena.ne.jp/zaknak/">zaknak</author> | |
<require type="extension" id="[email protected]">Tombloo</require> | |
<version>0.1.3</version> | |
<detail><![CDATA[ |
This file contains 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
models.register({ | |
name : 'HatenaHaiku', | |
ICON : 'http://h.hatena.ne.jp/favicon.ico', | |
check : function(ps){ | |
return (/(regular|photo|quote|link|video)/).test(ps.type) && !ps.file; | |
}, | |
post : function(ps){ | |
if(ps.type != 'regular'){ | |
var body = joinText([ps.item, ps.itemUrl, ps.body, ps.description], '\n\n', true); |
This file contains 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 MoveHatebKanren | |
// @namespace http://d.hatena.ne.jp/zaknak/ | |
// @include http://b.hatena.ne.jp/entry/* | |
// ==/UserScript== | |
var elements = document.evaluate('//span[contains(@class,"pfi")]/parent::h2 | //span[contains(@class,"pfi")]/parent::h2/following-sibling::div',document,null,7,null); | |
if(elements.snapshotLength){ |
This file contains 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 NG | |
// @namespace http://d.hatena.ne.jp/zaknak/20080909/1220936155 | |
// @include http://reader.livedoor.com/reader/* | |
// @include http://fastladder.com/reader/* | |
// @version 0.0.12 | |
// ==/UserScript== | |
var w = (typeof unsafeWindow == 'undefined') ? window : unsafeWindow; | |
This file contains 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
var noun_type_opt = new CmdUtils.NounType('option', ['new','same']); | |
CmdUtils.CreateCommand({ | |
name : 'metab', | |
icon : 'http://b.hatena.ne.jp/favicon.ico', | |
description : 'Get Hatena bookmarks', | |
homepage : 'http://d.hatena.ne.jp/zaknak/20080927/1222524088', | |
author : { name: 'zaknak' }, | |
takes : { 'option' : noun_type_opt }, | |
cache : {}, | |
execute : function(argv){ |
This file contains 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 modify Favotter | |
// @namespace http://d.hatena.ne.jp/zaknak/ | |
// @include http://reader.livedoor.com/reader/ | |
// ==/UserScript== | |
var w = (typeof unsafeWindow == 'undefined') ? window : unsafeWindow; | |
var c = 0; | |
(function(){ | |
if(typeof w.register_hook != 'undefined'){ | |
w.register_hook("before_printfeed",function(feed){ |