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
const swre = new RegExp('\/messaging-\\d+\.js') | |
const rchre = new RegExp('\/reach\.js') | |
function FindProxyForURL(url, host) { | |
const isProxy = host === 'mitm.it' | |
switch (true) { | |
case isProxy: return 'PROXY 10.6.88.224:8888' | |
case swre.test(url): | |
case rchre.test(url): return 'PROXY 10.6.88.224:8888' |
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
/** | |
* class THIS extends Parent | |
*/ | |
Function.prototype.inherits = function inherits(Parent) { | |
this.prototype = Object.create(Parent.prototype, {}) | |
this.prototype.constructor = this | |
} | |
/** | |
* Constructor chain |
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) { | |
const isReachClient = host.startsWith('reachclient') && host.endsWith('tv3cloud.com') | |
const isProxy = host === 'mitm.it' | |
if (isReachClient || isProxy) return 'PROXY 10.6.88.224:8888' | |
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
#!/bin/bash | |
# Delete all stopped containers | |
docker ps -q -f status=exited | xargs --no-run-if-empty docker rm | |
# Delete all dangling (unused) images | |
docker images -q -f dangling=true | xargs --no-run-if-empty docker rmi |
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 ( !HTMLFormElement.prototype.reportValidity ) { | |
document.addEventListener( "DOMContentLoaded", function ( event ) { | |
var onclick = function () { | |
return true; | |
}; | |
var forms = Array.from( document.querySelectorAll( 'form' ) ); | |
forms.map( function ( f ) { | |
var btn = document.createElement( 'button' ); | |
btn.onclick = onclick; |
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 escapeUI (str) { | |
if(!str) return str; | |
if(typeof str != 'string') return str; | |
return str.replace(/[\0\x08\x09\x1a\n\r"'\\\%]/g, function (char) { | |
switch (char) { | |
case "\0": | |
return "\\0"; | |
case "\x08": | |
return "\\b"; | |
case "\x09": |
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
clearInterval(Chat.vars.queueTimer); | |
Chat.vars.queueTimer = setInterval(function() { | |
if (Chat.vars.queue.length > 0) { | |
var newLines = Chat.vars.queue.join(''); | |
Chat.vars.queue = []; | |
$('#chat_box').prepend(newLines); | |
if (Chat.vars.preventClipping) { | |
var totalHeight = Chat.vars.max_height; | |
var currentHeight = $('#chat_box').outerHeight(true) + 5; |
NewerOlder