Live data from Hacker News

I miss the programmable web (2021)

matt-rickard.com

111–120 of 180 posts

Re: I miss the programmable web (2021)

#111

My most used bookmark is this, for speeding up the first audio or video element on the page. I suppose that's if you don't count me typing 'n' and auto-completing my way to hacker news. javascript:(function() { (document.querySelector('video') || document.querySelector('audio')).playbackRate = (+prompt('How many times normal speed?') || 1); })();

For webkit based browsers, you can also use Video Speed Controller extension https://github.com/igrigorik/videospeed

On YouTube I've had a great experience using Sponsorblock which crowd sources categorizing different parts of the video. If a bunch of people categorized the first 10 seconds of a particular video as "Intro", that section of the video scrub/seek bar is highlighted in a color that represents that category. I have Sponsorblock set to skip Intros, so I never see them unless it's a very very fresh video that nobody has categorized yet.

It's baked into YouTube Vanced on mobile, which was sadly taken down by Google. Smart Tube Next is another Android app with this feature, but I'm not sure if it's available for anything other than TV set top boxes.

Re: I miss the programmable web (2021)

#112

Earlier quoted context omitted.

If you build web pages without the whole JS frameworks and Node circus, they are pretty durable. Those helpers were invented because people started to build empires (complex applications) on sand (the web), so they are pretty useful for larger projects, but simple websites can still be easily built with plain HTML/CSS/JS.

yeah but there is no value, personally in building projects like that anymore, you can not use them in your portfolio or to progress your career - i was going to build a personal site, but realised it would probably act as more of a hindrance to me, because potential clients/employers would see that it was not using latest new js fad. if it was up to me i would never touch those things, but that's what the market has…

If the only reason you build websites is to get paid then you're part of the problem. Separate your personal and professional lives. Or do you not enjoy building on the web for fun?

Re: I miss the programmable web (2021)

#113

Earlier quoted context omitted.

If you build web pages without the whole JS frameworks and Node circus, they are pretty durable. Those helpers were invented because people started to build empires (complex applications) on sand (the web), so they are pretty useful for larger projects, but simple websites can still be easily built with plain HTML/CSS/JS.

yeah but there is no value, personally in building projects like that anymore, you can not use them in your portfolio or to progress your career - i was going to build a personal site, but realised it would probably act as more of a hindrance to me, because potential clients/employers would see that it was not using latest new js fad. if it was up to me i would never touch those things, but that's what the market has…

FOMO is a bad career advisor. It puts you in direct competition with all the other people anxiously doing only what they think everyone wants them to do. Sort of hard to distinguish yourself if you are doing exactly the same super trendy things everyone else is doing.

Re: I miss the programmable web (2021)

#114
post #17
post #10

Huh? Userscripts are dead according to author, but I apparently never got the notice because I have about a dozen of those things installed right now. Three of them are for YouTube because it's this much annoying as is.

What do your user scripts do if you don't me asking? 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.

I made one for youtube that moves the seek bar below the video, instead of on top of the video. In addition it removes the gradient etc. I've always hated how it covered up the content. (pure css, but still)

Re: I miss the programmable web (2021)

#115
post #22

I miss: bookmarklets and user scripts I use bookmarklets all the time. I can't imagine living without them. For example, this is how I read HN: https://twitter.com/marekgibney/status/1551483561621979136 The bookmarklet takes me to the latest HN post I have not seen. When I click it again, it takes me to the next I have not seen. As soon as I see a post I have seen before, I know I am up to date. I can't imagine readi…

javascript:if (typeof e!=='undefined') e.style.background='#ccc'; e=Array.from(document.querySelectorAll('.age%20a:not(.s)')).sort().at(-1); e.style.background='#ff0';e.classList.add('s'); e.scrollIntoView({behavior:"smooth",block:"center",});{} Looks like the code got mangled in the Twitter post, in particular the curly braces at the end. And the line order, "e=" should be at the beginning logically. javascript:e=Ar…

