Closed Markkop closed 4 years ago
Thanks @Markkop !
For the habitica-markdown
source code I think the best thing would be to directly use the content of this file https://github.com/HabitRPG/habitica-markdown/blob/master/dist/habitica-markdown.js since it's the original source and the un-minified version still has some weird variable names
For the dompurify good find! I'd add a comment at the top of source code describing the license it's released under to avoid any type of problems, see https://github.com/cure53/DOMPurify/blob/master/LICENSE I think this part will be enough
DOMPurify
Copyright 2015 Mario Heiderich
DOMPurify is free software; you can redistribute it and/or modify it under the
terms of either:
a) the Apache License Version 2.0, or
b) the Mozilla Public License Version 2.0
After these changes are made I'll try to resubmit it with an updated privacy policy, hopefully it's not rejected again, otherwise we'll have to start using a proper build system to avoid using the source code of external dependencies
Nice catch about using the original habitica-markdown
source code, it makes a lot of sense!
thanks @Markkop ! Sorry for the delay, if you have an Habitica account please let me know your UUID or username and I'll award a contribution tier
thanks @Markkop ! Sorry for the delay, if you have an Habitica account please let me know your UUID or username and I'll award a contribution tier
No problem, thanks for reviewing! Here's my UUID: 40387571-91ee-489e-960f-278bf8fd503a :rocket:
The extension is under review, hopefully it'll be approved this time. Notated towards your 4th tier and added the Blacksmith title
Fixes #49 (partially)
I've used this tool to unminify
habitica-markdown.min.js
I had to updatemanifest.json
andchat.json
with the newhabitica-markdown.js
fileI've removed this permission from
manifest.json
This was more troublesome. I believe it has 2 solutions: convert HTML strings to proper html elements being created with Javascript or using a DOMPurifier as recommend by Firefox This lib is imported at
chat.js
and applied in several parts ofchat_inPage.js
All changes were ported to Chrome's version and tested.
The privacy policy is still needed and have to be handled by Habitica Staff.
PS: some formatting have been changed, sorry about that PS2: this fix has been documented in this article