mastodon.ie is one of the many independent Mastodon servers you can use to participate in the fediverse.
Irish Mastodon - run from Ireland, we welcome all who respect the community rules and members.

Administered by:

Server stats:

1.6K
active users

#tampermonkey

0 posts0 participants0 posts today
I love this so much. It's pretty much a GUI for #tampermonkey, offering an easier way for #blind folks to find elements on a webpage and do things to them. Yes, you could do the same things directly by just writing JavaScript yourself. But this is much, much faster, and requires a bit less knowledge. It took me less than 30 seconds to turn all the story titles on fanfiction.net into headings. Labeling a button, or making other small changes would be just as fast. The typos and slightly incorrect English put me off at first; especially the word "blinds" for blind people felt weird and derogatory. apparently the author is from #Cameroon, though, so maybe that's standard there. stsolution2.org/WebAccessibilizer/ #a11y #accessibility #screenreader
stsolution2.orgWebAccessibilizer- A web javascript to help blind to make html web pages more accessible

Das #ZDF hat seine #Mediathek und URLs aktualisiert.

Daraufhin habe ich jetzt mein #Greasemonkey Skript aktualisiert, mit dem man den ZDF-Player per #Tastatur steuern kann:

greasyfork.org/de/scripts/4603

Beispiel für ein Video, das mit dem #UserScript funktioniert:
zdf.de/play/shows/bares-fuer-r

Cursortasten links / rechts: 10 Sekunden zurück und vorspringen.
p - play oder pause
f - full screen

greasyfork.orgZDF Player With KeyboardPress cursor to skip some seconds back and forth, f fullscreen, p play

I bought some hard drives from #Newegg yesterday and once again fell into the trap of forgetting to uncheck the subscribe checkbox they check by default and starting to get #spam from them within minutes of checking out.
No more! Now #Tampermonkey will uncheck the box for me:
blog.kamens.us/2025/02/11/tamp
@didathingclub #DidAThingClub #DarkPatterns

Something better to do · Tampermonkey script: no, Newegg, I don’t freakin’ want to subscribe
More from jik

Tampermonkey script to un-Gmail Google Contacts

When you click on a contact’s email address in the Google Contacts web app, instead of opening a new draft in your default email app with the “To” field populated with that email address, which is what it should do, Google Contacts opens a Gmail compose window.

I hate this behavior. While I do have a Gmail account, it is not my default email account, and I hardly ever use it. I want email addresses in Google Contacts to do what they do on every other web page: open a new draft in my default email app.

So I wrote a Tampermonkey script to implement that behavior. You can find it here. And the code is also below, in case you prefer to just copy and paste it from here.

Share and enjoy!

// ==UserScript==// @name         un-Gmail Google Contacts// @copyright    Copyright 2025 Jonathan Kamens// @license      GPL// @namespace    http://tampermonkey.net/// @version      2025-02-03// @description  change gmail links in Google Contacts to mailto: links// @author       Jonathan Kamens <jik@kamens.us>// @match        https://contacts.google.com/*// @icon         https://www.google.com/s2/favicons?sz=64&domain=google.com// @grant        none// ==/UserScript==// Instead of displaying email addresses as mailto: links as it rightfully// should, the Google Contacts web app sends you to Gmail when you click on// them. This script changes the email addresses back into mailto: links so// that when you click on them they open in your configured email app.//// Uses a mutation observer because the Contacts app dynamically inserts content// into the page after the browser thinks the page is finished loading.(function() {    'use strict';    let callback = (mutationList, observer) => {        let addresses = document.evaluate(            "//span[starts-with(@href,'mailto:') or " +            "starts-with(@data-href,'mailto:')]", document);        let addressElement;        while (addressElement = addresses.iterateNext()) {            let href = addressElement.getAttribute("href") ||                addressElement.getAttribute("data-href");            let addressString = href.substring(7);            let anchor = document.createElement("a")            anchor.setAttribute("href", `mailto:${addressString}`);            anchor.innerText = addressString;            addressElement.replaceWith(anchor);        }    };    let observer = new MutationObserver(callback);    observer.observe(document, {subtree: true, childList: true});})();
www.tampermonkey.netHome | TampermonkeyHome

#today I need to call #Alpinestars about buying a spare pair of batteries for my heated gloves so I can use them on longer winter #motorcycle trips. I know where on their website their c.s. phone number is located, so I visit the site to look it up.
The site was working fine yesterday, but unfortunately today it's reloading over and over ad infinitum without fully displaying, so the phone number is inaccessible.
#tech #WebDev #curl #TamperMonkey #BurpSuite (hashtag foreshadowing!)
🧵1/8

Replied in thread
Sure. I've now scripted a bit for #tampermonkey, achieving similar:

    GM.xmlHttpRequest({
method: 'GET',
url: 'https://codeberg.org/voron/snac-style/raw/branch/master/modern-dark.css',
onload: function(response) {
if (response.readyState == 4 && response.status == 200) {
var style = document.createElement('style');
style.type = 'text/css';
style.innerHTML = response.responseText;
document.getElementsByTagName('style')[0].replaceWith(style);
}
}
});
But that's more of a workaround. E.g. I don't always have "my" browser with me 😉

CC: @stefano@bsd.cafe @stesnac@snac.bsd.cafe @grunfink@comam.es