#userscript
#luakit users: cursed with 100% CPU when forced to browse github, too? Well, a #userscript to the rescue: https://blog.tfiu.de/what-to-do-when-github-eats-100-cpu-in-luakit.html
#zuengeln
Just got a #userscript that redirects to the local #Mastodon server whenever you open a remote Mastodon page (or any page that has <link rel=alternate type=application/activity+json>): https://gist.github.com/saschanaz/701908eb329af5991061f8813b5bf4bc
Some caveats:
* The local Mastodon server is currently hardcoded to Fosstodon. Is there any way for a userscript to receive an installation parameter?
* You need to explicit approve the cross origin request at least once (if you are using TamperMonkey. Not sure what others do)
It's been another two weeks, and I have a new version of my #Mastodon theming #userscript for you!
This release includes a lot of changes behind the scenes, a much improved focus detection for the expanding compose box feature and a bunch of smaller changes that slowly start feeling like polish:
🔴 make the CORTEX IMPLANT logo colorful
🟠 clean up the right side menu with tighter whitespace and a fitting trends heading
🟡 make filtered / hidden posts less intrusive
🟢 disabled buttons now have the matching cursor
🔵 improve styling for poll options
🟣 fav is now slightly more golden
⚫ followers-only posts have a more visible yellow color
🟤 public posts now have a more subtle color, to highlight non-public posts better
⚪ admin-only notifications (eg. reports) now have their own color
And there's probably a couple of minor changes here and there I forgot to mention.
As always, you can find the script here: https://github.com/Sirs0ri/userscripts/blob/main/cortex_implant_styling.js - please let me know if you have ideas, feedback or questions!
Important note: If you've previously turned on some of the optional features (like the expanding compose-box), updating might reset that, and you'll have to turn that on again! Instructions are still at the top of the script! :)



guys! I "made" my very first #Userscript! all it does is redirect Medium to scribe.rip but waaaaw. I'm a real hexor now! https://greasyfork.org/en/scripts/462045-redirect-medium-urls-to-scribe-rip
So, the birbsite started advertising Blue on the main navigation, and as you might expect, here's a userscript from yours truly to yeet that shit right on out of there.

