MultiUp Link Display

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

Du musst eine Erweiterung wie Tampermonkey, Greasemonkey oder Violentmonkey installieren, um dieses Skript zu installieren.

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.

Sie müssten eine Skript Manager Erweiterung installieren damit sie dieses Skript installieren können

(Ich habe schon ein Skript Manager, Lass mich es installieren!)

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        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"); 
});