Skip to content

Instantly share code, notes, and snippets.

@bsdf
Created February 11, 2017 00:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bsdf/387ab429bcf4c471607ad160b14c65fb to your computer and use it in GitHub Desktop.
Save bsdf/387ab429bcf4c471607ad160b14c65fb to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name twitter embed
// @namespace com.diamonddave85
// @include http://www.ilxor.com/ILX/ThreadSelectedControllerServlet*
// @include http://ilxor.com/ILX/ThreadSelectedControllerServlet*
// @version 1
// @grant none
// ==/UserScript==
var links = document.querySelectorAll('.message > *:not(.posterinfo) > a');
for (let link of links) {
if (link.href.match(/twitter\.com.*\/status/)) {
link.insertAdjacentHTML('afterend', '<p><img src="http://i.imgur.com/mj4dAec.jpg"></p>');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment