Skip to content

Instantly share code, notes, and snippets.

@reynish
Last active August 17, 2017 12:22
Show Gist options
  • Save reynish/6c3a8121a93e9e05812e3918fbd5e0b9 to your computer and use it in GitHub Desktop.
Save reynish/6c3a8121a93e9e05812e3918fbd5e0b9 to your computer and use it in GitHub Desktop.
// ==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