google play apk downloader

add a download button (https://apps.evozi.com/apk-downloader/?id=xxx) to goole pages (play.google.com/store/apps/details?id=xxx)

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

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

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         google play apk downloader
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  add a download button (https://apps.evozi.com/apk-downloader/?id=xxx) to goole pages (play.google.com/store/apps/details?id=xxx)
// @author       yurenchen
// @match        https://play.google.com/store/apps/details?id=*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    //获取 apk id
    //var id=document.body.getAttribute('data-docid');
    var id=location.search.match(/id=(.*)/)[1];
    //利用 apps.evozi.com 下载
    var url='https://apps.evozi.com/apk-downloader/?id='+id;
    //创建超链接按钮
    var html='<a href="'+url+'" class="large play-button download-apk-button apps ">download apk</a>';
    $('.details-actions>div:first>span').append(html);

})();