HSX Forum

Playing & Trading Strategy

Portmonkey Auto-pick - How to disable to prevent accidental trades -inside-

Posted by: arf on Apr 06, 16:03

This is just a super quick hack, not elegant, not clean, and I'm not sure where to post it.

For Background:  It'd be nice to have an option for Portmonkey to not auto-fill in the stock name when the mouse passes by a tag, drove me nuts.   Having as a checkbox in options would be great, but I'm not sure who to suggest that to.

In the meantime, go to greasemonkey, manage scripts, and edit portmonkey script.  It should open in notepad, or whatever text editor you choose.  

Go down to line 1351 (or search for "mouseover")

You will find this line:

item.addEventListener("mouseover", putTicker, false);

at the start of that line, comment it out by adding two slashes, so it looks like:

        // --slashes stop this line from running-- item.addEventListener("mouseover", putTicker, false);

Save the .js file in the same place, and reload the page.  SBL no longer auto-fills when your cursor goes over a tag.   The bad news is, SBL doesn't fill out when you click on a tag, either, since that action is reserved for opening the security's detail page.   So, to trade in the (no longer) Quick Trade pane, you need to paste the security, then pick amount and action.

That is a dirty hack that still leaves the infrastructure to add an "OnClick" method to fill out the SBL field, but for now, I'm happy enough copy pasta, since it isn't costing me half a million dollars in mis-clicks a day.  I know some of you are better with a mouse and pay attention, but I lost too much, and the weekend is coming up, which means I'd be "erroring" a lot more...

If you have problems with it, just edit the file again and remove the slashes, leaving the original line 1351 intact.  No need to reinstall.

This doesn't effect any of the other portmonkey functionality that I've found so far.





Post a Reply

To post to the forums you must first login!


World War Z 2 (WWZ2) 20000 115.86 (+0.15)          John Wick Prequel (WICK0) 20000 31.13 (+0.01)          The Cat in the Hat (TCATH) 50000 83.16 (-0.08)          Street Fighter (STFTR) 10000 57.07 (-0.21)          Dragon (DRAGO) 150000 6.03 (+0.36)          The Gallerist (GALRS) 150000 5.78 (+0.68)          The Hole (THHOL) 150000 6.60 (-0.44)          The Hole (THHOL) 150000 6.60 (-0.44)          Twilight of the Dead (TWOTD) 150000 3.42 (+0.41)          Twilight of the Dead (TWOTD) 150000 3.42 (+0.41)          They Know (TKNOW) 150000 14.83 (-1.06)          They Know (TKNOW) 150000 14.83 (-1.06)          Tyrant (TYRNT) 150000 21.25 (-0.36)          Lords of War (LRDW2) 150000 10.38 (-0.34)          Outside Man (OUTSM) 150000 9.28 (-0.26)          Outside Man (OUTSM) 150000 9.28 (-0.26)          The Decline Of Fucking Western C (DOFWC) 150000 5.14 (-0.26)          The Hunger Games: Sunrise on the (HGAM6.OW) 105 94.17 (+0.20)          The Decline Of Fucking Western C (DOFWC) 150000 5.14 (-0.26)          Drag (DRAG) 150000 6.09 (+0.82)          Drag (DRAG) 100000 6.09 (+0.82)          Witch on the Holy Night (WOTHN) 150000 4.09 (+0.05)          Children of Blood and Bone (COBAB) 1 27.80 (0.00)          The Sims Movie (TSIMS) 150000 26.46 (-0.10)          The Beekeeper 2 (BEKP2) 150000 37.57 (+0.10)          Narnia: The Magician's Neph (NARN4) 1 42.16 (+0.01)          Sonic the Hedgehog 4 (SONC4) 150000 166.75 (+0.34)          Gatto (GATTO) 150000 147.53 (-0.33)          The Thomas Crown Affair (TTCAF) 150000 80.58 (+0.25)          Spaceballs: The New One (SPCB2) 150000 143.83 (-0.44)          Dragon (DRAGO) 150000 6.03 (+0.36)          Spider-Man: Beyond the Spider-Ve (ASPD3) 150000 271.35 (+0.75)          A Quiet Place: Part III (AQPL4) 1 124.47 (-0.11)          A Minecraft Movie Squared (MINE2) 150000 335.98 (+0.75)          Teenage Mutant Ninja Turtles (li (TMNT5) 50000 80.04 (0.00)          The Conjuring: First Communion (CNJU5) 50000 89.91 (-0.08)          The Angry Birds Movie 3 (ANGR3) 1 39.76 (0.00)          The New Simpsons Movie (SIMP2) 50000 169.63 (+0.11)          Oceans (OCEN5) 169 77.69 (0.00)          Brendan Fraser (BFRAS) 25000 30.61 (+0.12)          Frozen III (FROZ3) 1 355.23 (0.00)          Treasure Island (TISLN) 150000 81.79 (+0.25)          I Play Rocky H$15 Put (IPROC.PU) 25000 1.79 (+0.02)          I Play Rocky - Opening Weekend (IPROC.OW) 100000 16.48 (+0.02)          I Play Rocky H$15 Call (IPROC.CA) 25000 2.46 (+0.02)          The Hunger Games: Sunrise on the (HGAM6.PU) 25000 1.83 (+0.06)          The Hunger Games: Sunrise on the (HGAM6.OW) 100000 94.17 (+0.20)          The Hunger Games: Sunrise on the (HGAM6.CA) 25000 3.73 (+0.03)          Compassionate Release aka The Fr (CMPSN) 50000 37.70 (+0.03)          The Cat in the Hat (TCATH) 50000 83.16 (-0.08)