Anyone know of any way / Chrome extension to remove, resize, etc. elements on T212’s portfolio page and for these settings to apply each time you access it?
I know enough HTML & CSS to modify the page.
Just need something to remember those changes and apply them on page load.
From my very limited knowledge of chrome extensions, you would probably use a content.js script to inject some JS and CSS that modifies the layout using the DOM.
You probably remember me from the other thread I authored, I had also mentioned there that I was planning to add a chrome extension to fix common complaints like this. Layout being one, but I wanted to ask, would you be willing to use a chrome extension developed by a stranger on a website which has your financial data. If not, what measures would make it acceptable (open source etc..)?
Sorry for the slight hijaking, hope you don’t mind.
Totally fair. I’d probably feel the same way if the roles were reversed.
There’s only really one option that kind of fits what you’re looking for:
An open source Chrome extension or Tampermonkey script. You’d be able to copy/download it and install it yourself in seconds — takes under 30 seconds, and pretty much no expertise.
But here’s the tricky part — even with open-source code, the trust issue doesn’t completely go away. Unless someone’s technical enough to review the script and understand what it’s doing (Legitimate DOM manipulation vs. data exfiltration), there’s always a risk that something shady could be buried inside.
I’d be more than happy to develop such an extension/script when my project get’s to that stage. But, as I’ve said, those trust problems above don’t go away.
I looked into this some time ago because I couldn’t use the “new” web app as is (the chart window was way too small). Since I didn’t get the impression that this problem was going to be fixed anytime soon… I just modified the UI layout to my liking. I ended up going with Stylus and writing a bunch of custom CSS code. The way it works is that your custom styles code gets auto loaded every time you visit the T212 site (so you always see your version of the site and not T212’s version). Occasionally some styling will break (this is because T212 updated some code related to the layout) and you just have to adjust the styling to fix it. It isn’t a perfect solution, but good enough for my own needs.
One thing to note is that it was very, very annoying to target certain elements on the page due to the way the code is written, but eventually I got it working and to a point where I’m much happier with the main layout now. The chart window is bigger and thus more usable.
I’d suggest to look at Tampermonkey. You can add custom scripts and decide where to run it, and it will automatically apply it to the website. Maybe it’s what you are looking for.
I see that you are taking a liking to Stylus, @Vio! It’s quite nice… isn’t it?
I’m also a little jealous that the changes you made had easy selectors to target. Some of mine were ridiculous. No data-testid, no id, no class. Only the HTML element (e.g. div) and a style tag with CSS.
Oh definitely! I just think our “goals” are probably a little different with the UI changes we respectively want. Though one common goal was getting “rid” of that (imo - useless) watchlists toolbar.
But maybe I’m also blind or they added more data-testid attributes to their code since I first did this?
As I checked one of the elements I was adjusting and I now see a data-testid on it. data-testid="layout-cell-simple-separator-top"
In my code I had to use stuff like this to target it…