View Single Post
Old 07-16-2024, 03:24 PM   #14
fotonmoton
Member
fotonmoton is faster than slow light.fotonmoton is faster than slow light.fotonmoton is faster than slow light.fotonmoton is faster than slow light.fotonmoton is faster than slow light.fotonmoton is faster than slow light.fotonmoton is faster than slow light.fotonmoton is faster than slow light.fotonmoton is faster than slow light.fotonmoton is faster than slow light.fotonmoton is faster than slow light.
 
fotonmoton's Avatar
 
Posts: 21
Karma: 29470
Join Date: Jul 2024
Location: Ukraine
Device: Kobo Libra 2
Post Kobo Price!

Hi all!

TLDR: install userscript or Firefox/Chrome extension and go to book page. After a couple of minutes you will get a list of all available prices for different countries.

Let me introduce you the Kobo Price! A small userscript that automate price comparison for you. It will try to gather all available country prices, convert them to USD, sort and present them on book page. You just need to open book/audiobook page, wait a couple of minutes (waiting time is highly depends on your connection and PC performance) and get a list on the right side of the page.

You have a couple of options how you can install and use it right now:

1. Easiest way (not sure, honestly) is to download userscript and add it to
Tampermonkey/Violentmonkey/Greasemonkey.
1.1 Download one of the following extensions for your browser:
https://violentmonkey.github.io/
https://www.greasespot.net/
https://www.tampermonkey.net/
1.2 Go to koboprice.user.js and click "raw" on the right side
1.3 If extension don't recognize it as userscript and don't open window for importing it simpy copy and add it manually. You can find out how to do it in the extension docs.
1.4 That's it. You can now go to the book page and test it

2. Install the Kobo Price extension. Right now I go to the finish line only with Chrome extension so you can grab it here: Kobo Price Chrome
2.1 For the Firefox - I'm in the process of review and getting approval from the Firefox itself. So no public extension for now. But! I'm attaching self signed extension below that you can import manually. Just open it in the Firefox and it should show you prompt with confirmation.

3. Build extension from sources yourself and sideload it. Maybe I will add instructions in the future, if someone will have interest in tinkering with it or submitting changes. In two words: get it run
PHP Code:
npm install && npm build && npm ext-build 
and you will get an artifact in the web-ext-artifacts folder. Check Chrome/Firefox docs for how to load it. I want to add a little reactivity to it, so that you can see progress in real time. But, maybe, it will stay as is

Some notes:
- You can open developer tools in the browser, go to console and filter messages by "KOBOPRICE". You will see how and what prices are loading right now.

- Prices are cached as well as the currency rates in your browser localstorage. You can go to the page several times, safely reload it and script will continue from where it left. After all prices are loaded the will show immediately on the page. Prices are cached for one day so, be sure to check your favorite book every morning. If something not working as expected you can go to localstorage tab in your brawser developer tools and without hesitation delete "KOBOPRICE" key.

- I've managed to test it on Firefox for Android. So if you are really lazy as I am you can install Firefox extension or userscript on your phone. If you find out how to do it


Any suggestions are welcome, please test it and say what you think. Also, what to highlight that this "lifehack" will not survive for long. I think it was possible to do the same steps with Amazon, to get lowest price from different stores. But after sometime they make it nearly impossible to change your billing address to bypass their price inequality. But the war with the monopolies is not over! We will prevail!


Click image for larger version

Name:	Screenshot 2024-07-16 at 22-11-19 Capital in the Twenty-First Century eBook by Thomas Piketty - .png
Views:	135
Size:	206.3 KB
ID:	209605
Click image for larger version

Name:	Screenshot 2024-07-16 at 22-10-34 Capital in the Twenty-First Century eBook by Thomas Piketty - .png
Views:	113
Size:	323.5 KB
ID:	209606
Click image for larger version

Name:	Screenshot from 2024-07-16 22-11-46.png
Views:	126
Size:	126.1 KB
ID:	209608
kobo_price-1.1.9.xpi

Last edited by fotonmoton; 07-16-2024 at 03:28 PM.
fotonmoton is offline   Reply With Quote