Dark Lord Potter Forums
Go Back   Dark Lord Potter Forums > Common Room > General Discussion
Donate Register Rules Library List IRC Chat FAQ Members List Social Groups Calendar Search Today's Posts Mark Forums Read

Donate to DLP Scryer Banner

 
Thread Tools Display Modes
Old 04-15-2017, 05:13 PM   #1
draykfyre
First Year
 
Join Date: Sep 2011
Posts: 36
DLP Supporter Donor Star
Filter FFN author favorites by category

Howdy all, figured I'd share this little script I made today. It allows you to filter an author's favorites by fandom, so you can filter by fandom and then sort by reviews/words/etc instead of only being able to sort every fic from every fandom. I figured enough people probably use author favorites to find new fics, so maybe other people would like to have it too.

Right now crossovers show up in the list by themselves, although I may eventually add a checkbox to include crossovers in the filtered fandom results.

You should be able to add it in greasemonkey(firefox) or tampermonkey(chrome).

Installation instructions:
  1. Install the Greasemonkey or Tampermonkey extension
  2. Go here and click the raw button. Greasemonkey or Tampermonkey will prompt you to install the script. Click the install button and you're good to go.



EDIT: The forum appears to have turned the name and namespace into mentions inside the code section. And nicely turned the urls into links with ellipses in them. I've replaced them with gists.

EDIT 2: Apparently there was no need for two versions - for me at least they both work just fine in chrome. This is my first greasemonkey/tampermonkey script, so I thought for whatever reason I'd need two versions. I'm going to stop making any modifications (if I choose to make any more at all) to the chrome version and only update the (formerly)firefox version. It's been renamed to reflect that, and I did update the update/download urls in the chrome version, so checking for updates should find the maintained one eventually instead of the chrome version.

Script:
https://gist.github.com/dspencer001/...7f87ce5ccb200e
Attached Images
File Type: jpg screenshot.JPG (236.1 KB, 18 views)

Last edited by draykfyre; 04-22-2017 at 01:54 PM. Reason: Added installation instructions
draykfyre is offline   Reply With Quote
Thumbs Up 3 thumbs up
Old 04-15-2017, 05:21 PM   #2
NuitTombee
Supreme Mugwump
 
NuitTombee's Avatar
 
Join Date: Feb 2010
Location: The Peach State
Gender: Male
Posts: 1,711
The require is truncated and it causes a bit of a problems with copy/pasting.

Edit: The script, Firefox, doesn't seem to be working for me. The drop-down doesn't show.

Edit2: Nevermind, I was thinking it's show for their stories too instead of just their favorites.
__________________

Last edited by NuitTombee; 04-15-2017 at 05:28 PM.
NuitTombee is offline   Reply With Quote
Old 04-15-2017, 05:29 PM   #3
draykfyre
First Year
 
Join Date: Sep 2011
Posts: 36
DLP Supporter Donor Star
Quote:
Originally Posted by NuitTombee View Post
The require is truncated and it causes a bit of a problems with copy/pasting.

Edit: The script, Firefox, doesn't seem to be working for me. The drop-down doesn't show.
The forum kindly replace the @ name with a mention, and truncated the urls. I've replaced the code sections with gists.
draykfyre is offline   Reply With Quote
Old 04-15-2017, 05:32 PM   #4
NuitTombee
Supreme Mugwump
 
NuitTombee's Avatar
 
Join Date: Feb 2010
Location: The Peach State
Gender: Male
Posts: 1,711
Yeah, it's working fine now. Tried it with an easy url: https://www.fanfiction.net/~nuittombee

