8 2
Sign in to rate

Cookie monster

<10kB. Updated 2018-04-13. Only supports Anki 2.1.x.
The author has shared 19 other item(s).

Description

Simple add-on that allows you to use cookies on cards. I use it to pick a random font from a list on the question side, and then let the answer side know about the font picked. For decks that already use them or for your own note types. To use on your own types, add scripts to the front and back, setting the cookie with code like document.cookie = "font_index=" + font_index + ";" and reading it with var font_index = getCookie("font_index");.

Download

As add-ons are programs downloaded from the internet, they are potentially malicious. You should only download add-ons you trust.

To download this add-on, please copy and paste the following code into Anki 2.1:

1501583548

If you were linked to this page from the internet, please open Anki on your computer, go to the Tools menu and then Add-ons>Browse & Install to paste in the code.

All Anki 2.1.x Add-Ons

Reviews

on 1585027271
omg you made my day! If you have a buy me coffee button or something let me know :)
I don't remember where I found it but in one of the shared community decks someone made a card type that I held onto.
4 Choices 1 Answer and other variations. (It'd randomize the order of Questions and Answers so that you'd remember the answer vs your brain recognize the problem and remember the answer is A.) That worked with some super complex javascript. And the 2.0 -> 2.1 broke it for Mac and Win Desktop, but not Android phone. The multiple choices would just be blank and all the Javascript was broken with weird error messages like %ANSWER% , Invalid HTML on card: TypeError, and just not correctly showing values that were moved around using Javascript variables.
on 1583368392
Breaks the MIA Dictionary add-on!
on 1576597968
Lifesaver! Thanks a lot!
on 1568027447
I know practically nothing about javascript but Cookie monster is a requisite for some add-ons.

edit: however, not compatible with Zoom 2.1 https://github.com/ospalh/anki-addons/issues/125
on 1565683496
Unfortunately, this addon breaks Zoom 2.1addon :<
on 1554932416
a great JSbooster 2.1 alternative
on 1551533827
Great, thanks. I use it to shuffle tables but keep the same shuffle on the answer side.

Works all the more that cookies are allowed on ankidroid so that cards are compatible
on 1547765945
I wouldn't want to rate this addon down. It just seems to conflict with Zoom 2.1 and I don't know if there's a github "place" where I can report the issue and get help. TIA
on 1547405900
Great replacement for JS Booster if you're looking for cookie support in Anki 2.1!
on 1527724800
Clever