• 1 Post
  • 6 Comments
Joined 1 year ago
cake
Cake day: June 17th, 2023

help-circle


  • Gamera8ID@lemm.eeOPtoSelfhosted@lemmy.worldIn over my head
    link
    fedilink
    English
    arrow-up
    6
    ·
    1 year ago

    Now I feel dumb.

    That didn’t work earlier.

    I just went to copy the error message I saw before and… it’s working.

    Maybe because I switched back to Namecheap’s nameserver? Or maybe because I cleared my cache again? Or maybe because I game it some more propagation time?

    Or maybe magic?

    Each potential reason seems equally likely to me.

    Thanks




  • ChatGPT and I came up with this bookmarklet which I’m using until this is resolved.

    You set your home instance, then just click it when on a post on another instance. It grabs the post title and the author, redirects to a post search of the title on your home instance, and copies the author to your clipboard to Ctrl-F if there are too many results.

    You have to be pretty quick on the draw to be able to enable clipboard access when using it on a new instance for the first time. So it’s like a game, too.

    javascript:(function(){
      let instance = "lemm.ee";
      const personListing = document.querySelector('.person-listing');
      const author = personListing.getAttribute('title');
      navigator.clipboard.writeText(author);
      alert("Post author copied to clipboard.\n\nCtrl-F + Crtl-V when redirected, if necessary.");
      var title = document.title;
      var lastDashIndex = title.lastIndexOf(" - ");
      if (lastDashIndex !== -1) {
        title = title.substr(0, lastDashIndex);
      }
      var encodedTitle = encodeURIComponent(title);
      let search = "https://" + instance + "/search?q=" + encodedTitle + "&type=Posts";
      window.location.href = search
    })();