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
// modified from code of "JQuerify" bookmarklet | |
// http://www.learningjquery.com/2009/04/better-stronger-safer-jquerify-bookmarklet | |
(function() { | |
function z(a, b) { | |
var c = document.createElement("script"); | |
c.src = a; | |
var d = document.getElementsByTagName("head")[0], e = !1; | |
c.onload = c.onreadystatechange = function() { | |
!e && (!this.readyState || this.readyState === "loaded" || this.readyState === "complete") && (e = !0, b(), c.onload = c.onreadystatechange = null, d.removeChild(c)); | |
}; |
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
javascript:$=jQuery;if($('#myogdiv').length!==0){$('#myogdiv').hide().remove();}else{var%20myogdiv=$('<div%20id="myogdiv"/>');$('body').append(myogdiv);$('head%20meta[property^="og:"],head%20meta[property^="fb:"]').each(function(i,el){var%20k=$(el).attr('property');var%20v=$(el).attr('content');$(myogdiv).append('<div><b>'+k+':</b>'+v+'</div>');if(k=='og:image'){$(myogdiv).append('<br%20/><img%20src="'+v+'"/>');}});$(myogdiv).css('position','fixed').css('top','0').css('zIndex',99999).css('padding','0.5em').css('border','1px%20solid%20red').css('backgroundColor','white');}void(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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Items</title> | |
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> | |
<script src="static/main.js" type="text/javascript"></script> | |
<link href="static/main.css" rel="stylesheet" type="text/css" /> | |
<link rel="canonical" href="/items?page=3" /> |
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
<?php | |
// Return Random Float between min and max | |
function randomFloat($min = 0, $max = 1) { | |
return $min + mt_rand() / mt_getrandmax() * ($max - $min); | |
} | |
// returns normally distributed coordinates in a given range (0 to nMax) | |
function getClickCoordinates(&$x, &$y, $xMax = 100, $yMax = 100){ |
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() { | |
var CSSCriticalPath = function(w, d, opts) { | |
var opt = opts || {}; | |
var css = {}; | |
var pushCSS = function(r) { | |
if(!!css[r.selectorText] === false) css[r.selectorText] = {}; | |
var styles = r.style.cssText.split(/;(?![A-Za-z0-9])/); | |
for(var i = 0; i < styles.length; i++) { | |
if(!!styles[i] === false) continue; | |
var pair = styles[i].split(": "); |
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 ImageDefer = Class.create({ | |
initialize: function(placeholder) { | |
this.placeholder = $(placeholder); | |
this.placeholder.update('Loading image...'); | |
if(ImageDefer.page_loaded) { | |
this.preload(); | |
} else { | |
Event.observe(window, 'load', (function() {this.preload()}).bind(this)); | |
} |
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 Google Search Better Privacy | |
// @description Delete unnecessary params and add useful params on Google Search. | |
// @version 0.0.4 | |
// @include http://*.google.*/search* | |
// @include http://*.google.*/imgres* | |
// @include https://*.google.*/search* | |
// @include https://*.google.*/imgres* | |
// @exclude http://play.google.com/* | |
// @exclude http://mail.google.com/* |
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> | |
<head> | |
<meta charset=utf-8 /> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<h2>Original CSS</h2> | |
<style style="display: block; white-space: pre; font-family: monospace"> | |
h2 { 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
#!/usr/bin/env bash | |
# Wayback machine downloader | |
#TODO: Remove redundancy (download only newest files in given time period - not all of them and then write over them) | |
############################ | |
clear | |
#Enter domain without http:// and www. | |
domain="google.com" | |
#Set matchType to "prefix" if you have multiple subdomains, or "exact" if you want only one page | |
matchType="domain" |
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
#!/usr/bin/env bash | |
# Wayback machine downloader | |
#TODO: Remove redundancy (download only newest files in given time period - not all of them and then write over them) | |
############################ | |
clear | |
#Enter domain without http:// and www. | |
domain="google.com" | |
#Set matchType to "prefix" if you have multiple subdomains, or "exact" if you want only one page | |
matchType="domain" |
OlderNewer