![Portion of Twitter Blue's sign-up modal, advertising it's features and price:
Coming Soon! Rocket to the top of replies, mentions and search
Tweets from verified users will be prioritized — helping to fight scams and spam.
Coming Soon! See half the ads
See 50% fewer ads in the home timeline.
New! Post longer videos [...]
Annual Plan SAVE12% - €7.00 / month
€84.00 per year billed annually
Monthly Plan - €8.00 / month
€96.00 per year billed monthly](https://s3.eu-central-2.wasabisys.com/mastodonworld/cache/media_attachments/files/110/017/566/311/331/861/small/c89933c28ceeb938.png)
...has it really already been three weeks since I last released an update for my #userscript? Time flies :squirrelshocked:
Today's release (v1.4.2) mostly builds on the previous one, but there's a lot of various stuff in it:
🍇 Center and animate the "USER boosted" text above toots
🍉 Improve the gradient on collapsed toots
🍋 visual polish around the "favorite" star animation
🍎 Some more fixes regarding our transition to glitch-fork a few weeks ago, e.g. for the coloring of notifications
🥝 give toots a slight glow effect based on their visibility (public, unlisted, etc)
🍓 and a couple more misc fixes here and there
Some more optional features, read the start of the script for more info:
🍑 option to show images in their full original size, no letterboxing or cropping to 16/9
🍒 add a red underline to media without alt-text, inspired by chaos.social
🍈 (off by default) option to make the compose-box larger when focused
You can grab it from my Github (https://github.com/Sirs0ri/userscripts/blob/main/cortex_implant_styling.js), as always feel free to reach out if you find anything broken, or have any kinds of feedback / questions! :frogvibing:



Here's a quick and easy tool for making "open this post on my instance" bookmarklets.
https://stefanbohacek.com/project/open-post-on-my-mastodon-instance-bookmarklet
Hope someone finds this useful!
Also, I'd love to hear recommendations for good browser extensions for Mastodon that work well with multiple accounts across different instances.
"This is a #browser #UserScript that tries to detect comments on #HackerNews that are #GPT/ #OpenAI generated #ChatGPT.
It is based on #GPTOutputDetector."
"It puts every comment into the GPT output detector and colors and writes a short comment on the HN comment based on its assessment"
"[...]most AI generated text will almost always be identified with 99.97% probability , while human text ranges somewhere between 70-98."
https://github.com/chryzsh/GPTCommentDetector/
https://greasyfork.org/en/scripts/456398-gpt-comment-detector
Den #ZDF #Videoplayer mit der Tastatur bedienen?
Ich habe jetzt nochmal das #UserScript für #Greasemonkey aktualisiert auf Version 0.2:
Cursortasten vor und zurück, f = fullscreen, p = play/pause
Beispielseite:
https://www.zdf.de/comedy/zdf-magazin-royale
Do you also feel like Mastodon's default compose box is kinda small and limiting?
Would you like some more space to express your thoughts?
Coming soon(tm) to a #userscript near you!

Möchtet ihr auch den #ZDF #Videoplayer mit der Tastatur bedienen?
Dann hab ich hier ein #UserScript für euch:
Cursortasten vor und zurück, f = fullscreen, p = play/pause
Beispielseite:
https://www.zdf.de/comedy/zdf-magazin-royale
Древовидные комментарии в #Mastodon
Нашел няшный #userscript, который реализует дерево комментариев. Лежит здесь: https://github.com/afontenot/userjs/tree/master/mastodon (в скрипте нужно поменять URL вашего сервера в ДВУХ местах в начале файла).
На 4-й версии Mastodon работает вроде корректно; на #qoto.org ввиду сильных модификаций — нет.
Поскольку я не погромист, коряво подкорректировал в меру познаний. Версия для qoto.org https://pastecode.io/s/s1z60z25
Ну и кто в js разбирается — можете подсказать, на что можно повесить обработчик, если TITLE на этом сервере не меняется, а onclick по посту прикрыт через stopPropagation()

FIrefox for Android 110 版本起,将可安装 Userscript 管理器插件 Tampermonkey。
https://support.mozilla.org/en-US/kb/whats-new-firefox-android
#Firefox #Android #Userscript #Tampermonkey
Telegram 原文
Something something, "glitch", and "fixes". I'm sure someone more clever than me could'a put a great pun here. :blobcatfingerguns:
I think I fixed the biggest issues my theme had with the #glitchFork update we installed a few days ago!
Some noteworthy changes:
:coffeebean: The new user badges for admins / instance supporters are now shiny!
:coffeecup: Added the CORTEX IMPLANT logo at the top of the nav-menu
:coffeegrinder: adjusted profile page's styling to the new layout
Also, it's now possible to (somewhat) conveniently turn parts of my userscript on/off, I'd recommend reading the start of the #userscript.
As always, if you find something broken or have any other questions/ideas/wanna say hi please reach out!
Link: https://github.com/Sirs0ri/userscripts/blob/main/cortex_implant_styling.js



Ich habe mit Hilfe von #ChatGPT ein #UserScript für das #Firefox #Addon Greasemonkey geschrieben, das für die Podcasts bei fyyd.de eine einfach bedienbare Oberfläche erzeugt.
Dadurch kann mit großen Buttons z.B. zurückgesprungen oder die Abspielgeschwindigkeit erhöht werden. 👂
https://greasyfork.org/scripts/459924-fyyd-de-redesign/code/Fyydde%20redesign.user.js
#Greasemonkey für Firefox:
https://addons.mozilla.org/de/firefox/addon/greasemonkey/
Beispiel-Seite von fyyd:
https://fyyd.de/episode/9919640

Наконец-то дошли руки, пошёл и выпилил все старые посты из помойки под названием VK.
Естественно, удобного способа для этого нет.
Поэтому костылил JavaScript:
https://gist.github.com/skobkin/ae1b30468ff94bdd1c01e6153aa32639
За пару советов по JS спасибо @CursorDriver.
#vk #log #shit #censorship #Russia #JavaScript #JS #code #log #UserScript #lifehack #workaround #dev #костыли
Help me webdev, you're my only hope!
I'd really like to fix some UI issues for me in #Gerrit using a #javascript #userScript via #tamperMonkey, but Gerrit seems quite resistant to this.
When I go to https://review.spdk.io/gerrit/q/status:open+-is:wip and pop open a console:
document.getElementsByClassName("selectionLabel")
gives back an empty collection. The devtools inspector disagrees (see pic). What is preventing me from finding these elements?
New #styling #userscript!
I think I'm getting close to being done. This release includes:
✨ No more sharp corners on announcements, search results and explore-items, and some rarely-seen UI
✨ Improved styling around fields in account's detail view
✨ Improve Glow effect on e.g., Youtube videos' thumbnails or images with transparency
✨ Better bounding boxes for buttons, e.g.:
- the interactions on a toot (try it and like this one :P )
- the "tabs" on the notifications/explore views



Updated my #bookmarklet for easier following across #mastodon instances:
https://github.com/Mitsunee/stuff/blob/master/bookmarklets/mastodon-on-my-instance.js
The old one caused profiles to load indefinitely, so this one now redirects to the authorize_interaction screen, which also provides a follow button :)
installed the macOS Elk #Userscript for @elk, its quite slick!
https://github.com/SlippingGitty/macOSElk-UserStyle
I just updated my #styling #userscript for #Mastodon (https://github.com/Sirs0ri/userscripts/blob/main/cortex_implant_styling.js) - the list of changes is actually quite extensive.
I think I've styled everything except for the settings and the "advanced view" (which actually looks quite broken with the theme at the moment, but that's a problem for future-me).
Some Highlights include a much better clickable area on toots to open the detail view, the styling of the compose panel, and the about- and profile directory pages.
It's still pure #CSS!
A ruby-doc.org update calls for an update of my #Ruby doc browser extension* https://github.com/drench/userscripts/blob/main/rubydoc-version-switcher.user.js
The headline feature remains the Ruby version switcher, similar to the version switcher in the #RSpec docs, allowing you to quickly bounce from Ruby 3.2.0 docs to 2.7.7 if that's what you need.
There are a few other light UI tweaks I like, and you might too.
Tested on Firefox and Chrome on MacOS. PRs welcome.
* It's actually a #userscript or #greasemonkey script; I recommend #tampermonkey
@atomicpoet @taylorlorenz There's also the middle way of augmenting Mastodon via browser extensions. It's not ideal for laypeople, but tech savvy power users (like journalists?) might find this userscript useful: https://github.com/JonasReich/UserScripts/blob/main/Mastodon/mastodon_quote_preview.user.js
It replaces all links to other mastodon posts with preview panels (it's hardcoded to only work on my instance, but that's fixable).
#userscript #quotetoot


