Skip to content

Instantly share code, notes, and snippets.

@mahemoff
Last active June 14, 2016 11:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mahemoff/d9b0248348cff8b279071ce4c4788b5a to your computer and use it in GitHub Desktop.
Save mahemoff/d9b0248348cff8b279071ce4c4788b5a to your computer and use it in GitHub Desktop.
Android Play control freak script to show %ge
  1. Install Chrome freak extension (https://chrome.google.com/webstore/detail/control-freak/jgnchehlaggacipokckdlbdemfeohdhc?hl=en)
  2. Visit Play store developer console and open an app listing
  3. Open control freak icon beside URL bar (look for the gears/setting icon on top-right of browser)
  4. In control freak, click on "This domain (play.google.com)
  5. In control freak, copy the CSS, JS, and Libs from above here
  6. Hit save and exit control freak
  7. Reload the page! App listing should now include %ge.
.average {
font-weight: bold;
display: block;
font-size: 2em;
margin-left: 1em;
}
.gwt-TextArea {
resize: both !important;
height: 600px;
}
function go() {
$ratings = $('[title*="ratings with"]');
var totalRating = totalRaters = 0;
$ratings.map(function(i) {
var rating = 5-i,
raters = parseInt($(this).html().replace(',',''));
console.log('iii', i);
totalRating += raters * rating;
totalRaters += raters;
});
var average = totalRating/totalRaters;
var percentToNext = 1000*((average-0.05)%0.1);
$('<span class="average">' + average.toFixed(4) + ' (' + percentToNext.toFixed(1) + '%)</span>')
.insertAfter(($ratings).last());
$("strong:contains('Eleven Three')").parent().parent().parent().remove()
}
setTimeout(go, 2000);
http://ajax.googleapis.com/ajax/libs/jquery/2.0.2/jquery.min.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment