This a browser extension for chrome that converts Dollar prices on a webpage to Naira, using the exchange rates gotten from openexchangerates.com
Author: Osayamen Osaretin Email: [email protected]
To use this extension(while I find the money to get a developer account):
- Download all the files and put them all in a single folder named "converter"
- Open Chrome or a new tab, then go the the extension page (http://chrome://extensions) or from the options at the far right, go to more tools and then extensions.
- Enable developer mode by clicking the toggle button on the top right
- Drag the folder to this page and it will automatically be added to your browser extensions.
- Enable and the blue icon will appear next to the address icon
- Use on any page that has dollar prices and they'd become Naira prices :). (try https://www.amazon.com/gp/goldbox/ref=nav_cs_gb)
or:
- click on the "load unpacked extension" button
- Navigate to the converter folder and select it
- Use on any page that has dollar prices and they'd become Naira prices :). (try https://www.amazon.com/gp/goldbox/ref=nav_cs_gb)
manifest.json: Compulsory json file for chrome extensions, tells Chrome everything about the extensions, including the content and background scripts
convertToNaira.js: content script that contains the actual application logic. Converts prices to naira and replaces them on the web page
getExchangeData.js: collects exchange rates for api using jquery
background.js: collects user click on browser_action. sends messages to main content script (convertToNaira.js)
jquery-3.2.1.min.js: jquery library
money.js: Library that handles currency conversion