Apropos: Hat schon jemand irgendwo #Userscript/#Greasemonkey/#Tampermonkey-Zeugs für Mastodon entdeckt? Würde gerne mehr Funktionen bei Reply/Boost/Fav/... ergänzen, aber durch dieses dynamische Nachladen ist das wohl etwas komplizierter. Sicher, man könnte auch den Source anfassen, aber so wäre das für mich portabler.
Musk keeps fucking up Twitter and I keep making userscripts to unfuck it, I guess 🤷♀️
Anyway here's unfuck-tweet-actions.user.js (for /(Grease|Tamper|Violent)Monkey/) - it adds a simple CSS rule that hides the stats button and viewcount from tweets.
https://gist.github.com/shinmai/13b1fc385b8802ea1979e892e8aae12c/raw/unfuck-tweet-actions.user.js
I _might_ make a version that moves the button to the right end of the actionbar and just hides the viewcount, but I like this as-is so don't hold your breath.
Oh wow, it's real lol 😂
(lol && lmao) is definitely resolving to True right now.
Anyway, here's good-for-health_bad-for-business.user.js - a #UserScript
(for GreaseMonkey, TamperMonkey, ViolentMonkey, etc.) to hide tweets from #BlueForBusiness subs:
• Works on MY Machine™ certified
• No guarantees/warranties
thx @TwitterBusiness!
https://gist.github.com/shinmai/a9bdcf21918ce3e721e700a6bbba6135/raw/2eb6bd40153dc79fa6aa47d6632f6d6684c41948/good-for-health_bad-for-business.user.js

