MultiUp Link Display

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

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

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

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

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

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

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.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

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