Findgaytube Download Button

Adds a download button to findgaytube.com

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name           Findgaytube Download Button
// @namespace      https://www.findgaytube.com
// @version        1.0.0
// @description    Adds a download button to findgaytube.com
// @author         persistentScripter
// @include        http*://www.findgaytube.com/*
// @require        http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js
// @run-at         document-end
// ==/UserScript==

$(document).ready(function($) {
  const tabsContainer = $('.b-tabs-navigation.f-right');
  const source = $('source');

  if (tabsContainer.length && source.length) {
    const {src} = source[0];
    const downloadButton = tabsContainer.prepend(`<a id="__download__" href="${src}" class="report" rel="nofollow">Download</a>`);

    downloadButton.on('click', (e) => {
      e.preventDefault();
      e.stopPropagation();
      window.open(src);
    });
  }
});