My #HackerNews #UserScript is up on GreasyFork
I've fleshed out my #HackerNews #UserScript and made it a bit more 'real'. Now it has a repo *and unit tests!!*.
https://github.com/mgladdish/website-customisations/tree/main/news.ycombinator.com
I'm not too hot on the new tech dot lgbt logo/icon (it's very saturated and... angular 😅), no hate to the person(s) who made it, it's cool and clever, just not my cup of tea, as it were.
Anyway, if you're like me, here's a #userscript (for GreaseMonkey, TamperMonkey, ViolentMonkey et al) that hacks the old icon and logo back in:
https://gist.github.com/shinmai/290a49cbc533c72774b7b98e4906ab95/raw/ccbc9c6f2f0ee3bcbc24196f3a93047981576a28/techlgbt-oldicon.user.js
Disclaimer: I made this in 10 minutes and it has approx 0 error resilience - Works On *MY* Machine™ Certified Software
My #Mastodon threading #userscript now lets you minimize subthreads. ☺️

I wrote a little #userscript for tampermonkey that hides/disables buttons on foreign mastodon instances: Instead of the usual signin popups, I now have a "go home" button that takes me to the same page in my home instance.
Maybe it helps some other people with #discoverability
https://github.com/JonasReich/UserScripts/blob/main/Mastodon/mastodon_go_home.user.js
was just on stack overflow wondering why the code was being cut off in that skinny middle content section... then i remembered I'd disabled The Tampermonkey extension.
re-enabled that and suddenly code examples on Stack Overflow were so much more readable.
Here's the entire script (not counting standard #UserScript comments for matching urls and such)
GM_addStyle(`
#mainbar, .mainbar { width: 100% }
#sidebar, .sidebar { display: none}
`);
Is anyone aware of a browser #extension or #userscript that integrates feed views for a #Diaspora feed, a #Zot feed, a #GNUsocial feed, an #RSS/#Atom feed, a #Twitter timeline, a #Facebook newsfeed, a #TikTok feed, a #YouTube feed, a #LinkedIn feed, etc. into the Web interface of one's @Mastodon instance of choice?
I wish someone would update this #userscript mastodon theme by @impiaaa to work with 4.0.2, cause its gorgeous
Anyone got a #javascript #userscript snippet I can use to stop #Mastodon from scrolling all the way to the right automatically when I expand a toot or when the winow is refreshed?
@ottaross it's not ideal, and it's not extensively tested, but the following #UserScript should help reduce their impact on browsers that can load userscripts: https://gist.github.com/FiXato/1333e8ac7e7d98d85ca669bc9d176c7a
#findagrave made a minor change to its HTML so I've updated the FindAGrave Extras browser extension to accommodate: https://gist.github.com/drench/1bdb13461b383a004951c4b94246cbcb?permalink_comment_id=3204728#gistcomment-3204728
Habe ein #Userscript gebastelt, mit dem man den #Button zum #Veröffentlichen umbenennen kann.
Ist "trööt!" gewünscht, oder was war es nochmal genau?
I cleaned up and improved the #userscript, then published it on #GreasyFork (under AGPLv3+ licence) so you can easily install it using one of the extension available for your web browser, such as #Greasemonkey, #Tampermonkey, #Violentmonkey or #Usescripts.
It either put the languages of your choosing on top of the list in the order you decide, remove all the other languages, or both.
https://greasyfork.org/fr/scripts/454602-improve-language-selection-in-mastodon-editor

