Welches Add-On für #Userscripts will man denn aktuell in Firefox haben? Ich kenne noch Greasemonkey, aber davon scheint es jetzt Forks zu geben?
Welches Add-On für #Userscripts will man denn aktuell in Firefox haben? Ich kenne noch Greasemonkey, aber davon scheint es jetzt Forks zu geben?
Yesterday’s rabbithole: instead of doing some tax related administration, I built a Firefox extension to inject some JavaScript to fix some annoyances on the government login website.
Because apparently every existing userscript extension wants to access all data on all websites, despite technically not necessary (Firefox has UI for handpicking website permissions). And I only trust an extreme short list of extensions with access to everything…
@matthias I am looking for a repository of userscripts to tame some websites on mobile. In particular I would like to redirect my attention from specific websites to others, so a blacklist redirect, and simplify heavy ones, as GitHub, to better fit my mobile Safari. Unfortunately I am not proficient with js.
Currently utilizing #Userscripts #iOS #Safari extension with custom css file to kill Goog obsessive login prompt. But that’s about it. Suggestions? Thanks.
I really enjoyed PleaseFixThisSite.com (with thanks to @mattround for sharing it).
Not just because I appreciate a good #XKCD-inspired Web project (which of course I do). But because it gave me the excuse to remind everybody that #userscripts make the #Web a better place by writing a few lines of #Javascript that apply ALL the fixes, all the time -
📬 GreasyFork-Survival-Kit 2025
#Tutorials Anleitungen #BrowserHacks #GreasyFork #Produktivität #TwitterTools #Userscripts #YouTubeTools https://sc.tarnkappe.info/d353be
If you happen to use #Narwhal as your #reddit client of choice, I made a little something if your iOS browser can load #UserScripts.
[UserScript] Reddit links to Narwhal
#narwhalapp #ios #userScript #greaseMonkey #tamperMonley #violentMonkey #OrionBrowser
Tampermonkey switched to a proprietary license 7 years ago!
Alternatives are
https://github.com/greasemonkey/greasemonkey
and https://github.com/violentmonkey/violentmonkey
#opensource #firefox #tampermonkey #userscripts
Android版Microsoft Edge :MS_edge: ってTampermonkey入れられるようになってるんだ、スマホのウェブサイトでUserScriptsを使う場面あんまりないけど
He estado experimentando (finalmente!) con #userscripts en #ios.
Por el momento estoy usando #STAY for Safari (https://apps.apple.com/mx/app/stay-for-safari/id1591620171?l=en-GB), pero hay más en la lista de pruebas (tampermonkey, entre ellas). El #userscript de #Pagetual ha sido muy interesante de usar.
I feel like the more time I spend in #jira, the more #userscripts I land up needing to make it work in some sensible way. All of which could easily be solved by some user (and I mean user, not project admin) preferences.
#FireMonkey est une #extension qui permet d'écrire ou de trouver des #userscripts (en #JavaScript) et #userstyles (en #CSS) pour modifier le comportement et l'apparence de sites web dans #Firefox sans avoir besoin de nombreuses extensions pour ça.
Contrairement à la plupart des extensions existantes comme #GreaseMonkey, #Tampermonkey ou #ViolentMonkey, celle-ci utilise l'API #WebExtension Userscripts ajoutée à Firefox en 2019. En conséquence, elle est plus légère et plus sécurisée, puisque les scripts sont isolés dans leurs bacs à sable, mais n'est disponible que pour Firefox, cette API n'étant pas implémentée par Chrome ou autres.
@stefan #Mastodon has clear enough web interface code that it can be extended with #userscripts. You can make yourself such a plugin.
[⤴️ https://octospacc.altervista.org/2024/02/01/emmebi-telegrammico/]
L’ultimissimo miglioramento che ho in ogni caso poi fatto ad #MBViewer è stato l’aggiunta di una funzione per importare codice #CSS e #JavaScript, per modificare come i post possono essere visualizzati. Entrambi funzionano allo stesso modo, con i relativi parametri URL che accettano sia #URL esterni che data URI. Niente di particolare per gli stili, semplicemente importo nella pagina la qualunque cosa venga data lì, ma per gli #userscripts è stato leggermente più #complicato. 😕️
Il punto sta nel voler evitare che #script essenzialmente non affidabili siano iniettati nel contesto della pagina semplicemente da URL, perché potrebbero fare tante cosine cattive; prima fra tutte, rubare #dati dall’archiviazione del #browser del mio dominio, cosa che è un #problema, perché gli utenti inesperti che aprono la app da #link non andranno a cercare di investigare cosa accade dietro le quinte (e, molto probabilmente, non lo farei realisticamente nemmeno io, seguendo la logica del “i miei siti sono miei e li conosco, sui siti altrui ho le protezioni del browser attive“). E quindi inizio a scendere in un rabbithole… ☠️
Alla fine ci ho pensato meglio, e sono arrivata alla conclusione che è abbastanza sicuro far girare gli script in un iframe con proprietà src="data:[...]" e sandbox="allow-scripts" (che significa, “blocca tutte le proprietà sensibili eccetto gli script”)… voglio dire, nel visualizzare il contenuto dei siti, già permetto eventuali iframe provenienti dai post, e quelli teoricamente possono già fare quello che vogliono eccetto accedere ai dati della finestra root. Nella pratica, i programmini degli utenti quindi hanno accesso a (quasi) l’intera API JavaScript senza poter fare cose bruttissime. 🎉️
https://hub.octt.eu.org/MBViewer/#/siteUrl=https://octospacc.altervista.org|platform=wordpress.org|includeStyle=[...]|includeScript=[...] (il link con tutta quella roba messa inline è una stringa di quasi 1 KB!). Userò tutta la cosa per rendere gli hashtag nel testo meno intrusivi per il mio sito anche lì, oltre che sul dominio originale. 👋️Finisco con dati ancora più tecnici, per chi non ha una vita: con questo #design, ogni #userscript deve provvedere ad esporre una funzione che, tramite la Channel Messaging API, viene richiamata dalla #app per ogni messaggio appena questo viene aggiunto al documento visibile; questa funzione riceve dati utili (per ora, solo l’HTML del contenuto; oltre a dati come l’id del messaggio nel flusso, che non sono granché utili all’utente ma devono essere restituiti alla app) e può rimandare nuovi dati indietro richiamando una funzione che è invece l’applicazione ad esporre allo script. Tutto questo ambaradan permetterebbe agli script di effettuare anche operazioni asincrone, comunque, non per forza di dover agire immediatamente alla chiamata. 🤓️
https://octospacc.altervista.org/2024/02/01/emmebi-javascriptico/
#API #app #browser #codice #complicato #CSS #dati #design #DOM #JavaScript #JS #librerie #link #MBViewer #messaggi #pazzia #problema #sandbox #script #stile #URL #userscript #userscripts
I've created a userscript that loads sp.css if <head> has no defined styles. I hoped that this improve appearance of some HTML docs generated by man2html and texi2html. And it does, e. g. for /usr/share/doc/bash/bash.html on my system or termutils
#Tampermonkey saved me from YouTube ads
You should try it!
#Userscripts
Home | Tampermonkey
https://www.tampermonkey.net/index.php?browser=chrome&locale=en
so is nobody gonna point out how js bundlers and fucked up web #frontEnd tooling is slowly killing #webExtensions and #userScripts by making custom code injection a pain in the ass?
i mean, this is all the same people who'd love for the likes of #adBlockers to also not work so it's probably a Feature for them but still
just waiting for the day they somehow manage to fuck up css injection. we can still work our way around auto generated css-in-js class names and complex selectors. shadow dom, perhaps?
TIL a userscript extension is available for Safari on iPad/iPhone.
One of the big things I was missing between desktop and mobile device browsers was the ability to run tampermonkey-like scripts, and now I can :) It also means I can remove some apps that have a better web browser + userscript experience than their actual apps (yes, looking at you #twitch)
For those of you with clumsy left pinkies:
https://greasyfork.org/scripts/57383-case-converter
Defaults to Shift-F3 hotkey, which apparently is the same in Word. I wonder where else it's valid that I'm not aware of.
It was #GreaseMonkey for the win. Not the friendliest of UIs but did the job very nicely.