This file contains 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 noun_type_gmCommand = { | |
_name: "GM command name", | |
// Returns all GM commands available for the current page. | |
getCommands: function(){ | |
var commands= {}; | |
var menuitems = jQuery(window.document) | |
.find('#userscript-commands-sb > menupopup > menuitem') | |
.get(); | |
for (var i=0; i<menuitems.length; i++){ |
This file contains 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 noun_type_gmCommand = { | |
_name: "GM command name", | |
// Returns all GM commands available for the current page. | |
getCommands: function(){ | |
var commands= {}; | |
var menuitems = jQuery(context.chromeWindow.document) | |
.find('\x23userscript-commands-sb > menupopup > menuitem') | |
.get(); |
This file contains 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 noun_type_fooCommand = { | |
suggest: function( text, html ) { | |
var suggestions = []; | |
suggestions.push( CmdUtils.makeSugg('foo', 'foo', 'foo') ); | |
suggestions.push( CmdUtils.makeSugg('bar', 'bar', 'bar') ); | |
suggestions.push( CmdUtils.makeSugg('baz', 'baz', 'baz') ); | |
This file contains 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
#foo{ | |
position:fixed; | |
z-index: 9000; | |
top:0%; bottom: 0%; left:0%; right:0%; | |
border-style: solid; | |
border-color: rgb(200,200,200); | |
border-width: 5px; | |
background-color: rgba(100,100,100,.9); | |
} | |
#foo * { |
This file contains 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
<?xml version="1.0" encoding="ISO-8859-1"?> | |
<bindings xmlns="http://www.mozilla.org/xbl"> | |
<!-- 1 - Allow for larger result sets --> | |
<binding id="listsize"> | |
<implementation> | |
<constructor> | |
<![CDATA[ | |
var newOption = function(selElm, val){ | |
var sel = document.createElement('OPTION'); |
This file contains 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
@-moz-document url("https://ssl.muenchen.de/EF/opac.html"), | |
url("https://ssl.muenchen.de/AK/opac.html") { | |
select.input[name="NNORRQ"] { | |
-moz-binding:url(http://gist.github.com/raw/211172/bd87a5d51be36f454a96f6cad07f81c8522573ee/OPAC_Muenchen.xbl#listsize) !important; | |
} | |
form[name="EF"], | |
form[name="AK"] { | |
-moz-binding:url(http://gist.github.com/raw/211172/bd87a5d51be36f454a96f6cad07f81c8522573ee/OPAC_Muenchen.xbl#defaults) !important; |
This file contains 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
@-moz-document url("https://ssl.muenchen.de/EF/opac.html") { | |
form[name="EF"] * { | |
color: blue !important; | |
} | |
} | |
This file contains 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
/* | |
bugmenot.js | |
Queries bugmenot.com for the current page, populates login information and submits. | |
Written by Victor Shih (vshih at yahoo.com, http://blog.vicshih.com/2009/04/bugmenot-command-for-ubiquity.html) | |
Initial idea and some code from Onur Yalazı (onur@yalazi.org, http://www.yalazi.org/ubiquity) and Brandon Goldsworthy. | |
*/ | |
const MIN_RATE_PERCENT = 50; // only show entries that rate 50% or more |
This file contains 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 openSpecialFolder(aFolderType) { | |
var dirService = Components.classes['@mozilla.org/file/directory_service;1'] | |
.getService(Components.interfaces.nsIProperties); | |
var dir = dirService.get(aFolderType, Components.interfaces.nsIFile); | |
var iDirectory = getLocalFileInterface(dir.path); | |
try { | |
iDirectory.reveal(); | |
} catch (ex) { | |
// if reveal failed for some reason (eg on unix it's not currently |
This file contains 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 Artechock: Extended Info | |
// @namespace http://esquifit.myopenid.com/ | |
// @description Displays Country, Year and Duration of each movie | |
// @include http://www.artechock.de/film/muenchen/index* | |
// @include http://www.artechock.de/film/muenchen/film* | |
// @include http://www.artechock.de/film/muenchen/oton* | |
// @include http://www.artechock.de/film/bg/film.htm | |
// ==/UserScript== |
OlderNewer