Macapp.so Link

Show baidu link for macapp.so

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         Macapp.so Link
// @namespace   https://greasyfork.org/en/scripts/13086-macapp-so-link
// @version      0.11
// @description  Show baidu link for macapp.so
// @author       kk
// @match        http://www.macapp.so/*
// @grant        none
// @require      https://code.jquery.com/jquery-2.1.4.min.js
// ==/UserScript==

'use strict';
$(setTimeout(function () {
        if (document.getElementById("code")) {
            var dl = document.getElementsByClassName("download")[0];
            var code = document.getElementById("code");
            code.style.color = "rgb(51,51,51)";
            code.style.lineHeight = "0";
            code.style.cursor = "text";
            var a = document.createElement('a');
            a.innerHTML = "Get App";
            var href = "/go" + window.location.pathname;
            a.setAttribute("href", href);
            a.setAttribute("target", "_blank");
            dl.insertBefore(a, code);
            code.removeAttribute("id")
        }
    }
    , 1000));