Skip to content

Instantly share code, notes, and snippets.

@rneiss
rneiss / selectabls.js
Created January 10, 2022 16:21
bookmarklet to select text on unselectable websites
javascript:(function()%7Bdocument.querySelectorAll(%22*%22).forEach(el%20%3D%3E%20%7Bel.style.userSelect%20%3D%20%22auto%22%3B%7D)%7D)()
person personLabel dob
http://www.wikidata.org/entity/Q66619 Andreas von Bülow 1937-07-17T00:00:00Z
http://www.wikidata.org/entity/Q69239 Verena Becker 1952-07-31T00:00:00Z
http://www.wikidata.org/entity/Q77767 Róža Domašcyna 1951-08-11T00:00:00Z
http://www.wikidata.org/entity/Q81991 Reijo Leppänen 1951-08-11T00:00:00Z
http://www.wikidata.org/entity/Q92751 David H. Bailey 1948-08-14T00:00:00Z
http://www.wikidata.org/entity/Q92886 Friedemann Mattern 1955-07-28T00:00:00Z
http://www.wikidata.org/entity/Q105535 Kersten Reich 1948-08-14T00:00:00Z
http://www.wikidata.org/entity/Q105605 Jules Hoffmann 1941-08-02T00:00:00Z
http://www.wikidata.org/entity/Q110850 Klaus Emmerich 1943-08-10T00:00:00Z
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rneiss
rneiss / generate_printed_mishnah_sheets.py
Last active January 7, 2018 00:34
Generate printed Mishnah Sheets from Sefaria
import pdfkit
import requests
import json
pdf_options = {
'page-size': 'Letter',
'margin-top': '0.5in',
'margin-right': '0.75in',
'margin-bottom': '0.5in',
'margin-left': '0.75in',
@rneiss
rneiss / scrape.py
Created February 1, 2017 16:07
USHMM St. Louis Manifest Scraper Script
from bs4 import BeautifulSoup
from urllib2 import urlopen
pid = 1
while pid < 938:
section_url = 'https://www.ushmm.org/online/st-louis/detail.php?PassengerId='+str(pid)
html = urlopen(section_url).read()
@rneiss
rneiss / gist:5572277
Created May 13, 2013 23:07
Oatmeal Redirect: Greasemonkey script that redirects every link to The Oatmeal to pictures of cute animals instead. Pretty cludgy, but gets the job done. Based on this tweet: https://twitter.com/Soranomaru/status/334056059125788672
// ==UserScript==
// @name Oatmeal Redirect
// @namespace theoatmeal.com
// @description redirects every link to The Oatmeal to pictures of cute animals instead
// @include http://theoatmeal.com/*
// @version 1
// ==/UserScript==
window.location.assign("http://flickr.com/photos/nationalzoo/show/");