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
// firefox shortcutkey | |
// bookmark a page to the folder named "ltr" | |
(function(){ | |
var bmsvc = Components.classes["@mozilla.org/browser/nav-bookmarks-service;1"].getService(Components.interfaces.nsINavBookmarksService); | |
var menuFolder = bmsvc.bookmarksMenuFolder; | |
var ios = Components.classes["@mozilla.org/network/io-service;1"].getService(Components.interfaces.nsIIOService); | |
//var newBkmkId = bmsvc.insertBookmark(getFolderId("ltr"), gBrowser.currentURI, bmsvc.DEFAULT_INDEX, ""); |
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
{- | |
RAZIEのお気に入りをDRAIEXに変換する | |
-} | |
import Data.ConfigFile | |
import Data.Either.Utils | |
import Data.Map | |
secds = [ | |
("NAME","Comment"), |
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 InoReaderTombloo | |
// @namespace http://d.hatena.ne.jp/serian | |
// @description derived from GoogleReader + Tombloo | |
// @include https://inoreader.com/* | |
// @version 0.0.1 | |
// ==/UserScript== | |
(function(){ | |
GM_addStyle(" \ |
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
Tombfix.Service.extractors.register([ | |
{ | |
name : 'IR', | |
getItem : function(ctx, getOnly){ | |
if(ctx.host != 'inoreader.com') | |
return; | |
var item = $x('ancestor-or-self::div[@class = "article_full_contents"]', ctx.target); | |
if(!item) | |
return; |
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
;;; region2howm.el --- copy a region to howm buffer. | |
;; Copyright (C) 2013 serian | |
;; Author: serian <serian> | |
;; Keywords: tools | |
;; This program is free software; you can redistribute it and/or modify | |
;; it under the terms of the GNU General Public License as published by | |
;; the Free Software Foundation, either version 3 of the License, or |
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
Delicious.ICON="http://delicious.com/img/favicon.ico"; | |
addAround(Delicious, 'post', function(proceed, args, self) { | |
var ps = args[0] = update({}, args[0]); | |
return self.getCurrentUser().addCallback(function(){ | |
return request('http://previous.delicious.com/save', { | |
queryString : { | |
title : ps.item, | |
url : ps.itemUrl, | |
} | |
}) |
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 cswapcolor | |
// @namespace http://d.hatena.ne.jp/serian/ | |
// @description change color of a part of Firefox depending on a selected id in cookieswap | |
// @include main | |
// ==/UserScript== | |
(function(){ | |
var colors = {"○○○":"green", "■■■":"red"}; | |
var tabs = document.getElementById("nav-bar"); |
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
#!/bin/python | |
# -*- coding: utf-8 -*- | |
"""ライブドアクリップやはてなブックマークからDeliciousへ | |
explain: | |
TAG_TOPはもとのSBMSの略号 | |
タグのセパレータは空白ではなくてコンマ | |
タグがない時はnotagタグを付ける | |
UTF8 | |
""" |
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
if (gFindBar.hidden == true) | |
{ | |
gFindBar.open(0); | |
gFindBar.startFind(); | |
} else { | |
gFindBar.close(); | |
} |
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
//tombloo patch for pocket (Formerly Read It Later) | |
models.register({ | |
name : 'Pocket', | |
ICON : 'http://getpocket.com/favicon.ico', | |
check : function(ps){ | |
return /quote|link/.test(ps.type); | |
}, | |
post : function(ps){ | |
return request('http://getpocket.com/edit.php').addCallback(function(res) { | |
var doc = convertToHTMLDocument(res.responseText); |
NewerOlder