Skip to content

Instantly share code, notes, and snippets.

@Far-Se
Last active August 18, 2022 06:04
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Far-Se/245eb00b3efcb1c570cbd1559b543a99 to your computer and use it in GitHub Desktop.
Save Far-Se/245eb00b3efcb1c570cbd1559b543a99 to your computer and use it in GitHub Desktop.
Google Play See Maximum Installs and Release Date.
// ==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