MultiUp Link Display

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

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

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

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Userscripts gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği indirebilmeniz için ayrıca Tampermonkey gibi bir eklenti kurmanız gerekmektedir.

Bu komut dosyasını yüklemek için bir kullanıcı komut dosyası yöneticisi uzantısı yüklemeniz gerekecek.

(Zaten bir kullanıcı komut dosyası yöneticim var, kurmama izin verin!)

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.

(Zateb bir user-style yöneticim var, yükleyeyim!)

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