64 Commits

Author SHA1 Message Date
Anuj Kumar Sharma
0e531b6e3c
Added Wikipedia's own Dark Mode solution (#1320)
* Addede wikipedia's dark mode

Signed-off-by: THEBOSS0369 <anujkumsharma9876@gmail.com>

* Fixed codefactor issue

Signed-off-by: THEBOSS0369 <anujkumsharma9876@gmail.com>

* Removed overriding classes

Signed-off-by: THEBOSS0369 <anujkumsharma9876@gmail.com>

* Fixed dark mode conversion

Signed-off-by: THEBOSS0369 <anujkumsharma9876@gmail.com>

* fixed another little update

Signed-off-by: THEBOSS0369 <anujkumsharma9876@gmail.com>

* Added wikipedia's dark theme for zim

Signed-off-by: THEBOSS0369 <anujkumsharma9876@gmail.com>

* fixed codefactor

Signed-off-by: THEBOSS0369 <anujkumsharma9876@gmail.com>

* adding css file in sw file

Signed-off-by: THEBOSS0369 <anujkumsharma9876@gmail.com>

* Added feature to switch to a standard inversion dark mode if the user loads a non-Wikimedia ZIM

Signed-off-by: THEBOSS0369 <anujkumsharma9876@gmail.com>

* added explicit check for the theme

Signed-off-by: THEBOSS0369 <anujkumsharma9876@gmail.com>

* Fixed dropdown issue and add asterisk

Signed-off-by: THEBOSS0369 <anujkumsharma9876@gmail.com>

* fixing white flash

Signed-off-by: THEBOSS0369 <anujkumsharma9876@gmail.com>

* fixing eslint

Signed-off-by: THEBOSS0369 <anujkumsharma9876@gmail.com>

* Fixing codeerror

Signed-off-by: THEBOSS0369 <anujkumsharma9876@gmail.com>

* REVERTING

Signed-off-by: THEBOSS0369 <anujkumsharma9876@gmail.com>

* Revert "REVERTING"

This reverts commit c515392dcf1acdafdd8023989ddeb8bb0da60c74.

* Fixed color

* Removing unncessary code which was added to fix flash issue

Signed-off-by: THEBOSS0369 <anujkumsharma9876@gmail.com>

* Add translations in i18n dir

Signed-off-by: THEBOSS0369 <anujkumsharma9876@gmail.com>

* Added in description

Signed-off-by: THEBOSS0369 <anujkumsharma9876@gmail.com>

* Update i18n/es.jsonp.js

Co-authored-by: Jaifroid <egk10@cam.ac.uk>

* Update i18n/fr.jsonp.js

Co-authored-by: Jaifroid <egk10@cam.ac.uk>

* Update i18n/fr.jsonp.js

Co-authored-by: Jaifroid <egk10@cam.ac.uk>

---------

