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
// language setttings for JavaScript | |
KeywordNocase:FALSE | |
KeywordFile:js.txt | |
OpenComment:/* | |
CloseComment:*/ | |
RowComment:// | |
BreakChars: ,.:;(){}[]'"=><-|&*+-/%!?^ | |
OperatorChars:=!&|^~*/+-%<>;:.,(){}[] | |
BracketChars:)} | |
QuoteChars:"' |
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
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title></title> | |
</head> | |
<body></body> | |
<script> | |
var body = document.body; |
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 bind tab owner | |
// @description select owner tab on close tab | |
// @include main | |
// @compatibility Firefox 3.5 3.6 | |
// @namespace http://twitter.com/xulapp | |
// @author xulapp | |
// @license MIT License | |
// @version 2010/02/28 04:50 +09:00 | |
// @note set browser.tabs.selectOwnerOnClose for true[default] |
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 selectElementByMiddleClick.uc.js | |
// @description DOM Inspector -> Select Element By Click | |
// @include chrome://inspector/content/inspector.xul | |
// @compatibility Firefox 3.* | |
// @namespace http://twitter.com/xulapp | |
// @author xulapp | |
// @license MIT License | |
// @version 2010/02/23 23:40 +09:00 | |
// ==/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 xml2dom(xml, doc) { | |
xml = <root xmlns={ doc.documentElement.namespaceURI }/>.appendChild(xml); | |
var settings = XML.settings(); | |
XML.prettyPrinting = false; | |
var root = new DOMParser().parseFromString(xml.toXMLString(), 'application/xml').documentElement; | |
XML.setSettings(settings); | |
doc.adoptNode(root); | |
var range = doc.createRange(); | |
range.selectNodeContents(root); | |
var frag = range.extractContents(); |
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 betterConsole.uc.js | |
// @description eval in [content, chrome, WrappedNative] window under the JS version [default, 1.6, 1.7, 1.8] | |
// @include chrome://global/content/console.xul | |
// @compatibility Firefox 3.6+ | |
// @namespace http://twitter.com/xulapp | |
// @author xulapp | |
// @license MIT License | |
// @version 2010/04/03 16:10 +09:00 細かなミスを修正。3.7a3 で動作確認 | |
// ==/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 Callable() { | |
var self = function Callable() | |
this.__call__.apply(this, arguments); | |
self.__proto__ = Callable.prototype; | |
return self; | |
} | |
Callable.prototype = { | |
constructor: Callable, | |
__proto__: Function.prototype, | |
__call__: function __call__() { |
OlderNewer