Skip to content

Instantly share code, notes, and snippets.

View jeromefroe's full-sized avatar

Jerome Froelich jeromefroe

  • The Arcanum
  • Imre, The Commonwealth
View GitHub Profile
@jeromefroe
jeromefroe / bookmarklet.js
Created July 2, 2019 19:23
An example bookmarklet to open the same set of links on a page
javascript:(function expandFiles() {
// The Chrome extension SelectorGadget is helpful for determining what selector
// to use for selecting certain elements.
var links = document.querySelectorAll('.myElement');
if (links) {
for (var i in links) {
// If we only want to select a subset of the elements matched by the selector
// query we used we can use different properties of the elements to filter them
// further. In the example below, for instance, we use the inner text of the
// element.

Keybase proof

I hereby claim:

  • I am jeromefroe on github.
  • I am jeromefroe (https://keybase.io/jeromefroe) on keybase.
  • I have a public key ASDVT9evpFPgI352uwUPUOAN7tjyAqyzjOFrFhZ_4xv6uwo

To claim this, I am signing this object: