I’ve gotten into Neocities, which will eventually need its own page – but for now, I wanted to share something I made for my own convenience. It stressed me out to see so many follow notifications in the feed of activity where I really just wanted to see site updates. With a userscript, I now have them hidden by default, and a link to click them back on.

For the userscript, you’ll need something like Tampermonkey.

I’m not providing the userscript in the “correct way” because… I don’t want to look up how. Just copy and paste this into a new script:

// ==UserScript==
// @name         nofollow neocities :)
// @version      0.1
// @description  don't show follow items
// @author       https://maya.land
// @match        https://neocities.org/*
// @icon         https://www.google.com/s2/favicons?domain=neocities.org
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    Array.from(document.getElementsByClassName("news-item follow")).forEach(e => {
        e.style.display = "none";
    var e = document.createElement('div');
    e.class = 'news-item';
    e.innerHTML = `<div class="title">
      <a href="javascript:(function(){Array.from(document.getElementsByClassName('follow')).forEach(a=>{a.style.display=null})})();">show follows</a></div>`;
    var a = document.querySelector('.news-item');
    a.parentNode.insertBefore(e, a);

Since this is just hiding them from view, you may have pages of activity where nothing shows up. I wish Neocities let you configure page size, but c’est la vie.