FIMFiction UserScripts 383 members · 0 stories
Comments ( 9 )
  • Viewing 1 - 50 of 9
Veylon #1 · Mar 30th, 2020 · · 1 ·

Hello! Are you offended by what you see you see on the front page of this site? Do you wish that stories with certain tags would just go away?

Then I have a solution for you. It's the unimaginatively titled "Hide Unwanted Stories" script!

By downloading it and fiddling a bit, you can make any story vanish from your sight. Simply look down into the last function as shown:

(function() {
'use strict';
removeStoriesWithTag("Porn");
})();

And add however many tags you want.

(function() {
'use strict';
removeStoriesWithTag("Porn");
removeStoriesWithTag("Equestria Girls");
removeStoriesWithTag("Drama");
})();

It also works with Browse and in Group Collections.

I'm also throwing in two more features: filter by story description and the ability to hide popular stories (as those don't reveal their tags from the front page). They go right along with the others:

(function() {
'use strict';
removeStoriesWithTag("Porn");
removeStoriesWithTag("Equestria Girls");
removeStoriesWithTag("Drama");
removeStoriesWithTextInDescription("Lavender Unicorn");
HidePopularStories(true);
})();

7185576
Oh cool, I’ve always wanted a feature like this. Will have to fiddle with this later :twilightsmile:

7185576
Is there a way to make it so that the feature box, popular box, new stories column, and updated stories column contain nothing but my stories? There’s no practical use for this; I just think it’d be funny.

7185602
Probably, but I don't know what that way would be. The script would have to reference other pages and do some goofy algorithm stuff and I just don't know that much about it. I don't even know what 'use strict' means.

I'll have to think about it and see what I can do. No promises.

7185576

I see a lot of people using this script to hide Foalcon or porn in general. Which, is unnecessary, because the mature filter of FIMFiction.net already hides such stories anyway..... So, a lot of people will use this to hide stories of genres that aren't compatible with their current gut feeling.
Another tool for people to avoid expanding their horizons and to increase their safe spaces is just what FIMFiction.net needs. :trollestia:

ssokolow
Group Contributor

Rather than asking people to fiddle with it, why not just use GM_config?

You can take a look at my Fanfiction.net Unwanted Result Filter and GOG.com - Sale Helper scripts if you want some examples of using it in practice to implement a filtering script.

7185890
Well, now that I know that this library exists - and, by extension, that javascript has libraries - I'll take a shot at it. I also just learned that you can use cookies to store data for later, so that'll probably be a big help too. I guess I'll have to go expand my horizons.

ssokolow
Group Contributor

7186284

No biggie. Even for people who know JavaScript libraries meant for website use, like jQuery, the part that's non-obvious is that userscripting has libraries and a mechanism for loading them without copy-pasting their source into your script.

This is just what I needed, thanks a lot!

  • Viewing 1 - 50 of 9