Last active
December 21, 2021 03:39
-
-
Save q00u/65516998cd88c82fc5069c901ddd937f 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 LiquidLinkGfycat | |
// @namespace https://gist.github.com/q00u | |
// @description gfycat vid source links, an offshoot from LiquidLink https://gist.github.com/q00u/8f4182c4344ac6031f7d | |
// @author Phoenix G | |
// @match http://gfycat.com/* | |
// @match https://gfycat.com/* | |
// @icon https://www.google.com/s2/favicons?domain=gfycat.com | |
// @grant none | |
// @version 0.1.3 | |
// @require https://code.jquery.com/jquery-1.10.2.js | |
// ==/UserScript== | |
var link = $("figcaption:first")?.text()?.match(/(https*:\/\/\S*)/); | |
if (link[0]!==null) | |
{ | |
$("#video-details-container .left-block:first").append(' <a class=\"video-tag\" href="' + link[0] + '">(source)</a>'); //insert it | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment