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
var gQuery; | |
CmdUtils.makeSearchCommand({ | |
name: "Directory", | |
url: "http://www10.go.com.mt/edirnew_dev/modules/edir_checkquery.asp", | |
arguments: {suggest: function (txt) { | |
gQuery = txt; | |
return noun_arb_text.suggest(txt); | |
}}, | |
get postData() { | |
if(!gQuery) return null; |
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 ubiquityLoad_hackContentAccessForPreview(U){//function cmd_ | |
const {prefs} = Utils, Shift = 1, Ctrl = 2, Alt = 4, Meta = 8; | |
U.panel.addEventListener('popupshowing', function hack(){ | |
var orig = prefs.get('ui.key.contentAccess'); | |
Utils.listenOnce(this, 'popuphidden', function restore(){ | |
prefs.set('ui.key.contentAccess', orig); | |
}); | |
prefs.set('ui.key.contentAccess', Alt); | |
}, false); | |
} |
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 Contexpector | |
// @namespace http://www.mozilla.org/MPL/ | |
// @description Right click anywhere to DOMInspect the element. | |
// @include * | |
// @exclude chrome://global/content/alerts/alert.xul | |
// @exclude chrome://global/content/commonDialog.xul | |
// @exclude javascript:* | |
// @compatibility 3.5+ | |
// @author LouCypher Alice0775 satyr |
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
GOLF_DIR = File.join(ENV['HOME'], '.golf') | |
require 'pstore' | |
require 'caddy/db' | |
require 'net/http/multipart' | |
Net::HTTP.version_1_2 | |
@file = $*[0] | |
problem = $*[1] || file2problem(File.basename(@file, File.extname(@file))) | |
@data = { | |
'problem' => problem =~ /^http:\/\/golf.shinh.org\/p.rb\?/ && $', |
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
<script> | |
function pr(){ document.writeln.apply(document, arguments) } | |
function go(code, end){ | |
try{ var r = eval(code) } catch(e) { r = e } | |
pr(code, '\n\t', r); | |
end ? pr('') : go(code + ' = location +" "+ new Date', 1); | |
} | |
pr('<pre>'); | |
go('localStorage._'); | |
go('globalStorage[location.hostname]._'); |
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 radiko lite | |
// @description Simplifies radiko_player, inlining it onto the timetable. | |
// @namespace http://twitter.com/m_satyr | |
// @include http://radiko.jp/player/player.html#* | |
// @include http://radiko.jp/timetable/ | |
// ==/UserScript== | |
if((banner = document.querySelector('#header > .banner'))) | |
return addEventListener('load', function(){ | |
var parent = banner.parentNode |
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(!Utils._oUIB){ | |
let U = Utils.__proto__; | |
U._oUIB = Utils.openUrlInBrowser; | |
U.openUrlInBrowser = function openUrlInBrowserForegroundPlease(){ | |
U.prefs.set('browser.tabs.loadInBackground', false); | |
U._oUIB.apply(0, arguments); | |
U.prefs.set('browser.tabs.loadInBackground', true); | |
}; | |
} | |
//function cmd_ |
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 Pipes Copy RSS URL | |
// @description Copies a human readable version of it. | |
// @namespace http://pipes.yahoo.com/matyr | |
// @include http://pipes.yahoo.com/pipes/pipe.info?_id=* | |
// ==/UserScript== | |
var btn = document.createElement('button'); | |
btn.innerHTML = '<u>C</u>opy RSS URL'; | |
btn.accessKey = 'C'; | |
btn.addEventListener('click', function(e){ |
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: 'mailto', | |
argument: noun_arb_text, | |
execute: function({object: {text}}){ | |
var {title, URL} = CmdUtils.getDocument(); | |
Utils.currentChromeWindow.gBrowser.loadURIWithFlags( | |
'mailto:'+ encodeURIComponent(text) + Utils.paramsToString({ | |
subject: "'"+ title +"'", | |
//body: URL +'\n\n'+ CmdUtils.getSelection(), | |
'html-body': ((<><a href={URL}>{URL}</a><br/><br/></>) + |