But then I remembered the include was for /u/*/*

Went ahead and added to my own copy.

// @include https://www.fanfiction.net/~*
__________________
NuitTombee is offline   Reply With Quote
Old 04-15-2017, 05:37 PM   #5
draykfyre
First Year
 
Join Date: Sep 2011
Posts: 36
DLP Supporter Donor Star
Cool. I've added those to the gists as well.

EDIT: I also just added it showing up on the author stories page as well.
EDIT2: It now works if there isn't a favorites page at all as well.

Last edited by draykfyre; 04-15-2017 at 06:20 PM.
draykfyre is offline   Reply With Quote
Thumbs Up 1 Thumb Up
Old 04-15-2017, 07:27 PM   #6
NuitTombee
Supreme Mugwump
 
NuitTombee's Avatar
 
Join Date: Feb 2010
Location: The Peach State
Gender: Male
Posts: 1,711
Decided to try adding some other info, do the update and download urls look workable?

https://gist.github.com/dspencer001/...7f87ce5ccb200e
__________________
NuitTombee is offline   Reply With Quote
Thumbs Up 1 Thumb Up
Old 04-15-2017, 07:54 PM   #7
draykfyre
First Year
 
Join Date: Sep 2011
Posts: 36
DLP Supporter Donor Star
Thanks! I've added the update urls to the gists. I think after raw in the urls was a commit hash, or whatever gists have for the equivalent of commits. Removing that seems to work though.
draykfyre is offline   Reply With Quote
Old 04-15-2017, 11:02 PM   #8
Download
Chief Warlock
 
Download's Avatar
 
Join Date: Aug 2014
Location: Adelaide, Australia
Age: 23
Gender: Male
Posts: 1,465
DLP Supporter Donor Star
I thought the mention system only worked if you put @ before the name.
Download is offline   Reply With Quote
Old 04-16-2017, 12:50 AM   #9
draykfyre
First Year
 
Join Date: Sep 2011
Posts: 36
DLP Supporter Donor Star
Before when I had the scripts in code tags, there was metadata that had an @ symbol and then a name, i.e The forum turned those into mentions.

edit: See? That wasn't deliberate by the way, but worked out to be an excellent example
draykfyre is offline   Reply With Quote
Old 04-17-2017, 01:24 AM   #10
Andrela
Dark!Andrela
Plot Bunny
 
Andrela's Avatar
 
Join Date: Apr 2012
Location: Silesia
Age: 26
Gender: Female
Posts: 4,109
DLP Supporter Donor Star
Works like a charm, thanks!
__________________
Andrela is online now   Reply With Quote
Old 04-22-2017, 01:25 AM   #11
draykfyre
First Year
 
Join Date: Sep 2011
Posts: 36
DLP Supporter Donor Star
I went ahead and fixed the fandom filtering wrongly weirdness after I realized that filtering by Final Fantasy VII would also include results for Final Fantasy VIII. It now will only show stories for the exact fandom you select. This does mean that crossovers for a fandom won't show up if you filter by the fandom, you have to specifically select which crossover you want in order to see them. I might add a checkbox eventually to include crossovers when filtering.

I also removed the chrome version from the OP after I realized I didn't actually need two versions. It's still on my github as a gist, but the update urls have been changed to point to the other gist.
draykfyre is offline   Reply With Quote
Old 04-22-2017, 01:03 PM   #12
Hawkin
Minister for Magic
 
Hawkin's Avatar
 
Join Date: Apr 2011
Location: QC, Canada
Gender: Male
Posts: 1,214
So how does one go about installing this nifty thing?
__________________
Hawkin is offline   Reply With Quote
Old 04-22-2017, 01:11 PM   #13
NuitTombee
Supreme Mugwump
 
NuitTombee's Avatar
 
Join Date: Feb 2010
Location: The Peach State
Gender: Male
Posts: 1,711
Quote:
Originally Posted by Hawkin View Post
So how does one go about installing this nifty thing?
Have Tampermonkey / Greasmonkey then go to the link in the op and click Raw in the top right of the code. It should have a pop-up prompt that you can choose install from.
__________________

Last edited by NuitTombee; 04-22-2017 at 01:15 PM.
NuitTombee is offline   Reply With Quote
Thumbs Up 2 thumbs up
Old 04-22-2017, 01:55 PM   #14
draykfyre
First Year
 
Join Date: Sep 2011
Posts: 36
DLP Supporter Donor Star
Quote:
Originally Posted by NuitTombee View Post
Have Tampermonkey / Greasmonkey then go to the link in the op and click Raw in the top right of the code. It should have a pop-up prompt that you can choose install from.
Thanks, I probably should have had instructions in the OP from the beginning.
draykfyre is offline   Reply With Quote


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
A filter for fanfiction.net? Jormungandr FanFic Discussion 12 12-13-2010 01:26 PM
DLP Awards Category: Prettiest Unicorn. Jon Announcements 44 04-18-2010 08:04 PM
Filter Seratin Feature Requests 0 05-25-2008 04:40 PM
The Favorites Tracker Memory King General Discussion 0 01-28-2008 07:50 AM


All times are GMT -4. The time now is 10:38 AM.


Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Copyright ©2005 - 2016 DLP Group. All rights reserved.
No personal intellectual property on this site may be used without the credit and express permission of the respective authors.