Coder Social home page Coder Social logo

Comments (14)

Mardaneus86 avatar Mardaneus86 commented on July 17, 2024

They are not triggered (yet). I will try to detect when and which pinEvents have to be sent when relisting auctions. Good point.

from futwebapp-tampermonkey.

debugman5 avatar debugman5 commented on July 17, 2024

I don't see any pinEvents triggered after relisting, only before, when entering the transfer list page

from futwebapp-tampermonkey.

Mardaneus86 avatar Mardaneus86 commented on July 17, 2024

I've done some research, but didn't implement it yet. Code to be used is:

gPinManager.trigger(utils.PinFactory.createEvent(enums.PIN.EVENT.PAGE_VIEW, {
          type: PinManager.PAGEVIEW_EVT_TYPE,
          pgid: pageId
}));

pageId should be "Hub - Transfers" for the first call to the hub, then "Transfer List - List View" for navigating to the transfer list view.

This will be included in the single script version I'm working on.

from futwebapp-tampermonkey.

debugman5 avatar debugman5 commented on July 17, 2024

We should also trigger pinEvents when searching for min price, and its more complicated, because it depends in which screen you currently on.

Actually, its also necessary with auto relisting. I mean, lets say you in the club page and now its time to relist: so you first need to send pinEvent with "Hub - Transfers" and then a pinEvent with "Transfer List - List View" and then a pinEvent with "Hub - Club"

Question: is it possible to "click" on the actual buttons? I mean fire the click event

from futwebapp-tampermonkey.

Mardaneus86 avatar Mardaneus86 commented on July 17, 2024

Yeah, that would be possible when we get the script in 1 single file. Every action could go through a queue so they don't interfere with each other.

It is possible to fake click events. Take a look at https://github.com/martellaj/shortfuts for an example of this.

from futwebapp-tampermonkey.

debugman5 avatar debugman5 commented on July 17, 2024

Wouldn't it be better to take this approach?

from futwebapp-tampermonkey.

Mardaneus86 avatar Mardaneus86 commented on July 17, 2024

It's a different approach. If either one is better is open for discussion, but in the end all actions are sent through the communication delegates.

from futwebapp-tampermonkey.

debugman5 avatar debugman5 commented on July 17, 2024

I think its better in case they will decide to change something in the events

from futwebapp-tampermonkey.

debugman5 avatar debugman5 commented on July 17, 2024

I tested sending the pinEvents using the method you mentioned above and I noticed a difference between the pinEvents that are sent and the one I sent manually.

I attached two har files: originalPostPinEvent.har representing an original post pin event when entering the transfer search page and manualPostPinEvent.har representing the manual one.

Edit by Mardaneus86: (removed HAR files for security reasons)

from futwebapp-tampermonkey.

Mardaneus86 avatar Mardaneus86 commented on July 17, 2024

Well that difference is an extra request to remoteConfig.json which might have been caused by another process. The rest is completely the same.

By the way, I've removed those HAR files for you because they contain your personal cookie information!

from futwebapp-tampermonkey.

debugman5 avatar debugman5 commented on July 17, 2024

So what causing the difference?

And thanks! I forgot to remove them

from futwebapp-tampermonkey.

Mardaneus86 avatar Mardaneus86 commented on July 17, 2024

Like I said, the remoteConfig.json is called on specific intervals by the app. It has nothing to do with pinEvents. I see no difference for the pinEvents themselves... Please reach out on Gitter to discuss this further if you want to.

from futwebapp-tampermonkey.

debugman5 avatar debugman5 commented on July 17, 2024

I've joined Gitter

from futwebapp-tampermonkey.

Mardaneus86 avatar Mardaneus86 commented on July 17, 2024

Fixed in v0.2.2.

from futwebapp-tampermonkey.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.