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() { | |
window.xhrs = []; | |
var tmpSend = XMLHttpRequest.prototype.send, | |
tmpSetRequestHeader = XMLHttpRequest.prototype.setRequestHeader, | |
tmpOpen = XMLHttpRequest.prototype.open; | |
XMLHttpRequest.prototype.open = function(type, url, async, user, pass) { | |
this._requestHeaders = []; | |
this._openArgs = arguments; |
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 compareObjects(o1, o2) { | |
var diff = { | |
'+':[], // fields exists in o1, but not in o2 | |
'-':[] //fields exists in o2, but not in o1 | |
}; | |
for(var x in o1) { | |
if(o1.hasOwnProperty(x) && !o2.hasOwnProperty(x)) { | |
diff['+'].push(x); | |
} | |
} |
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 breakMyBrowser, i = 0, bigArray = []; | |
(breakMyBrowser = function() { | |
setTimeout(function() { | |
bigArray = bigArray.concat((new Array(100)).join('X').split('')); | |
i += 100; | |
if(4294967200 === i && confirm('almost 4294967295 reach. continue?')) { | |
return; | |
} | |
breakMyBrowser(); | |
}, 0); |
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 Aero2: Restart Router | |
// @namespace aero2 | |
// @include http://192.168.1.1/doc/online.sht?autoReconnect | |
// @version 1 | |
// @grant none | |
var oldLoad = window.onload; | |
window.onload = function() { | |
oldLoad && oldLoad(); | |
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
<!doctype html> | |
<html lang="pl"> | |
<head> | |
<meta charset="utf-8"> | |
<title>:)</title> | |
<link href='//cdnjs.cloudflare.com/ajax/libs/normalize/2.1.3/normalize.min.css' rel='stylesheet' type='text/css'> | |
<style> | |
/* http://css3.bradshawenterprises.com/transitions/ */ | |
body, html { | |
margin:0; |
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 addCSSRule(sheet, selector, rules, index) { | |
if(sheet.insertRule) { | |
sheet.insertRule(selector + "{" + rules + "}", index); | |
} | |
else { | |
sheet.addRule(selector, rules, index); | |
} | |
} | |
// Use it! |
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
DOMOperationCounter = (function() { | |
var self; | |
if(!window.__DOMOperationCounterCallback) { | |
self = window.__DOMOperationCounterCallback = function(event) { | |
self.counter++; | |
self.details[event.type] = self.details[event.type] ? self.details[event.type] + 1 : 1; | |
} | |
self.counter = 0; | |
self.toggleState = false; | |
self.details = {}; |
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 Wyklucz autka | |
// @namespace Autocentrum | |
// @include http://otomoto.pl/* | |
// @version 1 | |
// @grant none | |
var fc = function(event) { | |
// funkcja nadaje opacity 0.1 każdemu samochodowi z listy, | |
// który jest wypisany w liście poniżej |
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 Issue tracking (JIRA) links on github | |
// @namespace github | |
// @include https://github.com/* | |
// @version 1 | |
// @grant none | |
(function() { | |
var ISSUE_TRACKING_LINKS = { | |
"TPE": "https://tptest.atlassian.net/browse/", | |
"OVO": "https://jira.10clouds.com/browse/" |
OlderNewer