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
jQuery.fn.signature = function() { | |
var id = this.prop('id'), | |
classes = this.prop('className').replace(' ','.'); | |
return this.prop("tagName").toLowerCase() + (id ? '#' + id : '') + (classes ? '.' + classes : ''); | |
} |
styleguide_html.md - HTML Styles and Formatting
styleguide_js.md - JavaScript Styles and Formatting
styleguide_less.md - LESS/CSS Styles and Formatting
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
javascript: | |
(function (){ | |
function loadScript(url, callback) | |
{ | |
var head = document.getElementsByTagName("head")[0]; | |
var script = document.createElement("script"); | |
script.src = url; | |
// Attach handlers for all browsers | |
var done = false; |
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 loadScript(url, callback) | |
{ | |
var head = document.getElementsByTagName("head")[0]; | |
var script = document.createElement("script"); | |
script.src = url; | |
// Attach handlers for all browsers | |
var done = false; | |
script.onload = script.onreadystatechange = function() | |
{ |
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 mwurzbergerGetPerformanceData ( includeEntries, includeRaw ) | |
{ | |
includeEntries = includeEntries || false; | |
includeRaw = includeRaw || false; | |
var timing = window.performance.timing; | |
var entries = window.performance.getEntries(); | |
var performanceRecord = { | |
'page': window.location.href || window.location || 'Undefined', |
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
javascript:(function() {if(!window.__profiler||window.__profiler.scriptLoaded!==true){var d=document,h=d.getElementsByTagName("head")[0],s=d.createElement("script"),l=d.createElement("div"),c=function(){if(l){d.body.removeChild(l)}window.__profiler=window.__profiler||new __Profiler;window.__profiler.init();__profiler.scriptLoaded=true};s.type="text/javascript";l.style.cssText="z-index:999;position:fixed;top:10px;left:10px;display:inline;width:auto;font-size:14px;line-height:1.5em;font-family:Helvetica,Calibri,Arial,sans-serif;text-shadow:none;padding:3px 10px 0;background:#FFFDF2;box-shadow:0 0 0 3px rgba(0,0,0,.25),0 0 5px 5px rgba(0,0,0,.25); border-radius:1px";l.innerHTML="Just a moment";s.src="//kaaes.github.io/timing/profiler.js";s.onload=c;s.onreadystatechange=function(){if(this.readyState=="loaded"){c()}};d.body.appendChild(l);h.appendChild(s)}else if(window.__profiler instanceof __Profiler){window.__profiler.init()}})(); |
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 fprint(o) { | |
var pre = document.createElement('pre'); | |
pre.innerText = JSON.stringify(o, null, ' '); | |
document.body.appendChild(pre); | |
} |
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 checkDeploymentBox(ele){ | |
$(ele).prop('checkDeploymentBoxed','checkDeploymentBoxed'); | |
} | |
$(document).ready(function() { | |
// CI = current inputs | |
// PG = package groups | |
var PG = $('div.PackageGroup'); | |
CI = $(PG[0]).find('input'); |
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 Redirect Remover | |
// @namespace https://gist.github.com/mwurzberger/ab83f6f005afce59bb41 | |
// @description Stop google links from using their tracking redirect | |
// @version 1.0.0 | |
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js | |
// @include http://*.google.com/* | |
// @include https://*.google.com/* | |
// ==/UserScript== |
NewerOlder