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!


Werwulf (WERWU) 9000 77.20 (+3.69)          White Lies (WHTLI) 20000 14.19 (+2.44)          Paddington 4 (PADT4) 150000 26.12 (+1.12)          Hershey (HERSH) 50000 14.27 (+1.81)          Lucky Strike (LCKYS) 150000 3.48 (-0.50)          Young Washington H$10 Put (YWASH.PU) 25000 1.33 (-0.16)          Young Washington H$10 Call (YWASH.CA) 25000 3.06 (+0.08)          Young Washington - Opening Weeke (YWASH.OW) 100000 13.80 (+0.31)          Paddington 4 (PADT4) 150000 26.12 (+1.12)          Nina Dobrev (NDOBR) 25000 34.93 (+0.25)          Aaron Paul (APAUL) 25000 17.18 (+0.40)          La Bola Negra aka The Black Ball (LBNEG) 150000 0.60 (-0.40)          Scary Movie H$105M Blockbuster W (SCAR6.BW) 25000 6.17 (+1.17)          Top Gun 3 (TOPG3) 40 198.73 (-0.49)          Minions & Monsters H$75 Put (MNIO3.PU) 25000 1.11 (+0.05)          Minions & Monsters H$75 Call (MNIO3.CA) 25000 6.13 (0.00)          Minions & Monsters - Opening (MNIO3.OW) 100000 79.46 (-1.85)          Tyrese Gibson (TYGIB) 5000 97.66 (+0.75)          Tyrese Gibson (TYGIB) 25000 97.66 (+0.75)          White Elephant (WELEP) 29999 13.70 (-0.21)          White Elephant (WELEP) 30000 13.70 (-0.21)          Paddington 4 (PADT4) 150000 26.12 (+1.12)          Your Mother Your Mother Your Mot (YOURM) 30000 4.23 (-0.16)          Beware Boiuna aka Legend of the (BOUNA) 39999 19.31 (+0.14)          Beware Boiuna aka Legend of the (BOUNA) 90000 19.31 (+0.14)          Moana (MOAN1) 150000 229.63 (-1.87)          Moana (MOAN1) 150000 229.63 (-1.87)          It Ends (ITNDS) 149999 5.45 (+0.30)          It Ends (ITNDS) 150000 5.45 (+0.30)          Paddington 4 (PADT4) 150000 26.12 (+1.12)          Scary Movie H$105M Blockbuster W (SCAR6.BW) 25000 6.17 (+1.17)          La Bola Negra aka The Black Ball (LBNEG) 150000 0.60 (-0.40)          Young Washington (YWASH) 60000 31.92 (-2.03)          Paddington 4 (PADT4) 150000 26.12 (+1.12)          Young Washington (YWASH) 95000 31.92 (-2.03)          Paddington 4 (PADT4) 150000 26.12 (+1.12)          Minions & Monsters (MNIO3) 50000 311.07 (-2.31)          Paddington 4 (PADT4) 10000 26.12 (+1.12)          Wilford Nappy Pulawa biopic (NAPPY) 150000 39.72 (-0.86)          Paper Tiger (PTIGR) 150000 24.94 (+1.09)          Paddington 4 (PADT4) 100000 26.12 (+1.12)          Pirates of the Caribbean 6 (PIRT6) 150000 40.24 (-1.09)          Spider-Man: Brand New Day (SPID9) 150000 430.17 (+0.23)          Pirates of the Caribbean 6 (PIRT6) 150000 40.24 (-1.09)          Beach Read (BCHRD) 150000 27.59 (-1.10)          Paddington 4 (PADT4) 150000 26.12 (+1.12)          Beach Read (BCHRD) 150000 27.59 (-1.10)          Young Washington (YWASH) 150000 31.92 (-2.03)          Young Washington (YWASH) 150000 31.92 (-2.03)          Deathstroke & Bane (DSTRK) 149999 60.06 (-9.70)