yaqwsx / jlcparts

Better parametric search for components available for JLC PCB assembly
https://yaqwsx.github.io/jlcparts/
MIT License
538 stars 51 forks source link

FR: Filter Available Categories (Grease/Tampermonkey Script Included Proof Of Concept) #138

Open sleemanj opened 1 month ago

sleemanj commented 1 month ago

The category structure is pretty bad (coming from JLC) and th enumber of categories is overwhelming.

A filter to only show category selects with categories matching some string is useful.

Here is a Tampermonkey script which does that, simply type for example "Resistors" in the Category Filter field and it becomes much easier to find the appropriate category.

Accepts standard plain text (case insensitive) or you can write a literal regexp (eg /foo.*bar/i )

https://gist.githubusercontent.com/sleemanj/688cf2dfbca19fff46c87a13e9236b65/raw/7125492717990adf202c0f7a4442b7e6a21db94b/jlcparts-category-filter.js

5