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
| # coding: utf-8 | |
| import os | |
| import re | |
| import urllib | |
| import urlparse | |
| import locale | |
| locale.setlocale(locale.LC_ALL, '') | |
| pageurl = 'http://xhmikosr.1f0.de/index.php?folder=bXBjLWhj' |
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
| @echo off | |
| :mainloop | |
| if "%~1" == "" goto :eof | |
| call :optimize "%~1" | |
| shift | |
| goto :mainloop | |
| :optimize | |
| set a=%~a1 |
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 dropInputFileName.uc.js | |
| // @description | |
| // @include main | |
| // @charset utf-8 | |
| // @compatibility Firefox 3.6+ | |
| // @namespace http://twitter.com/xulapp | |
| // @author xulapp | |
| // @license MIT License | |
| // @version 2011/02/12 23:00 +09:00 |
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 unalert | |
| // @description dom based alert dialog | |
| // @include http://www.nicovideo.jp/* | |
| // @charset utf-8 | |
| // @compatibility Firefox | |
| // @namespace http://twitter.com/xulapp | |
| // @author xulapp | |
| // @license MIT License | |
| // @version 2011/01/23 14:20 +09:00 |
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 Div = Class({ | |
| constructor: function Div() { | |
| if (!(this instanceof Div)) | |
| return Div.createInstance(arguments); | |
| this.element = this.cursor = document.createElement('div'); | |
| this.stack = []; | |
| }, | |
| attr: function attr(name, value) { | |
| this.cursor.setAttribute(name, value); |
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 tailRecursive(func) { | |
| var firstcall = true; | |
| var targs; | |
| var CONTINUE = {}; | |
| return function() { | |
| var args = arguments; | |
| var err, threw; | |
| if (firstcall) { |
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 Google Reader Subscribers Count mod | |
| // @description Show how many subscribers to the feed with google reader. | |
| // @include http:* | |
| // @exclude http://www.google.tld/reader/view/* | |
| // @charset utf-8 | |
| // @compatibility Firefox | |
| // @namespace http://twitter.com/xulapp | |
| // @author xulapp | |
| // @license MIT License |
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 p2Watcher.uc.js | |
| // @description | |
| // @include main | |
| // @charset utf-8 | |
| // @compatibility Firefox | |
| // @namespace http://twitter.com/xulapp | |
| // @author xulapp | |
| // @license MIT License | |
| // @version 2011/02/19 00:50 +09:00 |
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 middleClickFocusTab.uc.js | |
| // @description long middle click == shift + middle click | |
| // @include main | |
| // @charset utf-8 | |
| // @compatibility Firefox 3.6+ | |
| // @namespace http://twitter.com/xulapp | |
| // @author xulapp | |
| // @license MIT License | |
| // @version 2010/11/22 00:50 +09:00 |
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() { | |
| var quote = (function() { | |
| var specialCharReg = /[\n\r'\\]/g; | |
| var specialCharMap = {'\n': '\\n', '\r': '\\r', '\'': '\\\'', '\\': '\\\\'}; | |
| var specialCharRegCb = function(c) { return specialCharMap[c]; }; | |
| return function(str) { | |
| return '\'' + str.replace(specialCharReg, specialCharRegCb) + '\''; | |
| }; | |
| })(); |