tampermonkey script to export/backup a bunpro grammar point to csv (and then import to Anki if that is your wish).
Note: because of technical reasons the CSV separator character is a vertical slash: |
.
I believe not every webpage should have their own integrated SRS mechanism, there are other SRS systems far more superior such as anki or supermemo.
Having to use SRS services in 4 or 5 different webpages is unsupportable for anyone and with this system bunpro users get the missing feature: use your own SRS system.
Taking notes in your classes is a complete legal practice; also to share it with your acquitances and colleagues as long as it is a private activity without lucrative goals. This is the main aim of this script: the private usage of the information you are learning and a shortcut from the studied materials to your favourite SRS program.
Please do not reupload somewhere either public distribute the backed-up contents from your account (notice that no batch download has been implemented, only one grammar point and a time).
Make sure you installed the extension "tampermonkey" in your browser. Then Add the bunpro2cvs.js
script to it (click add new script and then copy paste its contents).
Install the script in your tampermonkey browser plugin and you will automagically see the download button in any grammar point.
After you refresh your bunpro page you will see something like that.
Tested only on google chrome and safari.
- Browse to the grammar point you want to backup.
- Open the developer tools panel (usually contol + J) and find the javascript console
- copy and paste the function
download_grammar_point
from thebunpro2cvs.js
file. - type in the javascript console
download_grammar_point()
- Your download should have started automatically.
Anki users probably already invested a bit of money to get cloud sync and native apps for their desktops and mobiles so they might be the ones
- Open Anki
- Create a deck called my bunpro studied grammar or whatever you find convenient.
- Create a new card type with 7 fields as you can see in the screenshor bellow.
- Click on File -> Import... and in the dialogue select your new card type for this action.
- It is very important that you mark that the fields are separated by the character
|
instead of the usual colon character. - Allow HTML, ignore duplicates... and click on import.
- Create a beautiful template for your cards. I provide my simple ones in the
anki_template
subfolder. However, do not waste your time with inputting the text in anki... better write them on paper or use the actual bunpro page if that is a major concern for you. - Make sure you sort your cards by the index field, you might want to use anki plugins for that (however if you already studied the grammar that should not be a major issue either).
Mass distribution of partly or completely ripped contents might be illegal in your country and definetly a punished commercial practice in Europe. Please do not reupload, share or resell any of the downloaded contents.
I created this script to my own personal usage because that was the fastest way for me to get this feature. Now I want to give back to the community which has contributed largely and without any interest to many language students.
I won't update or improve the script, if you want this feature so bad please consider asking the bunpro administrators for it or do a PR (remember to update the tampermonkey version).
The script is licensed as MIT (aka you can do whatever you want with it).