mohamedmansour / prayer-times-extension

Under Development: Prayer Time Calculation based on Geolocation for Chromium and Firefox
https://chrome.google.com/webstore/detail/ndmbeogingkjkmmkoomnigifmpajmbkc
64 stars 23 forks source link

Updated the structure for Chrome 67+ support #18

Closed msdousti closed 6 years ago

msdousti commented 6 years ago

Chrome 67+ only supports a manifest_version of 2 (reference). So, many older extensions fail to load.

I updated the manifest_version, and adapted the background to the new version.

However, the new security settings of Chrome 67+ prevented any inline JavaScript. So, I had to tinker with the HTML pages, and transfer all instances of inline JavaScript to separate *.js files. Furthermore, I had to set content_security_policy in the manifest file for proper handling of Google Maps JavaScript files.

mohamedmansour commented 6 years ago

Thank you 🙏🏻 will try to push this to the store tomorrow morning inshallah! I’ll see what I can do to refresh this extension too, it’s 7+ years old :-)

msdousti commented 6 years ago

You're most welcome! I've been using it like, forever, and I've missed it already! Even though I had absolutely no knowledge of how Chrome extensions work, I took the liberty of reading the code, and tried my best to make it work again. Please feel free to change it in anyway you see apt, as I might have messed up with things unknowingly.

May God be with you, and thanks a lot for this valuable extension!

mohamedmansour commented 6 years ago

@msdousti thanks for all the work, I fixed a few more bugs from the conversion ( https://github.com/mohamedmansour/prayer-times-extension/commit/ca2eab9473cb2ed69bdb5fcd49b60b75192d7e65 https://github.com/mohamedmansour/prayer-times-extension/commit/a9a7c0080e99b3843e99e8bfd209480ae4b8b7ed https://github.com/mohamedmansour/prayer-times-extension/commit/92aaa8c862cef758d2998402ac9f58e38ea4a7c0 https://github.com/mohamedmansour/prayer-times-extension/commit/961774ae664e42b52ecbba91d7e1f5a62b14e849 https://github.com/mohamedmansour/prayer-times-extension/commit/e57ea6f6f9062c32871cc4488e8c4f49a2095162 https://github.com/mohamedmansour/prayer-times-extension/commit/95254ceff31eaa260e74296cc5a9c2092e8a78f1 https://github.com/mohamedmansour/prayer-times-extension/commit/7c63be06b51fef71d5bf02698af1068943e26a2c https://github.com/mohamedmansour/prayer-times-extension/commit/aa879f6ae0c46bf1b00e821828cb9bf2d366ada7 ) and i deployed a new version here: https://chrome.google.com/webstore/detail/ndmbeogingkjkmmkoomnigifmpajmbkc

If you can help me test it, that would be awesome.

Going forward, I will figure out a way to use WebPack instead.

msdousti commented 6 years ago

Thanks for all the great work!

I think two great features which you might consider are as follows:

If you like, I can open separate issues for the above.

mohamedmansour commented 6 years ago

Thank you, opened up #21 and #22