Greasy Fork is available in English.

Onge's Neocities Feed Enhancer

a simple script that enhances the neocities feed.

Autor
ongezell
Dziennych instalacji
0
Wszystkich instalacji
7
Oceny
0 0 0
Wersja
1.5.2
Utworzono
27-12-2022
Zaktualizowano
27-12-2022
Licencja
Brak licencji
Dotyczy

Hey there! This script is a userscript that enhances the Neocities feed by adding some cool features to it. The features that this script adds are:

  1. Displaying images inline in the feed, instead of just linking to them. To display an image in the feed, all you have to do is post the image URL to it. No special tags are required.
  2. Adding a "spoiler" button, which lets you hide or show text that's marked as a spoiler.
  3. Adding support for some basic HTML tags like <br>, <p>, <h1>, and <a>, which can be used to format the text in the feed.

To use these custom tags, simply add them to your text in the following format: (br) for a line break, (p) to start a new paragraph, (h1) for a heading, and (a) for a link. You can close these tags by adding an underscore to the tag name, like (br_), (p_), (h1_), and (a_).

The script does this by using the jQuery library to search for these specific patterns in the webpage's HTML, and replacing them with the appropriate HTML elements.

I also used some other libraries, like the jQuery Zoom library, to provide extra functionality. The jQuery Zoom library is used to add a zoom feature to the images displayed in the feed.

If you want to check out the code for this script, or if you have any questions about how to use it, head on over to the GitHub repository for usage tips.

Made by Ongezell