Changing 3th party website with custom JS and tampermonkey -- 2

Job ID: 30694846

Budget: $30 – $250 USD

Important:
This website is not my website!
I don't have access to the source!
This modification needs to be done with javascript and tampermonkey (inject custom JS)

video (see attachment):
go to https://www.tradingview.com/chart/

see attachment for requirements including screenshots

What happens now:
1. Choose long or short position
2. Click on the chart
3. Position is shown in default width, let’s call this ‘W’. (where W = the default width)


What should happen:
1. Choose long or short position
2. Click on the chart
3. Position is shown in default width, let’s call this ‘W’. (where W = the default width)
4. The custom JavaScript code changes this width to 5 x W (make it 5x as wide)



Note:
1. The chart can have multiple long or short positions on it
2. It has to work in single chart mode, as well as multiple chart mode
(2 chart mode shown in images)

Requirements:
1. The code should run fast, max 100ms
2. It should be a JavaScript only solutions, so it can be loaded in tampermonkey
3. It should work without changing anything else (no zooming, no moving the mouse etcetera)
4. The code should have a setting to configure the width
Related categories: JavaScript jQuery / Prototype