MultiUp Link Display

Displays the links on multiup.org in a nice, convenient codeblock. Works best with Universal Bypass.

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

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

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

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

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

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.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==UserScript==
// @name        MultiUp Link Display
// @namespace   abdrool
// @icon        https://multiup.io/favicon.png
// @match       https://multiup.io/*/mirror/*
// @grant       GM.setClipboard
// @version     1.1
// @author      abdrool
// @description Displays the links on multiup.org in a nice, convenient codeblock. Works best with Universal Bypass.
// @require     http://code.jquery.com/jquery-latest.js
// ==/UserScript==

$(document).ready(function() {

  urls = $("a.host,button.host").map((i, btn) => {
    var link = btn.getAttribute("link");
    if (!link.startsWith("/")) {
      return link;
    }
  }).toArray().join("\n");

  $(".panel-heading").first().after("<code id='urls'/>");
  let code = $("#urls");
  code.append("<button id='copy'>&#128203;</button>");
  let button = $("#copy");
  code.append(urls);
  button.click(() => GM.setClipboard(urls));
  
  button.css("position", "absolute");
  button.css("right", "50px");
  
  code.css("white-space", "pre-wrap");
  code.css("display", "block");
  code.css("background-color", "#191b1c");
  code.css("padding", "15px"); 
});