Last active
August 18, 2022 06:04
-
-
Save Far-Se/245eb00b3efcb1c570cbd1559b543a99 to your computer and use it in GitHub Desktop.
Google Play See Maximum Installs and Release Date.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Google PlayStore Info | |
// @namespace http://tampermonkey.net/ | |
// @version 9.1.2 | |
// @description try to take over the world! | |
// @author You | |
// @match https://play.google.com/store/* | |
// @icon https://t1.gstatic.com/faviconV2?client=SOCIAL&type=FAVICON&fallback_opts=TYPE,SIZE,URL&url=https://play.google.com | |
// @grant none | |
// ==/UserScript== | |
let alreadyReloading = 0; | |
setInterval(()=>{ | |
if(!window.location.href.match(/^https:\/\/play\.google\.com\/store\/apps\/details\?id=[a-z0-9\.]+.*?$/gi))return; | |
(document.querySelectorAll('body > c-wiz[jsrenderer][data-p][class]').length > 1 && !alreadyReloading) && (alreadyReloading = 1) && window.location.reload(); | |
if(document.querySelector('#playStoreInfo'))return; | |
let releaseDate = 0; | |
try{ | |
releaseDate = document.body.innerHTML.match(/\["([a-z0-9 ,]+)",\[\d+,\d+\]\],null,null,\["/i)[1].toLocaleString(); | |
}catch { | |
} | |
let totalInstalls = 0; | |
try { | |
totalInstalls = (~~document.body.innerHTML.match(/,\["[\d,]+\+",\d+,(\d+),"[\d(?:M|K|B)\+]+"\]/)[1]).toLocaleString(); | |
}catch { | |
} | |
let el = document.getElementById("playStoreInfo"); | |
let html = document.querySelector('div.Vbfug.auoIOc').innerHTML; | |
try { | |
document.querySelector('div.Vbfug.auoIOc').innerHTML = `${html}<br><small id="playStoreInfo" style="font-size: 15px; line-height: 0; font-weight: bold;">${totalInstalls} Max Installs</br>${releaseDate}</small>`; | |
} | |
catch { | |
location.reload(); | |
} | |
},200); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment