Last active
August 17, 2017 12:22
-
-
Save reynish/6c3a8121a93e9e05812e3918fbd5e0b9 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 Giphy markdown embed | |
// @namespace http://tampermonkey.net/ | |
// @version 0.4 | |
// @description Show markdown embed text for gifs | |
// @homepage https://gist.github.com/reynish/6c3a8121a93e9e05812e3918fbd5e0b9 | |
// @updateURL https://gist.githubusercontent.com/reynish/6c3a8121a93e9e05812e3918fbd5e0b9/raw/giphy-markdown-embed.user.js | |
// @downloadURL https://gist.githubusercontent.com/reynish/6c3a8121a93e9e05812e3918fbd5e0b9/raw/giphy-markdown-embed.user.js | |
// @author reynish | |
// @match https://giphy.com | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
function getImages() { | |
console.log('Getting images'); | |
var imgs = document.querySelector('img'); | |
console.log('Images found ' + imgs.length); | |
return imgs; | |
} | |
setTimeout(() => console.log(getImages()), 5000 ); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment