Skip to content

Instantly share code, notes, and snippets.

Joel Besada JoelBesada

Block or report user

Report or block JoelBesada

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
View sketch-loader.js
const JSZip = require('jszip')
const { parseBuffer } = require('bplist-parser')
const { isObject, each, find } = require('lodash')
const parseArchivedValue = value => {
return parseBuffer(new Buffer(value, 'base64'))
}
const parseArchivedString = obj => {
const { $objects } = parseArchivedValue(
View command.js
(function (e, t) {
var n = e.document;
setTimeout(function () {
function a(e) {
if (e.data === "destroy_bookmarklet") {
var r = n.getElementById(t);
if (r) {
n.body.removeChild(r);
r = null
}
View command.js
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),
View command.js
(function(){
var resource = document.createElement("script");
resource.src = "http://www.magicscroll.net/bookmarklet/init.js";
document.documentElement.appendChild(resource);
}());
View command.js
window.location.href = 'http://whois.domaintools.com/' + location.host;
View dabblet.css
body {
font-family:sans-serif;
}
.resize {
resize:both;
overflow: auto;
width: 30px;
height: 20px;
}
View dabblet.css
.resize {
resize:both;
overflow: auto;
width: 30px;
height: 20px;
}
.logout {
width: 100%;
height: 100%;
View 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 / README.md
Last active Sep 1, 2019
Backtick Example Command
View README.md

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.
View dabblet.css
/* 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;
}
You can’t perform that action at this time.