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
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(); | |
} +'()'; | |
}, | |
}); |
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
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; |
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
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() { |
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
/* | |
=skin= | |
@name Custom | |
@author You | |
@homepage http://www.yourpage.com | |
@email [email protected] | |
@license MPL/LGPL/GPL | |
=/skin= |
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
/* 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'; |
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 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', |
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 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== |
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
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); |
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
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: [], |