Skip to content

Instantly share code, notes, and snippets.

@mattslack
mattslack / sentinel_cleaner.user.js
Last active December 11, 2015 02:29
A handy Chrome user script that clears out a bunch of visual crap (including some ads) from the Holland Sentinel website.
// ==UserScript==
// @name Sentinel Cleaner
// @version 1.4.14
// @author Matt Slack
// @description Depaginates articles, and clears out a bunch of visual crap (including most ads) from the Holland Sentinel website.
// @match http://www.hollandsentinel.com/*
// ==/UserScript==
(function () {
"use strict";
@mattslack
mattslack / drupal_to_6.sql
Created October 11, 2011 21:48
Some handy SQL queries to make the move from Drupal 5 to Drupal 6 go better
DROP TABLE IF EXISTS cache_form;
DROP TABLE IF EXISTS menu_router;
DROP TABLE IF EXISTS menu_links;
DROP TABLE IF EXISTS menu_custom;
CREATE TABLE IF NOT EXISTS `cache_location` (
`cid` varchar(255) NOT NULL default '',
`data` longblob,
`expire` int(11) NOT NULL default '0',
`created` int(11) NOT NULL default '0',
@mattslack
mattslack / gist:1214139
Created September 13, 2011 15:38
Color Selector
<style>
.spectrum {
display: block;
width: 150px;
height: 15px;
margin-left: 2px;
background: -webkit-linear-gradient(left, hsl(0,100%,50%),hsl(60,100%, 50%), hsl(120,100%, 50%), hsl(180, 100%, 50%), hsl(240,100%,50%), hsl(300,100%,50%) 100%),
-moz-linear-gradient(left, hsl(0,100%,50%),hsl(60,100%, 50%), hsl(120,100%, 50%), hsl(180, 100%, 50%), hsl(240,100%,50%), hsl(300,100%,50%) 100%)
-o-linear-gradient(left, hsl(0,100%,50%),hsl(60,100%, 50%), hsl(120,100%, 50%), hsl(180, 100%, 50%), hsl(240,100%,50%), hsl(300,100%,50%) 100%);
}