Filters user-defined content while browsing Furaffinity.
Hi there! I've updated the script accordingly.
Awesome, thanks!
After some testing:
Browse: Seems to work correctly.
Search: The new "Toggle Filtered Submissions" button doesn't seem to be added to the panel. No errors in the log.
User gallery: Crash on the line username = $(this).attr('data-user').match('u-([^\\s]+)');
:
Uncaught TypeError: Cannot read properties of undefined (reading 'match')
at HTMLElement.<anonymous> (userscript.html?name=FA-Content-Filter.user.js&id=7013f608-c075-44de-83f7-263ccdac7090:299:49)
at Function.each (userscript.html?name=FA-Content-Filter.user.js&id=7013f608-c075-44de-83f7-263ccdac7090:3:3129)
at ce.fn.init.each (userscript.html?name=FA-Content-Filter.user.js&id=7013f608-c075-44de-83f7-263ccdac7090:3:1594)
at Proxy.filtersSubs (userscript.html?name=FA-Content-Filter.user.js&id=7013f608-c075-44de-83f7-263ccdac7090:296:17)
at Pt (<anonymous>:10:89)
at t.<computed> (<anonymous>:77:280)
at Pt (<anonymous>:10:89)
at r (<anonymous>:32:484)
at <anonymous>:33:112
at <anonymous>:22:300
Fixed; thank you for pointing out the issues! Let me know if any others arise.
Everything seems to work now, thanks.
Is navigation to the hash "#!" intended? You can call preventDefault
method of the event in your event handler to avoid the default navigation to the link's href.
Works great!
I think the "FA Filter" button should be put inside the settings menu. And the "Toggle Filtered Submissions" should be next to the "Disable/Enable titles" button.