memchr

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

What advantage does Discourse have over FluxBB?

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

It would be nice to have some sort of mutually assured destruction with these mega corps.

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

spez is fediverse salesman of the year

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

user script manager like this one

[–] [email protected] 7 points 1 year ago (3 children)
// ==UserScript==
// @name        archive.org link
// @include     *://*.google*/search*
// @include     *://*
// @exclude     *://*.archive.org*
// @exclude     *://archive.org*
// @grant       none
// @version     1.0
// @author      memchr
// @description 6/15/2023, 6:57:32 AM
// ==/UserScript==
function get_archive_href(href) {
  return "https://web.archive.org/web/" + href.replace(/^https?:\/\/www\.reddit\.com/, "https://old.reddit.com")
}

if (window.location.hostname.match(/^(\w*\.)?google.*$/)) { // google
  const results = document.querySelectorAll('div.yuRUbf > a');
  results.forEach(e => {
    let href = e.getAttribute('href');
    href = get_archive_href(href);
    let archive_link = document.createElement('a');
    archive_link.href = href;
    archive_link.textContent = "archive";
    archive_link.style.marginLeft = "10px";
    e.insertAdjacentElement("afterend", archive_link);
  })
} else if (!window.location.hostname.match(/(localhost$|^(127|192|10)\.)/)) {
  const href = get_archive_href(location.href);
  document.addEventListener('keydown', function(event) {
    if (event.ctrlKey && event.altKey && event.key === 'a') {
      window.location.href = href;
    }
  });
}

press shift+ctrl+A or click on archive if you use google.

0
.ml TLD (en.wikipedia.org)
 

Isn't the .ml TLD administered by freenom? How can we be sure that lemmy.ml is safe from a hostile takeover by this shady company with a history of hijacking high-traffic domains and demanding more money?

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

digg déjà vu