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 spammer filter | |
// @namespace spam | |
// @description created to filter people from youtube chat rooms | |
// @include https://www.youtube.com/* | |
// @version 1 | |
// @grant none | |
// ==/UserScript== | |
var names = [ | |
]; |
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
[fonts] | |
fchannel=Lucida Sans Unicode,100,0,0,0,10 | |
fquery=Lucida Sans Unicode,100,0,0,0,10 | |
// look for something like this and repace it with this |
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 getElementCSSStyleRules = function (f) { | |
var myElement = f; | |
var r = []; | |
[].slice.call(document.styleSheets).forEach(function (rules) { | |
[].slice.call(rules.rules).forEach(function (e) { | |
if ([].slice.call(document.querySelectorAll(e.selectorText)).indexOf(f) !== -1) { | |
e.toString = function(){return this.selectorText;}; | |
r.push(e); | |
} |
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
EventTarget.prototype.addEvent = function () { | |
var args = [].slice.call(arguments); | |
var remove = (function () { | |
this.removeEventListener.apply(this, args); | |
}).bind(this); | |
this.addEventListener.apply(this, arguments); | |
return remove; | |
}; |
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 _a = [ | |
{"Period": "Off-Peak", "From": "4/21/2014", "To": "7/24/2014", "Nightly": 100, "Minimum Stay": "3 nights"}, | |
{"Period": "Peak", "From": "7/24/2014", "To": "9/1/2014", "Nightly": 120, "Minimum Stay": "7 nights", "Price Based on": "4 guests"}, | |
{"Period": "Off-Peak", "From": "9/1/2014", "To": "10/23/2014", "Nightly": 100, "Minimum Stay": "3 nights", "Price Based on": "4 guests"}, | |
{"Period": "Peak", "From": "10/23/2014", "To": "11/3/2014", "Nightly": 120, "Minimum Stay": "7 nights", "Price Based on": "4 guests"}, | |
{"Period": "Off-Peak", "From": "11/3/2014", "To": "12/18/2014", "Nightly": 100, "Minimum Stay": "3 nights", "Price Based on": "4 guests"}, | |
{"Period": "Peak", "From": "12/18/2014", "To": "1/5/2015", "Nightly": 120, "Minimum Stay": "7 nights", "Price Based on": "4 guests"}, | |
{"Period": "Off-Peak", "From": "1/5/2015", "To": "4/2/2015", "Nightly": 100, "Minimum Stay": "3 nights", "Price Based on": "4 guests"}, | |
{"Period": "Peak", "From": "4/2/2015", "To": "4/20/2015", |
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 http-equiv="content-type" content="text/html; charset=UTF-8"> | |
<title>Pricing Calculator</title> | |
<script src='moment.js'></script> | |
<script type='text/javascript' src='jquery-git2.js'></script> | |
<link rel="stylesheet" type="text/css" href="/css/result-light.css"> |
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 cerealize(object) { | |
return Object.getOwnPropertyNames(object) | |
.filter(function (e) { | |
return typeof object[e] !== 'function' && object[e].toString | |
}) | |
.map(function (n) { | |
return encodeURIComponent(n) + "=" + encodeURIComponent(object[n]); | |
}) | |
.join("&") | |
} |
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 htmlToElements = (function () { | |
var div = document.createElement('div'); | |
return function (s) { | |
div.innerHTML = s; | |
return div.childNodes; | |
}; | |
}()); | |
console.dir(htmlToElements('<div><span>test</span></div>')); |
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
module.exports = (function() { | |
/* | |
* Generated by PEG.js 0.8.0. | |
* | |
* http://pegjs.majda.cz/ | |
*/ | |
function peg$subclass(child, parent) { | |
function ctor() { this.constructor = child; } | |
ctor.prototype = parent.prototype; |
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
window.onload=function(){ | |
/*counter is a simple counter. it will add 1 to the count value every time count() is called. the display('querySelector string', 'attribute to assign the value') function returns a function that displays the count value on the element using a querySelector string and then assigns the count to the attribute name. | |
*/ | |
var counter = function () { | |
var Counter = Object.create(null); | |
Counter.Count = 0; | |
Counter.count = function () { | |
Counter.Count++; |
NewerOlder