Skip to content

Instantly share code, notes, and snippets.

@pbrueske
pbrueske / github.js
Last active July 22, 2016 09:12 — forked from skorth/github.js
Show all Github Comments
javascript:(function(){for (let el of document.querySelectorAll('.outdated-diff-comment-container')) {el.classList.add('open')};}());

Keybase proof

I hereby claim:

  • I am pbrueske on github.
  • I am peetbeatr (https://keybase.io/peetbeatr) on keybase.
  • I have a public key ASABeoYyUS-236mNmHnXUUImW2rwp8djF88zw4SKYD8YsAo

To claim this, I am signing this object:

@pbrueske
pbrueske / st_image_with_alt
Created April 24, 2015 07:35
Extended Sir Trevor Image Block with alt attribute
SirTrevor.Blocks.Image = SirTrevor.Blocks.Image.extend
type: "image"
title: ->
i18n.t "blocks:img:title"
altInput: (value)->
$('<input>', { type: 'text', class: 'string form-control st-input-string js-alt-input st-required', name: 'alt', placeholder: 'Alt Text', value: value })
loadData: (data)->
this.$editor.html this.altInput(data.alt)