Signed-off-by: THEBOSS0369 <anujkumsharma9876@gmail.com>
Co-authored-by: Jaifroid <egk10@cam.ac.uk>
2025-06-14 22:10:19 +05:30
Jaifroid
3bb40fb4b0
Add snippets to full-text search #1348 (#1349) 2025-06-09 17:40:47 +01:00
Jaifroid
49d7fbc99d
Update code checking actions,, add ESLint tests, and fix test race conditions #1323 (#1328) 2025-03-26 16:38:57 +00:00
D3V-D
6b1f5b1c07
Reopen last article via "unclick" on menu items #127 (#1284)
Signed off by @D3V-D
2024-11-14 13:41:01 +00:00
Jaifroid
3e7f5dba7e
Decode overencoded external Zimit2 URLs #1258 (#1267) 2024-07-11 14:31:01 +01:00
Jaifroid
77407afb47
Rename Safe mode to Restricted mode #1259 (#1265) 2024-07-09 18:43:28 +01:00
Jaifroid
bf4042bb6f
Add popover previews of Wikimedia article links #719 (#1252) 2024-06-02 15:40:14 +01:00
Jaifroid
fe77a8288a Fix very minor error with undefined variable 2024-05-19 16:05:25 +01:00
D3V-D
affca037e2
Move returnToCurrentPage function to uiUtil.js #1248 (#1249)
Signed off by @D3V-D.
2024-05-06 08:31:48 +01:00
Dan Niles
01f7e29e2b
Add option to turn off external link warning #891 (#1236)
Signed off by @dan-niles.
2024-03-28 11:54:14 +00:00
Jaifroid
59d1c2543f
Remove remaining JQuery from non-dependency code #367 (#1225) 2024-03-16 13:00:03 +00:00
Greeshmanth
b77b385895
Renamed JQuery Mode to Safe Mode in the UI #1197 (#1215)
Signed off by @Greeshmanth1909.
2024-03-04 16:58:17 +00:00
Jaifroid
ff2615c099
Add content warning for zimit2 in service worker local mode (#1209) 2024-02-12 11:04:45 +00:00
Jaifroid
3890cc263a
Deal with zimit2 URL handling in jQuery mode #1206 (#1207) 2024-02-11 18:28:33 +00:00
Jaifroid
30e6215aa6
Open external links and PDFs outside zimit sandbox #1183 (#1201) 2024-01-24 19:55:24 +00:00
Jaifroid
4403292a60
Refactor zimit processing and add srcset support (#1181) 2023-12-10 09:22:07 +00:00
Jaifroid
74a2b54142
[FEATURE] High-fidelity warc2zim (Zimit) reading #1009 (#1173) 2023-12-02 18:04:48 +00:00
Jaifroid
1e7c399782
Enable tab access to file, folder and library selectors #1151 (#1153)
Also fixes #1154, and adds auto-dismissing of active content warning on scroll.
2023-11-12 15:04:00 +00:00
Jaifroid
bd19ae71f0
Make auto focus search bar depend on home key option (#1144) 2023-11-02 11:34:37 +00:00
Jaifroid
ef29fdc07b Fix region resizing and make swipe > 2/3 screen 2023-11-01 21:55:32 +00:00
Jaifroid
8ee8cb8150
Slide away UI elements with swipe even on non-scrollable pages #1141 (#1142) 2023-10-31 23:00:56 +00:00
Rishabh Gautam
671cd9a132
Zim browser integration #1127 (#846)
Added in-app support to download/browse Zim files
2023-10-10 00:45:17 +05:30
Rishabh Gautam
69f85540c5
Transition animation cleanup and page animation turned off by default #78 and #1101 (#1102) 2023-09-19 22:05:28 +05:30
Jaifroid
3a56e9a7c9
Documentation updates (#1093) 2023-09-04 08:17:50 +01:00
Jaifroid
085fbf14db
Revise the UI translations in French and Spanish and add or repair dynamic features #1071 (#1078) 2023-08-31 15:09:06 +01:00
Jaifroid
024034827f
Add internationalization framework with French and Spanish translations #1060 (#1061) 2023-08-23 18:14:21 +01:00
Jaifroid
383801f37f
Use native es6 modules and modern bundler (rollup) instead of require js #554 (#1025) 2023-07-02 18:14:45 +01:00
Jaifroid
bd7393e921
Migrate to extension Manifest v3 for Chromium #755 (#984)
Both MV2 and MV3 are built for Chromium. Only MV2 for Firefox for now (until Service Workers are supported as backgroundscript.js).
2023-06-13 21:21:40 +01:00
Jaifroid
3277f85d37
Add Promise queue to prevent overlapping dialogue boxes #841 (#1002) 2023-05-11 20:39:54 +01:00
Aritra Bhaduri
0b2211cb6c
Removed usage of jquery while opening and closing bootstrap modals #921 (#968)
Signed off by @aritroCoder.
2023-03-26 08:26:22 -05:00
Jaifroid
d5a7b4088d
Update documentation of full text search #942 (#944) 2022-12-22 15:55:26 +00:00
Jaifroid
366c0c169d
Integrate full-text search results into title search results (#935) 2022-12-17 08:02:49 +00:00
Aritra Bhaduri
06e3ec3c0d
Removed most usage of innerHTML #824 (#902)
Signed off by: Aritra Bhaduri <92646038+CodingwithMe123@users.noreply.github.com>
2022-12-11 12:14:00 +00:00
Jaifroid
dc450d7075
Initialize the libzim worker #929 (#934) 2022-11-27 14:52:23 +00:00
Dheeraj Lalwani
23d596b309
Convert further jQuery statements to native JS #920 (#927)
Signed off by @dheerajdlalwani.
2022-11-27 08:22:32 +00:00
Jaifroid
39051c91e3
Replace jQuery for hide and show statements selected by ID #916 (#917) 2022-11-16 15:52:58 +00:00
Mossroy
6bc0b93857 Open external links in new tabs and warn the user
Fixes #404

This is a refresh of the work of Jaifroid in branch https://github.com/kiwix/kiwix-js/tree/Check-for-external-links-and-warn
2022-06-02 17:17:46 +02:00
Mossroy
a57d6227d2
Handle Enter key in Bootstrap modal dialogs (#864)
* Handle Enter key in Bootstrap modal dialogs

Fixes #863

* Switch to native DOM methods, and keyup event
2022-06-01 12:08:34 +02:00
Mossroy
2c2d168030
Upgrade webp-hero library and reuse the canvas (#838)
* Workaround some antifingerprinting features for webp polyfill

It affects in particular IceCat 60.7

WebpHero has been upgraded, and tries to detect if the workaround is
necessary.
If it is, there is a setting to let the user disable the workaround if
wished.

Fixes #835 and #816 (support of DataURI images when webp is not
supported by the browser)

* Rename feedNodeWithBlob function to feedNodeWithDataURI

* Added canvas elements to stylesheets

Co-authored-by: Jaifroid <egk10@cam.ac.uk>
2022-02-21 21:09:13 +01:00
Manjit Kaur Khaira
26490f4469
Auto Dark mode Theme added (#793)
* Add auto options to index.html

* update app.js

* update uiUtil.js

* testing

* Update app.js

* fixed bug in app.js

* Update app.js

* removed extra spaces

* removed extra spaces

* Fixes autoTheme eventListener in app.js and removed spaced in index.html

* app.js

* removed extra spaces

* updated app,js and uiUtil.js

* fixed bug when browser doesn't support color-schemes

* added removeChild() instead of remove() and renamed class

* parentElement to parentNode 

As the parentElement is new to firefox and IE

* parentElement to parentNode

* fixes options for theme and some for wikimedia theme

* fixes help for the wikimedia theme

* update uiUtil.js

* moved code back to previous place

* displays auto theme description

* added auto description <p>

* removed space added again

* Update uiUtil.js

Defined `oldDescription` earlier before using it

* fixes oldDescription

* Update uiUtil.js

Co-authored-by: Mossroy <mossroy@mossroy.fr>
2022-02-21 12:46:59 +01:00
Gaurav Agarwal
2271ff2ec3
Added bootstrap modal for alert and confirm popups #798 (#804)
Signed off by @gaurav7019
2022-02-20 11:28:03 +00:00
Jaifroid
ba994b8984
Fix race condition while loading decompressors (#822)
May fix #820. Also fixes #812.
2022-02-06 16:16:54 +00:00
Jaifroid
b143e8372c
Fix incorrect processing of titles with question marks and anchor parameters #806 (#807) 2022-01-31 21:16:19 +00:00
Jaifroid
1fa345bf7e
Deal correctly with link element containing a favicon (#811) 2022-01-31 09:40:51 +00:00
Jaifroid
06e528a5f3
Provide methods for resetting the app and bypassing appCache #794 (#797) 2022-01-16 12:47:51 +00:00
Jaifroid
e42995047c
Enable Service Worker mode in Firefox extension via PWA workaround #764 (#771) 2022-01-09 09:19:51 +00:00
Jaifroid
8579bbeb72
Recompile Emscripten binaries, implement WASM with fallback, add API info, add compile scripts (#740)
Fixes #739, #652 and #511. Instructions and helper scripts are included for easy future recompiling of the binaries with docker.
2021-08-22 08:54:47 +01:00
Jaifroid
18c51f1ab9
Preliminary support for ZIM archives with no namespace (#698)
Partially implements #684.
2021-02-06 17:00:05 +00:00
Jaifroid
34579987f5
Extract images sequentially in jQuery mode #671 (#677) 2020-11-29 07:36:32 +00:00
Jaifroid
74cccba19a
Add WebP Polyfills in jQuery mode #650 (#670)
Fixes #650.
2020-11-22 09:50:18 +00:00