Skip to content

Instantly share code, notes, and snippets.

@q00u
Last active December 21, 2021 03:39
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 q00u/65516998cd88c82fc5069c901ddd937f to your computer and use it in GitHub Desktop.
Save q00u/65516998cd88c82fc5069c901ddd937f to your computer and use it in GitHub Desktop.
// ==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