Greasy Fork

25pp_ipa_download

try to take over the 25pp world!

当前为 2018-04-28 提交的版本,查看 最新版本

// ==UserScript==
// @name         25pp_ipa_download
// @namespace    http://tampermonkey.net/
// @version      0.3
// @description  try to take over the 25pp world!
// @author       keulraesik
// @match        https://www.25pp.com/ios/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    var fix_btn = function () {
        var buttons = document.getElementsByClassName("btn-install-x");
        console.log("buttons.length", buttons && buttons.length );
        if (buttons && buttons.length) {
            var button = buttons[0];
            button.onclick= function() {
                window.location = atob(button.getAttribute("appdownurl"));
            };
            // button.style.color="#FF00FF";
			button.innerText = button.innerText + "(直接下载ipa)";
        }
    };

    setTimeout(fix_btn, 512);
})();