Skip to content

Instantly share code, notes, and snippets.

@958
958 / gist:8287
Created September 1, 2008 09:56
[Ubiquity]google-history-search
makeSearchCommand({
name: "google-history",
url: "http://www.google.com/history/find?q={QUERY}",
icon: "http://www.google.com/favicon.ico",
description: "Searches google history for your words.",
preview: function(prev, index) {
var query = index.text;
prev.innerHTML = "Searching for...";
var url = "http://www.google.com/history/find";
var params = {q: query, output: 'rss'};
@958
958 / gist:8356
Created September 1, 2008 23:40
[Ubiquity]hatena-bookmark-post
CmdUtils.CreateCommand({
name: 'hateb-post',
icon: 'http://b.hatena.ne.jp/favicon.ico',
takes: {'comment': noun_arb_text},
execute: function(directObj){
var comment = directObj.text;
var curURL = context.focusedWindow.document.location.href;
jQuery.ajax({
type: 'GET',
url: 'http://b.hatena.ne.jp/add',
@958
958 / twit.js
Created January 22, 2009 02:31
[Sleipnir]Twitter Post Action
(function(){
// --- user customize start ---
var showMessage = true; // show result message
var fromAddressBar = true; // true:address bar, false:prompt
// --- user customize end ---
var TwitPost = function(){this.initialize.apply(this, arguments);};
TwitPost.prototype = {
initialize:function(status){
this.post(status);
@958
958 / QRcodeSuperView.js
Created January 22, 2009 02:34
[Sleipnir]Show QRCode on SuperView Action
sleipnir.API.ExecuteAction('SuperDragShowSuperView("http://chart.apis.google.com/chart?chs=150x150&cht=qr&chl='+encodeURIComponent(location.href)+'")');
@958
958 / HatenaBookmarkAddPageSuperView.js
Created January 22, 2009 02:35
[Sleipnir]Show Hatena Bookmark Add Page on SuperView Action
sleipnir.API.ExecuteAction('SuperDragShowSuperView("http://b.hatena.ne.jp/add?mode=confirm&is_bm=1&url='+_window.location.href+'")');
@958
958 / AddToShootingStarActiveLink.js
Created January 22, 2009 02:36
[Sleipnir]Add ActiveLink to ShootingStar Action
@958
958 / HatenaBookmarkShowDetailsPageSuperView.js
Created January 22, 2009 02:37
[Sleipnir]Show Hatena Bookmark Details Page on SuperView Action
sleipnir.API.ExecuteAction('SuperDragShowSuperView("http://b.hatena.ne.jp/entry/'+_window.location.href+'")');
@958
958 / knout.user.js
Created January 22, 2009 04:24
[Sleipnir]kwout for SeaHorse
// ==UserScript==
// @name kwout for SeaHorse
// @description A brilliant way to quote
// @include http://twitter.com/*
// @include http://*jaiku.com/*
// @include http://*tumblr.com/*
// @include http://favotter.matope.com/*
// ==/UserScript==
// modified for seahorse by 958
@958
958 / cancel.js
Created January 22, 2009 02:26
[Sleipnir]Cancel Action
try{(function(){
// Stop Action
sleipnir.API.ExecuteAction('Stop');
// Closed SuperView
sleipnir.API.ExecuteAction('SuperDragCloseSuperView');
if ((!document) || (!document.body)) return;
// Get active flame
var win = (function(win) {
var doc = win.document; var ae = doc.activeElement;
if (ae.tagName.match(/FRAME|IFRAME/i)) {
@958
958 / backup.js
Created January 22, 2009 02:28
[Sleipnir]Backup Action
(function() {
// Backup directory path
var baseDir = 'd:\\temp\\backup\\';
// Use save dialog
var useDialog = false;
// make file name
var now = new Date();
var baseName =
((now.getYear() < 2000) ? (now.getYear() + 1900).toString() : now.getYear().toString()) +