Discussions » Creation Requests

Google play get link details?id=

§
Posted: 02.01.2015

Google play get link details?id=

Add link in details-actions get details?Id=

example
of https://play.google.com/store/apps/details?id=net.biniok.tampermonkey
to http://apps.evozi.com/apk-downloader/?id=net.biniok.tampermonkey

woxxomMod
§
Posted: 02.01.2015
Edited: 02.01.2015
// ==UserScript==
// @name          GooglePlay download APK button
// @description   Download APK (via apps.evozi.com) button next to the Install button
// @include       https://play.google.com/store/apps/details*
// @run-at        document-start
// @author        wOxxOm
// @grant         none
// ==/UserScript==

window.addEventListener('DOMContentLoaded', function(e) {
  var c = document.querySelector('.details-actions');
  if (c)
    c.insertAdjacentHTML('beforeend',
          '<div class="play-button">\
          <a href="https://apps.evozi.com/apk-downloader/?id=' + 
          document.location.href.replace(/^.+?\?id=(.+)$/,'$1') + 
          '"><img src="https://apps.evozi.com/apk-downloader/assets/favicon.ico"> Download</a></div>');
});

Something like this?

§
Posted: 05.01.2015

wOxxOm thank you very much...

Post reply

Sign in to post a reply.

长期地址
遇到问题?请前往 GitHub 提 Issues,或加Q群1031348184

赞助商

Fishcpy

广告

Rainyun

注册一下就行

Rainyun

一年攒够 12 元