-
-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add website-dedicated special JS rewriting rules #422
Comments
What does the existing ones look like? |
Existing ones looks like this: warc2zim/src/warc2zim/content_rewriting/js.py Lines 137 to 177 in 8733200
And for banrepcultural encyclopedia I need to add something like this:
|
None of the other are content-specific and only ensure those calls are captured by Wombat. Content-specific should not be blindly applied in my opinion. Too fragile. I also think that for now it makes more sense to be code-driven. We need to gain experience with this and code has the flexibility we need. We can move to data-driven later, if that makes sense, once we're clear (from experience) about what needs to be defined and how. |
In some cases (e.g. openzim/zim-requests#1162, but I'm pretty sure #402 would need the same), we need to patch website JS so that it does not interfere badly once inside the ZIM.
Exisiting code is capable to perform these additional rewrites thanks to rewriting rules which are already used to prepare things for wombat operation.
I propose that (I'm not sure about these points):
WDYT?
The text was updated successfully, but these errors were encountered: