Skip to content

Instantly share code, notes, and snippets.

### Keybase proof
I hereby claim:
* I am jdehorty on github.
* I am jdehorty (https://keybase.io/jdehorty) on keybase.
* I have a public key ASCPp458mwEkCx8eEgR-WD88nVxfFekrRQgHaDs5LH10ggo
To claim this, I am signing this object:
(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
'use strict'; // https://developer.chrome.com/extensions/runtime#event-onInstalled
chrome.runtime.onInstalled.addListener(function (details) {
if (details.previousVersion) {
return;
} else {
// set new user sid for referrals
// send to welcome page where the webpage also checks if they were sent by a referral
window.open('https://summarybox.com/welcome', '_blank');
@jdehorty
jdehorty / copy-element-text-bookmarklet.js
Last active June 1, 2021 21:27 — forked from foobear/copy-element-text-bookmarklet.js
JavaScript bookmarklet to click an element and copy its text contents. See https://makandracards.com/makandra/46962
var overlay = document.createElement('div');
Object.assign(overlay.style, {
position: 'fixed',
top: 0,
left: 0,
width: '100vw',
height: '100vh',
zIndex: 99999999,
background: 'transparent',
cursor: 'crosshair'