J'ai écrit un #userscript et l'ai publié sur #GreasyFork (sous licence AGPLv3+) pour que vous puissiez l'installer simplement en utilisant une des extensions disponibles pour votre navigateur web, comme #Greasemonkey, #Tampermonkey, #Violentmonkey ou #Usescripts.
Il place les langues de votre choix en première dans le menu de l'éditeur de #Mastodon dans l'ordre que vous voulez, retire toutes les autres langues, ou les deux.
https://greasyfork.org/fr/scripts/454602-improve-language-selection-in-mastodon-editor
I made a quick&dirty #userscript to put my favorite languages at the top of the drop-down list in #mastodon web editor.
// ==UserScript==
// @name Favorite languages first - piaille.fr
// @namespace Violentmonkey Scripts
// @match https://piaille.fr/web/*
// @run-at document-idle
// @grant none
// @version 1.0
// @author Ciourte Piaille
// @description 05/11/2022 23:34:47
// ==/UserScript==
1/2
#Userscript to get rid of the #YouTube #Shorts Player
No stars, well let us change that.
https://github.com/narrowtux/userscripts/blob/main/no-youtube-shorts.js
I cleaned up the code a bit. I also added a blue border around frozen GIFs.
You can download the user script here:
https://codeberg.org/maxi.green/UserScripts/src/branch/main/hoverGIF.js
It needs to be imported into a #UserScript manager, e.g. #Greasemonkey on Firefox:
https://addons.mozilla.org/en-US/firefox/addon/greasemonkey/
OK, I implemented a prototype of "HoverGIF" as a #UserScript. Maybe I'll polish this later and make this into a Firefox addon. But I'm going to sleep and bake bread first :)
Bilibili 站点近期的修改使得 Neat URL 等工具无法简单地移除追踪参数。原文提供了一种结合 uBlock Origin 等脚本屏蔽插件与 userscript 的方法解决此问题。
https://t.me/lynote/4824
#Bilibili #Privacy #UserScript
Telegram 原文
3/
✨ Profile Card:
I also put a Tumblr-inspired profile card together to a sense of people's content without having to leave the current page. It's very handy in finding people to follow.
It works in the home feed and notifications tabs... and pretty much everywhere else in /web.
Download: https://pastebin.com/EHvspaFC
2/
✨ Automatic Post Privacy:
I sorely miss the ability to draft and preview toots. The closest we got is posting them as mentioned people-only then redrafting.
Meanwhile, I'd also love to control the default privacy of replies... thus this thing was born.
It just auto-clicks your way to the desired privacy. It has a smart mode for replies to not replace stricter modes like mention with more public ones.
Download: https://pastebin.com/PuKwyyU7
I really like that in Mastodon's #web interface, animations are only played when you hover the mouse over the picture. Is there any #Firefox addOn or userScript that enables something like this on regular web pages?
I once write a #userScript that hides #gifs under an HTML "description" (https://www.w3schools.com/TAGS/tag_details.asp), so you have to click a button in order to show/hide the image. However, this solution was not optimal, since it often changes the layout of the web page, and not every #gif is animated. What I would like is that the addon/userscript takes a screenshot of the first frame of the gif, and replaces the gif with the first frame, unless the mouse hovers over it.
Still really enjoing #Semantle, enough that I polished up my little #userscript I've been toying with and threw it up on GreasyFork: https://greasyfork.org/en/scripts/441586-semantle-enhancements
So far it adds a cute little chart of your guesses for the day, and starts keeping history for your guesses in case you want to look back in the future.
We'll see how long it keeps my attention, but it does useful things now, so check it out if you're also playing. If you're not familiar with Userscripts, they're worth knowing about! I use TamperMonkey in Firefox to manage them, there are a few options out there, the homepage of GreasyFork (which is a place to share UserScripts) will point you in the right direction: https://greasyfork.org/en
As an example, here's the chart of my 51 guesses for today. Higher is closer, blue dots are guesses, green dotted line is the closest guess up to that point.
Apparently the popular #uBlacklist extension is stolen from an #Userscript called - Google Hit Hider by Domain (Search Filter / Block Sites)
https://greasyfork.org/en/scripts/1682-google-hit-hider-by-domain-search-filter-block-sites
This is what I currently use as a #TamperMonkey #UserScript to tweak the UI of the #Mastodon #GlitchSoc instance I currently use:
// ==UserScript==
// @name TootCat Mastodon UI tweaks
// @namespace http://tampermonkey.net/
// @version 1.0
// @description Styling tweaks for the Mastodon instance I use.
// @author FiXato
// @match https://toot.cat/*
// @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @grant none
// ==/UserScript==
(function() {
'use strict';
// Increase the width of the first and last column so there's more space for the text and media of your home timeline, and the expanded posts.
document.styleSheets[document.styleSheets.length - 1].insertRule('.column[data-column="home"], .column:last-child {min-width: 600px!important}', 0);
// Increase size of emoji / emotes when you hover over them, making it easier to see what they are supposed to represent.
document.styleSheets[document.styleSheets.length - 1].insertRule('.status__content .emojione:hover {width: auto!important; height: 50px!important;}', 0);
// Change the font to Optima Nova LT Pro, Atkinson Hyperlegible, Verdana, or a sans-serif font.
document.styleSheets[document.styleSheets.length - 1].insertRule('.status__content__text, .status__content p {font-family: "Optima Nova LT Pro", "Atkinson Hyperlegible", Verdana, sans-serif;}', 0);
// Add a small purple bar above images that come without status content text, so you have some easy-to-click-on area to expand the post.
document.styleSheets[document.styleSheets.length - 1].insertRule(`.status__content__text:empty + .media-gallery:before
{
height: 1em;
display: block;
content: ' ';
background-color: purple;
}
`);
// Your code here...
})();
Did some more #coding on my #Oglaf #userScript, since I wanted to add a sort of #KioskMode as well, that showed just the current image as well as the image alt/title.
Ended up adding the page title as well to the list of image descriptions, and a history of the last 2 comic's descriptions, as I noticed I sometimes didn't realise I forgot to actually read them till I was one or two comics further along.
Should perhaps add a thumbnail next to each of them too.
Cw image: (body) horror, cursed
If you like the #NSFW #comic #Oglaf, you might enjoy this #UserScript I wrote earlier today: https://gist.github.com/FiXato/b5434f66d2af50514bf84721fa249c22
okay, modified an example #chromeExtension #browserExtension to get access to the headers, and modified the #Mastodon #ContentSecurityPolicy to allow unsafe-inline styles as well for now.
Once I get a bit more time, I'll either use a nonce instead, or dump the #userScript into this extension and hash the entire style so I can add the hash to the #styleSrc #CSP instead.
Is there a #UserScript that allows you to open up #Mastodon threads in an overlay, rather than in a column all the way to the right that needs to be scrolled to, as well as scrolled back away from?
@karlicoss should be fairly simple to achieve with some #UserScript loaded via #TamperMonkey or similar?
I can try to write you a proof of concept script after I finish baking some soda bread biscuits?
Version 0.5.1 of #MastodonNotes #UserScript is available now from the usual spots:
https://greasyfork.org/en/scripts/399845-mastodon-notes/code
https://gist.github.com/FiXato/6f8015d47d90149c31960d000a9db140
Right, pushed the last update (at least for tonight) to my #workInProgress #notes #userScript for #Mastodon to https://greasyfork.org/en/scripts/399845-mastodon-notes and https://gist.github.com/FiXato/6f8015d47d90149c31960d000a9db140
Should fix a stupid bug where timelines would stop loading after editing/adding a note to a user.
It's not pretty, but it does the job for me at least. :)
@thegibson okay, I've updated the #Mastodon #Notes #userscript quite a bit, and added support for new content being loaded (at least on mastodon.social; I don't have an account on a Glitch instance, so I can't test that atm).
New version at #GreasyFork: https://greasyfork.org/en/scripts/399845-mastodon-notes/code
Same, but at #Github: https://gist.github.com/FiXato/6f8015d47d90149c31960d000a9db140
Please let me know if it works for you, and what you think. :)
If it doesn't work on Glitch, I don't mind setting up an alt on HT for testing. :)
@clacke
I guess I'm too used to reading with the mobile client I use, #Fedilab, where I can just tap on the image to show the alt text.
I suspect that on a desktop browser with mouse, you can just hover over the image to have it show up as a tooltip? I guess the nicest might be to have an option in Friendica/Mastodon to have the image description always available underneath the image.
It's probably something I could script as a #UserScript extension too?
But I see why you used OCRBot. :)
Fedilab마냥 트위터나 유튜브를 추적기 없는 대체 사이트로 바꿔주는 #userscript
https://gist.github.com/Kjwon15/33c6e32279bf3c40868db41741a24c0a
Has anyone made a #userscript to render real gifs posted from pleroma instances as inline images on mastodon?