Skip to content

Instantly share code, notes, and snippets.

CmdUtils.CreateCommand({
name: "preview-browser-security-check",
preview: function(pblock) {
pblock.ownerDocument.defaultView.location = 'javascript:0,'+ function(){
document.write('<p style="color:#eee;background:#000">'+
top.Application);
document.close();
} +'()';
},
});
@satyr
satyr / wolframalpha.ubiq.js
Created May 29, 2009 21:44
[Ubiquity] Wolfram|Alpha in preview
const WA = 'http://www.wolframalpha.com/';
CmdUtils.CreateCommand({
name: 'wolframalpha',
description: (
<a href={WA} style={<![CDATA[
background:
url('http://www.wolframalpha.com/images/basicSprite.png')
white no-repeat scroll 1px -145px;
display:inline-block; vertical-align:middle;
width:352px; height:42px; z-index:-1;
We couldn’t find that file to show.
diff --git a/ubiquity/modules/feedaggregator.js b/ubiquity/modules/feedaggregator.js
--- a/ubiquity/modules/feedaggregator.js
+++ b/ubiquity/modules/feedaggregator.js
@@ -98,17 +98,19 @@ function FeedAggregator(feedManager, mes
}
}
};
self.refresh = function FA_refresh() {
/*
=skin=
@name Custom
@author You
@homepage http://www.yourpage.com
@email [email protected]
@license MPL/LGPL/GPL
=/skin=
/* appjet:version 0.1 */
import('storage', 'lib-at0m', 'dlog', 'cron');
const
Skr = 'http://shokenro.jp/',
Author = Atom.Person('筒井康隆', {uri: 'http://www.jali.or.jp/tti/'}),
Rights = 'Yasutaka Tsutsui',
Title = '笑犬楼大通り 偽文士日碌',
Cover = 'http://shokenro.jp/shokenro/book-cover/',
Icon = 'http://shokenro.jp/tmp-img/favicon.ico';
@satyr
satyr / gist_logs.user.js
Created May 6, 2009 22:13
Shows commit logs on Gist.
// ==UserScript==
// @name gist logs
// @namespace http://d.hatena.ne.jp/murky-satyr
// @description Shows commit logs on Gist.
// @include https://gist.github.com/*
// @license WTFPL
// ==/UserScript==
Array.forEach(document.querySelectorAll('#revisions .id'), function(a){
GM_xmlhttpRequest({
method: 'get', url: 'https://raw.github.com/gist'+ a.pathname +'/meta',
@satyr
satyr / gist_diff.user.js
Created May 5, 2009 22:40 — forked from ucnv/README.md
Diffs on Gist with google-diff-match-patch
// ==UserScript==
// @name gist diff
// @namespace http://github.com/satyr
// @description Shows diffs on Gist with google-diff-match-patch.
// @include https://gist.github.com/*
// @require https://raw.github.com/gist/105908
// @require https://google-diff-match-patch.googlecode.com/svn/trunk/javascript/diff_match_patch.js
// @fork_of http://gist.github.com/105913
// @check_also http://gist.github.com/107780
// ==/UserScript==
@satyr
satyr / autocopy.ubiq.js
Created May 5, 2009 16:09
Automatically copies the selected text on Ubiquity panel.
function startup_autocopy(){function cmd_(){}
getU(autocopy);
function autocopy(U){
U.__msgPanel.addEventListener('mouseup', function copy(e){
var s = e.view.getSelection() +'';
s && CmdUtils.copyToClipboard(s);
}, true);
}
function getU(fn){
waitU(Utils.currentChromeWindow);
diff --git a/ubiquity/modules/parser/new/parser.js b/ubiquity/modules/parser/new/parser.js
--- a/ubiquity/modules/parser/new/parser.js
+++ b/ubiquity/modules/parser/new/parser.js
@@ -423,43 +423,37 @@ Parser.prototype = {
// {{{words}}} and {{{delimiters}}} are just a copy of every other word in
// {{{all}}}.
//
// Used by {{{Parser.argFinder()}}}
splitWords: function(input) {
var returnObj = { words: [], delimiters: [], all: [],