Created
February 11, 2017 00:20
-
-
Save bsdf/387ab429bcf4c471607ad160b14c65fb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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