this post was submitted on 18 Jun 2023
21 points (100.0% liked)

Fediverse

17016 readers
64 users here now

A community dedicated to fediverse news and discussion.

Fediverse is a portmanteau of "federation" and "universe".

Getting started on Fediverse;

founded 4 years ago
MODERATORS
 

Right now I'm using the Lemmy Modern UI extension from the Firefox WebStore. What are some others I should get as well?

top 9 comments
sorted by: hot top controversial new old
[–] [email protected] 2 points 1 year ago* (last edited 1 year ago) (1 children)

I use a custom script to open all post and external links on the front page in a new tab. Based on a script I found online but customised to beehaw specifically.

// ==UserScript==
// @name         beehaw - Open links in new tab
// @description  Open links in new tab. Ctrl-click or Middle-click loads it in background
// @match      http*://*beehaw.org/home*
// @match      http*://*beehaw.org
// @version      0.0.1
// @grant        GM_openInTab
// @run-at       document-start
// ==/UserScript==

var suppressing, clickedElement;

window.addEventListener('mousedown', function (e) {
  clickedElement = e.target;
}, true);

window.addEventListener('mouseup', function (e) {
  if (e.button > 1 || e.altKey || e.target != clickedElement) {
    return;
  }
  var link = e.target.closest('a');

  if (!link || !link.href) {
      return;
  }

  if (link.getAttributeNode('aria-label') && link.getAttributeNode('aria-label').value == 'Expand here') {
      return;
  }

  if (link.href.startsWith('https://beehaw.org') && !link.href.startsWith('https://beehaw.org/post/')) {
    return;
  }

  GM_openInTab(link.href, {
    active: !e.button && !e.ctrlKey,
    setParent: true,
    insert: true,
  });
  suppressing = true;
  setTimeout(function () {
    window.dispatchEvent(new MouseEvent('mouseup', {bubbles: true}));
  });
  prevent(e);
}, true);

window.addEventListener('click', prevent, true);
window.addEventListener('auxclick', prevent, true);

function prevent(e) {
  if (!suppressing) {
    return;
  }
  e.preventDefault();
  e.stopPropagation();
  e.stopImmediatePropagation();
  setTimeout(function () {
    suppressing = false;
  }, 100);
}

[–] [email protected] 1 points 1 year ago (1 children)

I really appreciated this script. I did some modifications so it works on any Lemmy instance and updated it for GM 4.0+

I created a GreasyFork install here, you're the OG author to me, but if you find who you took it from initially let me know and I'll add them to the authorship.

Thanks again!

[–] [email protected] 1 points 1 year ago

Thank you. This really should be a user profile option. Here's hoping.

[–] [email protected] 2 points 1 year ago

There is kbin-link that reformats links to match your home instance, works for kbin or lemmy
https://addons.mozilla.org/en-US/firefox/addon/kbin-link/

for kbin specific stuff kbinstyles magazine has a lot of good stuff. Especially like kbin enhancement script
https://kbin.social/m/kbinStyles

[–] [email protected] 2 points 1 year ago* (last edited 1 month ago) (1 children)
[–] [email protected] 1 points 1 year ago (1 children)
[–] [email protected] 1 points 1 year ago* (last edited 1 month ago)

They both do try to do roughly the same thing. If you go to another Mastodon website and try to follow, reply, etc. it will redirect you to do that on your mastodon instance.

[–] [email protected] 1 points 1 year ago

I use Roam With Mastodon to make interaction with remote Mastodon instances better.

[–] [email protected] 1 points 1 year ago

I'm working on a user script to mark posts as read when I scroll past but I haven't got it working yet

load more comments
view more: next ›