by grishka · 4y ago · 0 comments
But tbh I can't really imagine any scenario that is near impossible - except for WASM driven web pages which will break just about anything :(
It was eventually abandoned.
Two things make this vastly more difficult now:
1. Twitter uses obfuscated css classes that appear to change on every deploy, which makes scraping hard.
2. You used to be able to get around the limit on bookmarklet code size by adding a script tag to the page and loading remote javascript. Now browsers respect HTTP headers that sites can use so that only scripts from whitelisted sites are loaded.
I could see using a set of standard tweets you created to sort of benchmark the change.
www.google.com##div[role="heading"]:has-text(/^People also ask$/):upward(5)
www.google.com##span:has-text(/^People also ask$/):upward(5)
www.google.com##div[role="heading"]:has-text(/^Cast$/):upward(5)
www.google.com##span:has-text(/^Cast$/):upward(5)
www.google.com##h3:has-text(/^Videos/):upward(5)
www.google.com##h3:has-text(/^Images/):upward(5)
www.google.com##div[role="heading"]:has-text(/^People/):upward(5)
www.google.com##span:has-text(/^People/):upward(5)
www.google.com##h4:has-text(/^People/):upward(5)
www.google.com##span:has-text(Related searches):upward(5)
www.google.com##span:has-text(/^Latest/):upward(4)
www.google.com##h3:has-text(/^Top stories/):upward(6)
www.google.com##div:has-text(/^Trailers/):upward(4)
www.google.com##g-scrolling-carouselYou'd probably think it'd be simple, right? This being the kind of thing that Cascading Style Sheets were designed to handle elegantly and gracefully?
https://maya.land/user-styles/youtube/
I always thought people on here were just cranks complaining about style bloat, because a lot of the "this could have been a text file" arguments were applied to things that were genuinely better with the presentation polish. But this? How can developer ergonomics be worth this?
Anyway, user styles and user scripts and bookmarklets are all great and I use them all the time. This level of Big Tech deformation of the basic web technologies makes them more annoying, but still not impossible.
It's still around: https://patorjk.com/blog/software/
I wonder why no one ever made something like this for the web.
On a site note: Been looking for one to show reccomendations always based on simmiliar vids, not my recently watched and whatever the black box algorithm is offering me. Unfortunately I never figured out how do it properly, since the position of the element seems to be random and sometimes straight up missing.
1. Prevents channel page video from auto-playing (not mine)
2. Removes the stupid custom scrollbar that takes up actual pixels on my screen at all times
3. Automatically sets highest available video quality by clicking through the quality menu so I don't have to
And those are in addition to SponsorBlock and uBlock Origin extensions.
Userscripts will run, but if they try to load any content from elsewhere, that breaks. So, for example, the Hypothes.is extension wont load. Affected sites keep growing. https://twitter.com turned on CSP many years ago.
I agree. This is simple & stupid a problem. It's grossly anti-user. But today, security rules, and security sees all the misdeeds of users, and those who would prey on them, and they have no emapathy left for creativity and fun. There's no moral-value-party left anywhere that defends user freedom, that is pro end-user-hacking.
The Manifest V3 (MV3) catastrophe is still scheduled for 4 months out, even though there is still only 1/3rd the work done thay it would take to allow GreaseMonkeyTamperMonkey/et-cetera to live. The new browsers are actively unwinding power & possibility, forever trying to undo the permissiveness that it had (ex: CORB, and now ORB). The standards authors & browser makers are infected with deep deep fear. Certainty & closedness is winning.