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 FindProxyForURL(url, host) | |
{ | |
if (host == "music.163.com") | |
return "PROXY 124.126.126.105:80;PROXY 122.72.0.242:8080;PROXY 123.59.25.227:80;PROXY 122.96.59.99:83;PROXY 115.182.83.38:8080;"; | |
return "DIRECT"; | |
} |
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
// AVLTree /////////////////////////////////////////////////////////////////// | |
// This file is originally from the Concentré XML project (version 0.2.1) | |
// Licensed under GPL and LGPL | |
// | |
// Modified by Jeremy Stephens. | |
// Pass in the attribute you want to use for comparing | |
function AVLTree(n, attr) { | |
this.init(n, attr); | |
} |
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
// From http://webreflection.blogspot.jp/2007/02/could-i-extend-native-function.html | |
// Basic example | |
document.createElement = (function(createElement, Element) { | |
return function(nodeName) { | |
var element, key; | |
try { | |
element = createElement(nodeName) | |
} catch (e) { | |
element = createElement.call(document, nodeName) | |
}; |
NewerOlder