Skip to content

Instantly share code, notes, and snippets.

View jellelicht's full-sized avatar

Jelle Licht jellelicht

  • Refaktoro
  • the Netherlands
View GitHub Profile
(define-parenscript matching-visible-text-url (rel-target link-strings)
(defun find-rel-url (tag-name)
(loop for e in (ps:chain document (get-elements-by-tag-name tag-name))
when (and
(ps:chain e (has-attribute "rel"))
(equal (ps:lisp rel-target) (ps:@ e rel)))
return (ps:@ e href)))
(defun element-drawable-p (element)
(if (or (ps:chain element offset-width)
@jellelicht
jellelicht / k8s-pi.md
Last active May 13, 2019 13:57 — forked from alexellis/k8s-pi.md
K8s on Raspbian
// ==UserScript==
// @name New Userscript
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://www.newyorkpizza.nl/secure/checkout
// @grant none
// ==/UserScript==
@jellelicht
jellelicht / crtud-downloader.user.js
Last active August 29, 2015 14:08
Download-button generating userscript for CR@TU-Delft
// ==UserScript==
// @name TUDelft collegerama downloader
// @namespace http://your.homepage/
// @version 0.1
// @description enter something useful
// @author You
// @match https://collegerama.tudelft.nl/Mediasite/Play/*
// @require http://code.jquery.com/jquery-latest.js
// @grant none
// ==/UserScript==