Skip to content

Instantly share code, notes, and snippets.

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':
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[
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);
// ==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){
// ==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;
@zaknak
zaknak / metab.js
Created September 24, 2008 12:17
ubiquity user command
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){
// ==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){