14 2
Sign in to rate

Cookie monster

<10kB. Updated 2018-04-13.
The author has shared 19 other item(s).


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");.


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

Supported Anki versions:

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


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


on 1615754368
I installed this addon because it is needed for "Insert Randomized Lists (multiple choice)" addon. Works fine so far.
on 1611692044
breaks the Anki Zoom and the Pomo.

I Found a possible solution.
1.Open the addon folder.
2.Remove the following line from "_init_":
mw.web = AnkiWebView () # I think the webview has already been created when we get here. So reset it.
on 1607863070
Currently the focus is on the answer button.
How can I edit the code to focus on the card window?
(Same question)
on 1605718170
Currently the focus is on the answer button.
How can I edit the code to focus on the card window?
on 1603850107
thank you so so much! this add on works great for 4 choices 1 answer card type!
on 1603521758
Anki Persistence couldn't solve my problem. However this work like a charm. I'm loving it!!
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