Comments (31)
@birjolaxew any progress?
from loungedestroyer.
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.
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.
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.
Maybe not with the same sentence, but yes I'd like to have it already displayed
from loungedestroyer.
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.
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.
FYI I added Inventory.bettingInventoryType
for you as you asked on Steam.
from loungedestroyer.
Awesome, thanks
from loungedestroyer.
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.
@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.
#44 to reproduce the issue.
from loungedestroyer.
Got simultaneous Dota2/CSGO betting working, sans messaging. Unfortunately haven't had time to work on it all week.
from loungedestroyer.
Would be nice if you could move the betting logic from background.js to bet.js
from loungedestroyer.
Should we perhaps remove limitation for delaying requests?
from loungedestroyer.
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.
So, predict pages have been introduced and a lot of stuff is broken because there is a lot of hardcoded crap.
from loungedestroyer.
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.
Auto-bet popup doesn't close or change when stopping auto-bet.
from loungedestroyer.
Rewriting with webRequest not possible - can't read response body.
from loungedestroyer.
Backup of predict page HTML http://pastebin.com/Bx8Bv01p
from loungedestroyer.
@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.
@birjolaxew I requested returns back and nothing happens with trade offer. It did open the tab however.
from loungedestroyer.
@birjolaxew Dota2Lounge trade offer was not accepted automatically... Trade offer was opened, but auto-accept did not start.
from loungedestroyer.
Guess what element is that. Dota2Lounge Dark theme.
from loungedestroyer.
'Add items to bet' text should not be replaced for the button.
from loungedestroyer.
Captchas on trade offers, woooo, yay!
from loungedestroyer.
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.
Fucks sake, I had just broken their captcha too... I'm afraid Google's might be unbreakable.
from loungedestroyer.
Yeah, it looked so easy to break with open libraries on GitHub.
from loungedestroyer.
I am just gonna close this issue and create a separate issue for captcha issue.
from loungedestroyer.
Related Issues (20)
- Trade info filtering box is bugged on home page
- Max bet total should be limited to items that are <= 75 value HOT 1
- Tab focus/creating for options page is broken thanks to a Chromium 49 bug
- Dota prices inaccurate if not base-quality HOT 3
- 'Bellow' typo in update notification
- Remove stream option? HOT 2
- Decrease the amount of notifications
- Use 3rd party Steam market API
- [Request] Button to scroll down the page to bets HOT 3
- Wear status disappears on hover in search HOT 1
- GlassLounge theme: some objects overlap HOT 1
- CleanLounge Night theme: Make trades more distinguishable from each other HOT 1
- Redundant entry: "Show Steam market price" HOT 3
- Retest the 'open new tab if not exist' API bug HOT 1
- Suggestion: When click open to steamanalyst of that object HOT 1
- Inventory loading should clear setTimeout when cancelling it
- Extended match information is broken due to new coin update
- Auto-bump not working due to incorrect redirect to HTTPS HOT 6
- New bug auto bump csgolounge HOT 2
- New error for auto bump dota2lounge/csgolounge HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from loungedestroyer.