Google Play APK downloader

add APK download buttons to Google Play

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

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

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         Google Play APK downloader
// @namespace    https://imciel.com/
// @version      0.2
// @description  add APK download buttons to Google Play
// @author       cielpy
// @match        https://play.google.com/store/apps/details?id=*
// @require http://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    //获取 apk id
    const urlParams = new URLSearchParams(location.search);
    const id = urlParams.get('id')
    //利用 apps.evozi.com 下载
    var url='https://apps.evozi.com/apk-downloader/?id='+id;
    //创建超链接按钮
    const apkPureUrl = 'https://apkpure.com/no/' + id +'/download?from=details'
    var html='<a href="'+url+'" class="large play-button download-apk-button apps evozi" style="margin-left: 8px">Download From Evozi</a>';
    html += '<a href="'+apkPureUrl+'" class="large play-button download-apk-button apps apkmirror" style="margin-left: 8px">Download From APKPure</a>';
    var html = '<div >' + html +'</div>'
    $('wishlist-add').append(html);
    $('wishlist-added').append(html);
})();