OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

Filter out $0.00 values on Google Play order history

  • Thread starter Thread starter ScrewYourRep
  • Start date Start date
S

ScrewYourRep

Guest
I wanted to check an old purchase on Google Play, but the history will show everything that I claimed. Including, a ton of free apps (listed as $0.00), and it's impossible to filter anything in that list.

So I thought I could make a simple TamperMonkey script to do it for me, but it's not working for some reason.
What am I missing here? Thanks.

Here's what I got so far:

Code:
// ==UserScript==
// @name         Filter Out $0.00 Garbage
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  ...
// @author       Me
// @match        https://play.google.com/store/account/orderhistory
// @icon         https://www.google.com/s2/favicons?sz=64&domain=google.com
// @grant        none
// ==/UserScript==

(function() {
  var ele = document.getElementsByClassName('mshXob');
  for (var i = 0; i < ele.length; ++i) {
    var item = ele[i];
    if (item.innerHTML == '$0.00') {
      var gp = item.parentNode.parentNode.parentNode;
      gp.style.display = 'none';
    }
  }
})();

<p>I wanted to check an old purchase on Google Play, but the <a href="https://play.google.com/store/account/orderhistory" rel="nofollow noreferrer">history</a> will show everything that I claimed. Including, a ton of free apps (listed as $0.00), and it's impossible to filter anything in that list.</p>
<p>So I thought I could make a simple TamperMonkey script to do it for me, but it's not working for some reason.<br />
What am I missing here? Thanks.</p>
<p>Here's what I got so far:</p>
<pre><code>// ==UserScript==
// @name Filter Out $0.00 Garbage
// @namespace http://tampermonkey.net/
// @version 0.1
// @description ...
// @author Me
// @match https://play.google.com/store/account/orderhistory
// @icon https://www.google.com/s2/favicons?sz=64&domain=google.com
// @grant none
// ==/UserScript==

(function() {
var ele = document.getElementsByClassName('mshXob');
for (var i = 0; i < ele.length; ++i) {
var item = ele;
if (item.innerHTML == '$0.00') {
var gp = item.parentNode.parentNode.parentNode;
gp.style.display = 'none';
}
}
})();
</code></pre>
 

Online statistics

Members online
0
Guests online
2
Total visitors
2
Top