Skip to content

Instantly share code, notes, and snippets.

:octocat:
Turtle hunting

Matijs Brinkhuis matijs

:octocat:
Turtle hunting
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
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 http://github.com/matijs
// @version 0.1
// @description Remove the title attribute when it's the same as the innerText of an anchor
// @include http://frontpage.fok.nl/*
// ==/UserScript==
[].forEach.call(document.querySelectorAll("a[title]"), function(el) { el.innerText === el.title && el.removeAttribute("title"); });
@matijs
matijs / gist:1023202
Created Jun 13, 2011
Bookmarklet to remove `title` attributes from anchors
View gist:1023202
javascript:[].forEach.call(document.querySelectorAll("a[title]"),function(el){el.innerText===el.title&&el.removeAttribute("title")});
@matijs
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 http://github.com/paulirish
// @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>
<html>
<head>
<!-- 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
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 https://developer.mozilla.org/en/Accessibility/ARIA/ARIA_Techniques/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
matijs / load_jquery_bookmarklet.js
Created Nov 13, 2012
Bookmarklet to add jQuery to the current document
View load_jquery_bookmarklet.js
javascript:(function(){
if ('jQuery' in window) {
console.log('jQuery '+jQuery.fn.jquery+' already present');
}
else {
var s = document.createElement('script');
s.src = 'http://code.jquery.com/jquery.min.js';
s.onload = function() {
console.log('jQuery '+jQuery.fn.jquery+' loaded.');
};
@matijs
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
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" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>name</key>
<string>Solarized (dark)</string>
<key>settings</key>
<array>
<dict>
<key>settings</key>
@matijs
matijs / nginx-build.sh
Created Nov 18, 2012
nginx build options
View nginx-build.sh
./configure \
--prefix=/usr/local/nginx \
--with-http_ssl_module \
--with-pcre=../pcre-8.20
@matijs
matijs / pcre-build.sh
Created Nov 18, 2012
PCRE build options
View pcre-build.sh
./configure \
--prefix=/usr/local
You can’t perform that action at this time.