Skip to content

Instantly share code, notes, and snippets.

@JoelBesada
JoelBesada / dabblet.css
Created March 18, 2012 16:09 — forked from anonymous/dabblet.css
CSS States
/* CSS States */
body {
background: url(http://dabblet.com/img/noise.png);
background-color: #F5F2F0;
font-family: Georgia, serif;
font-size: 18px;
line-height: 1.6em;
text-shadow: 0 2px 0 white;
color: #222;
}
@JoelBesada
JoelBesada / dabblet.css
Created March 19, 2012 00:06
Basic CSS States
/* Basic CSS States */
body {
padding: 100px;
}
/* When a button is pressed, overwrite the transition property
to remove the delay, so that we can instantly change the color */
.red:active ~ p.perm, .green:active ~ p.perm, .blue:active ~ p.perm {
transition: color 0;
}
@JoelBesada
JoelBesada / dabblet.css
Created March 20, 2012 17:09
CSS States
/* CSS States */
body {
background: url(http://dabblet.com/img/noise.png);
background-color: #F5F2F0;
font-family: Georgia, serif;
font-size: 18px;
line-height: 1.6em;
text-shadow: 0 2px 0 white;
color: #222;
}
@JoelBesada
JoelBesada / README.md
Last active October 14, 2022 04:20
Backtick Example Command

This is an example command for Backtick. A Backtick command consists of some executable JavaScript and a bit of metadata in JSON.

Here are the required steps to create a command:

  1. Create a new Gist with a command.js and command.json file, or simply fork this one.

  2. Write your JavaScript in command.js. This will be injected into and executed on the page the user is currently on when they run it.

  3. Add some metadata to the command.json file:

  • name: The name of the command.
@JoelBesada
JoelBesada / command.js
Created November 5, 2013 01:44 — forked from lox/command.js
(function() {
var silent = false;
var url = location.href;
var title = document.title;
if(document.querySelector) {
if(1 === document.getElementsByClassName('hentry').length) {
title = document.querySelector(
'.hentry .entry-title, .hentry h1, .hentry h2, .hentry h3'
@JoelBesada
JoelBesada / dabblet.css
Created November 7, 2013 17:06
Untitled
.resize {
resize:both;
overflow: auto;
width: 30px;
height: 20px;
}
.logout {
width: 100%;
height: 100%;
@JoelBesada
JoelBesada / dabblet.css
Created November 7, 2013 17:11
Untitled
body {
font-family:sans-serif;
}
.resize {
resize:both;
overflow: auto;
width: 30px;
height: 20px;
}
@JoelBesada
JoelBesada / command.js
Last active December 29, 2015 23:09 — forked from busterc/README.md
window.location.href = 'http://whois.domaintools.com/' + location.host;
@JoelBesada
JoelBesada / command.js
Last active December 30, 2015 20:29 — forked from codeanpeace/README.md
(function(){
var resource = document.createElement("script");
resource.src = "http://www.magicscroll.net/bookmarklet/init.js";
document.documentElement.appendChild(resource);
}());
var d = document,
w = window,
e = w.getSelection,
k = d.getSelection,
x = d.selection,
s = (e ? e() : (k) ? k() : (x ? x.createRange().text : 0)),
f = 'http://www.tumblr.com/share',
l = d.location,
e = encodeURIComponent,
p = '?v=3&u=' + e(l.href) + '&t=' + e(d.title) + '&s=' + e(s),