Git Product home page Git Product logo

Comments (31)

ncla avatar ncla commented on August 17, 2024

@birjolaxew any progress?

from loungedestroyer.

birjj avatar birjj commented on August 17, 2024

Working on it, rather slowly. Got a bunch of work at school at the moment, but will likely get some work done this weekend.

from loungedestroyer.

birjj avatar birjj commented on August 17, 2024

To-do's:

  • Save auto delay across bets (right now it only saves pr. bet for some reason, should be easy fix)
  • Stop if response indicates that the match has started
  • Create auto-accept logic

Possibly enhancements:

  • Move betting logic to background script, so multiple instances don't run when having multiple tabs open
  • Use chrome.webRequest instead of jQuery.ajaxPrefilter, to avoid injecting into page context

from loungedestroyer.

birjj avatar birjj commented on August 17, 2024

Kind of interested: would people rather see the return of the "Fucking place bet" button instead of the current solution? Would be a whole lot easier to write and understand, and would probably be more intuitive than what I've made.

from loungedestroyer.

Outpox avatar Outpox commented on August 17, 2024

Maybe not with the same sentence, but yes I'd like to have it already displayed

from loungedestroyer.

ncla avatar ncla commented on August 17, 2024

Well, the previous LD users might be confused as to where the button has gone and might even think the feature is gone (which it is at the moment, anyway, on Chrome App store).

from loungedestroyer.

birjj avatar birjj commented on August 17, 2024

Working on a rewrite, I much prefer the "Fucking place bet" button personally - not sure why I didn't think of it when originally writing it.

from loungedestroyer.

ncla avatar ncla commented on August 17, 2024

FYI I added Inventory.bettingInventoryType for you as you asked on Steam.

from loungedestroyer.

birjj avatar birjj commented on August 17, 2024

Awesome, thanks

from loungedestroyer.

ncla avatar ncla commented on August 17, 2024

Auto-betting was reworked by @birjolaxew, now it works as a background task. Those who are reading this are advised to try it out.

from loungedestroyer.

ncla avatar ncla commented on August 17, 2024

@birjolaxew someone on 7.2.0 Reddit thread said that this doesn't work on Dota2Lounge. did you have a chance to look into it?

from loungedestroyer.

ncla avatar ncla commented on August 17, 2024

#44 to reproduce the issue.

from loungedestroyer.

birjj avatar birjj commented on August 17, 2024

Got simultaneous Dota2/CSGO betting working, sans messaging. Unfortunately haven't had time to work on it all week.

from loungedestroyer.

ncla avatar ncla commented on August 17, 2024

Would be nice if you could move the betting logic from background.js to bet.js

from loungedestroyer.

ncla avatar ncla commented on August 17, 2024

Should we perhaps remove limitation for delaying requests?

from loungedestroyer.

birjj avatar birjj commented on August 17, 2024

The only limit is currently the min attribute on the input element. Feel free to change to whatever.

The reason I set a lower limit was so we avoided overloading their servers.

from loungedestroyer.

ncla avatar ncla commented on August 17, 2024

So, predict pages have been introduced and a lot of stuff is broken because there is a lot of hardcoded crap.

from loungedestroyer.

ncla avatar ncla commented on August 17, 2024

The way it should be coded:

  • Hardcode the least amount of stuff possible
  • Instead of having two buttons (FUCKING PLACE BET and Place Bet), have only one button by overriding the default one, if user doesn't want to it to be overridden, provide an option in settings. If the button changes, we can leave it to be default button. Or just add a fucking tick box.
  • We observe postbet AJAX requests now with webRequest onBeforeRequest listener since it provides post data (which.. we somehow didn't know about? ¯_(ツ)_/¯ )
  • Check post bet requests by post data
  • Get rid of LD auto-bet elements being in the DOM 24/7
  • Perhaps ditch the renew hash thing

What do we gain (or more like.. lose)? Half of the code will be deleted.

from loungedestroyer.

ncla avatar ncla commented on August 17, 2024

Auto-bet popup doesn't close or change when stopping auto-bet.

from loungedestroyer.

birjj avatar birjj commented on August 17, 2024

Rewriting with webRequest not possible - can't read response body.

from loungedestroyer.

ncla avatar ncla commented on August 17, 2024

Backup of predict page HTML http://pastebin.com/Bx8Bv01p

from loungedestroyer.

ncla avatar ncla commented on August 17, 2024

@birjolaxew something weird happened when I requested items back with first try, the page didn't refresh automatically. and when I refresh the page the auto-betting was there but I was in the queue anyway.

from loungedestroyer.

ncla avatar ncla commented on August 17, 2024

@birjolaxew I requested returns back and nothing happens with trade offer. It did open the tab however.

from loungedestroyer.

ncla avatar ncla commented on August 17, 2024

@birjolaxew Dota2Lounge trade offer was not accepted automatically... Trade offer was opened, but auto-accept did not start.

from loungedestroyer.

ncla avatar ncla commented on August 17, 2024

@birjolaxew

cough cough

Guess what element is that. Dota2Lounge Dark theme.

from loungedestroyer.

ncla avatar ncla commented on August 17, 2024

'Add items to bet' text should not be replaced for the button.

from loungedestroyer.

ncla avatar ncla commented on August 17, 2024

Captchas on trade offers, woooo, yay!

from loungedestroyer.

ncla avatar ncla commented on August 17, 2024

They changed their shitty captcha to reCAPTCHA, now we could just easily click on 'I am not a robot' circle and accept offer.

from loungedestroyer.

birjj avatar birjj commented on August 17, 2024

Fucks sake, I had just broken their captcha too... I'm afraid Google's might be unbreakable.

from loungedestroyer.

ncla avatar ncla commented on August 17, 2024

Yeah, it looked so easy to break with open libraries on GitHub.

from loungedestroyer.

ncla avatar ncla commented on August 17, 2024

I am just gonna close this issue and create a separate issue for captcha issue.

from loungedestroyer.

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.