It is all one line. Yes, Twitter formats it in a way that makes it impossible to copy just the text. Because it thinks that .style is a toplevel domain and #ccc is a hashtag.

Here is a repo from which it is easy to copy:

https://github.com/no-gravity/hn-bookmarklet

Re: I miss the programmable web (2021)

#116
post #3

I thought this would be about the glory days of “Mash-ups” using web APIs. Flickr + Twitter + Delicious tags to create a new experience. 2007 ? What a period to be a hacker!

And that is not dead either, in fact it is better because you can just self-host https://nodered.org/

Re: I miss the programmable web (2021)

#117
post #115

Earlier quoted context omitted.

javascript:if (typeof e!=='undefined') e.style.background='#ccc'; e=Array.from(document.querySelectorAll('.age%20a:not(.s)')).sort().at(-1); e.style.background='#ff0';e.classList.add('s'); e.scrollIntoView({behavior:"smooth",block:"center",});{} Looks like the code got mangled in the Twitter post, in particular the curly braces at the end. And the line order, "e=" should be at the beginning logically. javascript:e=Ar…

It is all one line. Yes, Twitter formats it in a way that makes it impossible to copy just the text. Because it thinks that .style is a toplevel domain and #ccc is a hashtag. Here is a repo from which it is easy to copy: https://github.com/no-gravity/hn-bookmarklet

Did you write this? If so, why did you add the "{}" at the end? Also, can't you use newlines in bookmarklets?

Re: I miss the programmable web (2021)

#118
post #29

Earlier quoted context omitted.

Would you mind giving me an example of something you've wanted to do that is really hard (or even nearly impossible) due to the these issues (so I have a standing concrete challenge case)?

Facebook and Instagram ads. Impossible to block through CSS now as the CSS classes are dynamically generated + it's even hard to pick out sponsored posts using .js too.

Just block the entire feed and go directly to the profile pages of users you want updates from.

Re: I miss the programmable web (2021)

#119

Earlier quoted context omitted.

If you build web pages without the whole JS frameworks and Node circus, they are pretty durable. Those helpers were invented because people started to build empires (complex applications) on sand (the web), so they are pretty useful for larger projects, but simple websites can still be easily built with plain HTML/CSS/JS.

yeah but there is no value, personally in building projects like that anymore, you can not use them in your portfolio or to progress your career - i was going to build a personal site, but realised it would probably act as more of a hindrance to me, because potential clients/employers would see that it was not using latest new js fad. if it was up to me i would never touch those things, but that's what the market has…

I would go so far as to say javascript hurts the web. If hacker news was written like facebook the user numbers wouldn't be the same. Endless transitions, spas, waiting for loading, glitches, popups with fades, all that is a waste of time - the user just wants to read text. I want clean loading, just simple clean html, fast rendering, nothing processed after i get the html rendered. What would be rad is a facebook.clean where you can just HN style rendering, clean tables, the browser keeps track of what you clicked, super fast interactions etc.

Re: I miss the programmable web (2021)

#120
post #115

Earlier quoted context omitted.

It is all one line. Yes, Twitter formats it in a way that makes it impossible to copy just the text. Because it thinks that .style is a toplevel domain and #ccc is a hashtag. Here is a repo from which it is easy to copy: https://github.com/no-gravity/hn-bookmarklet

Did you write this? If so, why did you add the "{}" at the end? Also, can't you use newlines in bookmarklets?

Yes, I wrote it.

The {} prevents the code from evaluating to a value that the browser then would use as the new value for the DOM, overwriting the existing page.

Try bookmarking javascript:123 and see what happens when you click it.

Bookmarklets are URLs, so a newline in the code would be urlencoded as %0A. So you could do:

javascript:alert(1)%0Aalert(2)

But I would prefer:

javascript:alert(1);alert(2)

Post reply on HN