Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Doesn't work with installed apps.

About: Direct download from Google Play

Comments

  • Hi, thank you for the report. I'm aware about the two bugs. For the first one, it's very difficult to solve, as there are 4 different UIs used by the Play Store, and two of them are not even written in HTML, but in a non standard language created over javascript. Moreover, the class names used by Google are randomized, so that is really hard to edit elements using scripts.
    The second should be easy to solve: I don't have a phone with Play Store, so I have no way to see how the interface of the site looks like if accessed from a Google account. Can you please help me fixing this? I just need you to send me a post with the internal HTML code of the install button on a page of an already installed app, as in this screenshot:

    Thanks!

  • <div class="hwKISe">
        <c-wiz jsrenderer="z2mnpe" jsshadow="" jsdata="deferred-i16" data-p="%.@.[&quot;ru.ok.android&quot;,7]]" data-node-index="0;0" autoupdate="" jsmodel="hc6Ubd">
            <button class="LkLjZd ScJHi HPiPcc IfEcue  " jscontroller="kSfS7" jsaction="MH7vAb" jsmodel="og5Pbf" data-item-id="%.@.&quot;ru.ok.android&quot;,7]">Установлено</button>
            <c-data id="i16" jsdata=" sCuaec;_;13 OKeYaf;_;17 pH8t9b;_;5 Iy7Swf;_;15"></c-data>
        </c-wiz>
    </div>
    
  • edited November 2018 Firefox

    Ok, maybe I found the error: the script looks for both the Install button and for the Whishlist button, but if the app is installed, the Whishlist button is not present.
    Also the price seems not to be reported in the page, as the app is already installed.
    Can you please check if in the html code you can find a meta element with the itemprop="price" property?
    If I'm right, the test build here below should enable the three buttons for the installed applications. They will only work for free apps, not for paid apps even if you purchased them.
    https://greasyfork.org/it/scripts/374716-direct-download-from-google-play-test-build
    If with this script the browser doesn't show an alert with the price, it means that the price is not reported.

  • test build: nothing changes

  • Ok, so there should be some other things not working. Have you seen some errors reported in the console log inside the browser? The price alert didn't pop up, did it?

  • edited November 2018 Opera
  • edited November 2018 Firefox

    Ok, at least I was right on that. But I've been so stupid that I wrote "price==0" instead of "price=0" to set the price as if it is zero...
    Update the test script and see if it works.

  • edited November 2018 Opera

    @StephenP написал:
    Ok, at least I was right on that. But I've been so stupid that I wrote "price==0" instead of "price=0" to set the price as if it is zero...
    Update the test script and see if it works.

    Hooray! works! but button "installed"...

    and appeared alert for non-installed

  • edited November 2018 Firefox

    Hi, I'm here to report this bug. And I found there's someone has already reported it. Thanks to both of you for everything you have done.
    Hope it will be fixed. If there's anything I can help, pls email me: cbtsjmh@126.com

  • edited November 2018 Firefox

    @Legended : There's a temporarily way to download apk: logout your google account on the app page which you want to download, then reflash the page, and you will see the three buttons. :)

  • edited November 2018 Firefox
    I found a solution: check the 2.2.7 version of the test build, if it works also for you, i'll move the changes to the stable release of the script.
    The Install button isn't anymore divided (background on the left and label on the right), but is shown on the left of the downloade buttons.
  • @StephenP написал:
    Found a solution: check the 2.2.7 version, if it works also for you, i'll move the changes to the stable release of the script.
    The Install button isn't anymore divided (background on the left and label on the right), but is shown on the left of the downloade buttons.

    2.2.7? where?

  • edited November 2018 Opera

    All works! thx! fix in future this pls.

  • edited November 2018 Firefox

    I'll try to! I think that here the problem is the length of the label of the wishlist button. Which language is that? Russian? I need to know so I can test how large should the buttons container be.

    If i set russian on Firefox and log in, it is shown correctly. Which browser are you using?

  • edited November 2018 Opera

    Yes, Russian, browser: Opera Developer 59.0.3147.0.
    You on the screenshot "add in wish list" is located under the buttons, I have it on the right.

  • I see that. I installed the same version of Opera you have, installed TamperMonkey and I see exactly what you see. With Tampermonkey or Greasemonkey on Firefox, everything works correctly.
    Looking at the code of the page, the width of the content (App logo, name, description, buttons, etc.) should be the 100% of the white container in the background, so I really can't figure out how is it possible that the buttons fall outside that area.

  • Must be well

    Not in "hwKISe" class

Sign In or Register to comment.