Live data from Hacker News

Userscripts Are Fun and Are Still Very Much Relevant

dutzi.party

51–60 of 145 posts

Re: Userscripts Are Fun and Are Still Very Much Relevant

#51
I made this bookmarklet for Mixcloud to be able to save the current track to my YouTube playlist.

    javascript:window.open('http://google.com/search?q=' + [].slice.call(document.querySelectorAll('span[class*=TrackInfo]')).reduce((acc,el)=>acc + el.innerText.split(' —')[0] + ' ', '').trim())

Re: Userscripts Are Fun and Are Still Very Much Relevant

#53
Highlight new comment on HN

https://greasyfork.org/en/scripts/18066-hn-comment-trees

For reddit:

https://github.com/Farow/userscripts/blob/master/reddit-high...

Gmail android creator had a unified one for HN+reddit that syncs across sessions, but it lacks features and haven't been updates in years:

https://chrome.google.com/webstore/detail/new-comments/jldpf...

My most used bookmarklets increments playback speed for html5 videos, i have one that +0.5x and one that -0.5x

javascript:(function() {var media = document.querySelectorAll('video,audio'); var rate = media[0].playbackRate+0.5; Array.prototype.forEach.call(media, function(player) {if (rate == null) {return;} else if (rate != 0) { player.playbackRate = rate; } else {player.playbackRate = 1;}}); })();

Also skip forward / back 30s

javascript:(function() {var media = document.querySelectorAll('video,audio')[0];media.currentTime = media.currentTime+29;})();

Forgot:

https://timelens.io/youtube/

Great great for skipping past ads or blocks of content based on visual timeline. Wish this was in more in native media players.

Re: Userscripts Are Fun and Are Still Very Much Relevant

#54
post #2

Tampermonkey, ViolentMonkey and GreaseMonkey are all available in Firefox. Can anyone provide a comparison? Edit for the early commenters: as I stated, all of the above are available on current Firefox. Greasemonkey also has been ported to webextensions. Hence my question. Edit 2: TamperMonkey is closed source source and apparently embeds Google Analytics. Either of those immediately kill it for me, considering the k…

I am an author of many userscripts, and I personally tell my script users to switch from GreasyMonkey when they have problem using my script. The reason is GM inject the script a little bit differently since GM 4 was released, which breaks some hooking techniques so script will break.

As for myself, I use ViolentMonkey because it is more reliable (compared to GM) and open source.

Re: Userscripts Are Fun and Are Still Very Much Relevant

#55

Given the increasingly hostile nature of websites, along with the tendency to remove user control, userscripts are not just still relevant but more relevant than ever. Here's some that I like: https://greasyfork.org/en/scripts/10096-general-url-cleaner https://greasyfork.org/fr/scripts/19210-google-direct-links-... https://github.com/ParticleCore/Iridium

Why use a userscript when you can use a search engine that is not from a spyware company? Like Startpage, Qwant, Duckduckgo or Searx? Alleluia, direct links out of the box.

For youtube, why not give Invidious a try (ok, it has its downs)?

Sometimes, the best solution to "hostile websites" is to not use them in the first place (or use their proxified versions).

Re: Userscripts Are Fun and Are Still Very Much Relevant

#57
post #9
post #7

The company I work for basically relies on use scripts to make any of our internal tools usable. Its kind of insane and makes on-boarding new employees somewhat difficult when they aren't even looking at the same UI as tenured people.

You could create a basic profile for Firefox and load it on their computers. That would solve the issue of different UI’s initially and on-boarding would be easier. I use daily at least 3 Firefox profiles - Plain, Work, Personal I have others specific to clients. Firefox containers are an option now (although my setup predates this). This still allows extensions and everything to be encapsulated.

> I have others specific to clients. Firefox containers are an option now (although my setup predates this). This still allows extensions and everything to be encapsulated.

Thanks for pointing this out, i was thinking about this but lazy enough to postpone research. Now i know

Re: Userscripts Are Fun and Are Still Very Much Relevant

#58
post #55

Given the increasingly hostile nature of websites, along with the tendency to remove user control, userscripts are not just still relevant but more relevant than ever. Here's some that I like: https://greasyfork.org/en/scripts/10096-general-url-cleaner https://greasyfork.org/fr/scripts/19210-google-direct-links-... https://github.com/ParticleCore/Iridium

Why use a userscript when you can use a search engine that is not from a spyware company? Like Startpage, Qwant, Duckduckgo or Searx? Alleluia, direct links out of the box. For youtube, why not give Invidious a try (ok, it has its downs)? Sometimes, the best solution to "hostile websites" is to not use them in the first place (or use their proxified versions).

I tried my best to switch to DDG this year. The results just aren't as good as Google.

Re: Userscripts Are Fun and Are Still Very Much Relevant

#59
post #58
post #55

Earlier quoted context omitted.

Why use a userscript when you can use a search engine that is not from a spyware company? Like Startpage, Qwant, Duckduckgo or Searx? Alleluia, direct links out of the box. For youtube, why not give Invidious a try (ok, it has its downs)? Sometimes, the best solution to "hostile websites" is to not use them in the first place (or use their proxified versions).

I tried my best to switch to DDG this year. The results just aren't as good as Google.

Startpage: "You can’t beat Google when it comes to online search. So we’re paying them to use their brilliant search results in order to remove all trackers and logs."

Searx is a meta search engine. You can gather results from gogle.

Re: Userscripts Are Fun and Are Still Very Much Relevant

#60
post #58
post #55

Earlier quoted context omitted.

Why use a userscript when you can use a search engine that is not from a spyware company? Like Startpage, Qwant, Duckduckgo or Searx? Alleluia, direct links out of the box. For youtube, why not give Invidious a try (ok, it has its downs)? Sometimes, the best solution to "hostile websites" is to not use them in the first place (or use their proxified versions).

I tried my best to switch to DDG this year. The results just aren't as good as Google.

I'd like to offer a less binary perspective...

I tried to switch and ended up using both, I use duckduckgo not for privacy but practical reasons: recently google has become extremely irritating for technical searches that are not popular, even for the ones it can find it now autocorrects them by default to "what it thinks you meant", which for technical things like parameter names, command names, APIs etc are always wrong, even though the whole search phrase is extremely descriptive and matchable.

I found that DDG is good for these types of searches (esoteric technical search that might be clobbered by googles dumb "AI" autocorrect or SEO optimization / I cant tell if it's an ad anymore BS that slows you right down), for these you get the result immediately and with one click... but DDG is worse for popular things where the search phrase is less descriptive and more associative.

So now - I use both, DDG by default because it's faster to get to the result with less shit in the way; then back to google for the few popular things...

I think this isn't too bad of a deal for privacy either, everyone assumes you must completely switch a service, but if you only search popular things on google, then you will look just like everyone else, you starve them of specificity.

Post reply on HN