Skip to content

Instantly share code, notes, and snippets.

Turtle hunting

Matijs Brinkhuis matijs

Block or report user

Report or block matijs

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
matijs / ts.user.js
Created Jun 13, 2011
Remove the title attribute when it's the same as the innerText of an anchor
View ts.user.js
// ==UserScript==
// @name Title stripper
// @author Matijs Brinkhuis
// @namespace
// @version 0.1
// @description Remove the title attribute when it's the same as the innerText of an anchor
// @include*
// ==/UserScript==
[]"a[title]"), function(el) { el.innerText === el.title && el.removeAttribute("title"); });
matijs / gist:1023202
Created Jun 13, 2011
Bookmarklet to remove `title` attributes from anchors
View gist:1023202
matijs / utmstrip.user.js
Created Sep 22, 2011 — forked from paulirish/utmstrip.user.js
userscript: Drop the UTM params from a URL when the page loads
View utmstrip.user.js
// ==UserScript==
// @name UTM param stripper
// @author Paul Irish
// @namespace
// @version 1.1
// @description Drop the UTM params from a URL when the page loads.
// @extra Cuz you know they're all ugly n shit.
// @include http://*
// ==/UserScript==
View gist:1276443
<!DOCTYPE html>
<!-- Make IE use the best version possible, OR Google Chrome Frame -->
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<!-- Disable automatic DNS prefetching.
matijs / gist:3237085
Created Aug 2, 2012 — forked from icaaq/gist:3235454
triggers click on spacebar key
View gist:3237085
MDN: using the button role
Warning: Be careful when marking up links with the button role. Buttons are expected to be triggered using the Space key,
while links are expected to be triggered through the Enter key. In other words, when links are used to behave like buttons,
adding role="button" alone is not sufficient. It will also be necessary to add a key event handler that listens for the
Space key in order to be consistent with native buttons.
matijs / load_jquery_bookmarklet.js
Created Nov 13, 2012
Bookmarklet to add jQuery to the current document
View load_jquery_bookmarklet.js
if ('jQuery' in window) {
console.log('jQuery '+jQuery.fn.jquery+' already present');
else {
var s = document.createElement('script');
s.src = '';
s.onload = function() {
console.log('jQuery '+jQuery.fn.jquery+' loaded.');
matijs / index.html
Created Nov 13, 2012
bookmarklet to open the smallest valid html5 document
View index.html
data:text/html;charset=utf-8,<!doctype html><title></title>
matijs / Solarized (Dark).tmTheme
Created Nov 13, 2012
Solarized Dark WITH semitransparent line highlight
View Solarized (Dark).tmTheme
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "">
<plist version="1.0">
<string>Solarized (dark)</string>
matijs /
Created Nov 18, 2012
nginx build options
./configure \
--prefix=/usr/local/nginx \
--with-http_ssl_module \
matijs /
Created Nov 18, 2012
PCRE build options
./configure \
You can’t perform that action at this time.