Giter Club home page Giter Club logo

pyszny-filtr's Introduction

Pyszny Filtr

image

For English, scroll below.



Opis

Skrypt do przeglądarki, dzięki któremu na Pyszne.pl możesz filtrować dania według składników.

Możesz podać kilka składników – wystarczy oddzielić je przecinkiem. Nie musisz podawać pełnych nazw; lepiej ograniczyć się do pierwszych kilku znaków, żeby uwzględnić odmienione słowa.

  • Wpisanie ceb, ruko w polu "chcę to, to, ..." spowoduje pokazanie tylko tych dań, które zawierają cebulę oraz rukolę.
  • Wpisanie ceb, ruko w polu "nie chcę, bleh, ..." spowoduje pokazanie tylko tych dań, które nie zawierają cebuli ani rukoli.

Po odfiltrowaniu znikną też kategorie posiłków, które okażą się puste.

Należy pamiętać, że ten skrypt szuka składników, a nie nazw dań. Składniki są pisane kursywą pod nazwą dania.
Jeżeli chcesz szukać nazw dań, użyj zwykłego wyszukiwania w przeglądarce, tzn. Ctrl+F.

Instalacja

  1. Ściągnij wtyczkę, która obsługuje skrypty użytkownika. Ja używam Violentmonkey.
  2. Otwórz plik ze skryptem (kliknij tutaj), żeby go zainstalować.
  3. Gotowe! Wejdź na Pyszne.pl – na stronie z menu jakiejś restauracji powinny pojawić się dodatkowe pola, takie jak na obrazku powyżej.

Licencja

MIT. Szczegóły w pliku LICENSE.



Description

Userscript that lets you filter meals on Pyszne.pl by liked and disliked ingredients.

You can enter multiple ingredients by separating them with a comma.

  • Entering ceb, ruko in "chcę to, to, ..." will show meals that have both cebula and rukola.
  • Entering ceb, ruko in "nie chcę, bleh, ..." will show meals that have neither cebula nor rukola.

Try not to enter too much of the name, as Polish declension will make the filter not work (e.g. cebula will not catch "cebulę").

Empty meal categories will be hidden.

Note that this does not search for item names. This script only combs through their ingredients, which are usually in italics.
To search for names, use the default search in your browser, e.g. Ctrl+F.

Setup

  1. Get a browser extension that lets you run userscripts. I'm using Violentmonkey.
  2. Open the script file (just click here) to install it.
  3. Done! Start looking for some food on Pyszne.pl. In a restaurant's menu view, you should see input fields like in the screenshot above.

License

MIT. See the LICENSE file.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.