davidrockin / divitopia-extension Goto Github PK
View Code? Open in Web Editor NEWDivitopia: An extension from The Divi Project, providing you with real-time Bitcoin price conversion!
Home Page: https://divitopia.diviproject.org
Divitopia: An extension from The Divi Project, providing you with real-time Bitcoin price conversion!
Home Page: https://divitopia.diviproject.org
Would be a better idea to have a background script to update our selectors list and update the BTC price.
See if we are able to run the addon on preloaded pages without reloading the page.
Not sure if this is possible.
Implement a context to convert selected numbers to a specific currency
Lots of exchanges have different ways to display crypto prices, whether they have a tab list or sort it by column. Need a new system to group selectors together if their prices can be affected by certain elements on a page, whether they're in a specific column or table that can be changed by tabbed content.
It might also be a nice idea to have content analyzation to find crypto prices. Such as sorting through paragraphs or links, that match /(([0-9.,]+)\s?([A-Za-z]{3,8})/
and use the second match to see if it's a crypto currency symbol, and just update that block of text to have a span to trigger the tooltip.
And to expand on the previous, if a user selects 1.2334 BTC
or 1.2334 ETH
, it should detect the crypto currency and automagically use that currency.
Probably projected for v1.3.0?
Create a configuration menu to allow users to customize the addon and change functionality.
should make sure we only convert BTC to usd
Exchanges have different crypto currency support, some support several and some only support one.
Need to make the system determine what the active currency is on that exchange. Since we now support multiple currencies thanks to commit e11b2b8, just need to change the default currency, so then the hover tooltip conversion will just use the default currency.
Just need to figure this out a bit more, we could maybe change the web-data.json file and have a field to specify a specific JS function to call to process the currency, or default to a crypto currency.
Divitopia does not convert prices in iframes. An example is etherscan's address token transfers page, it uses an iframe to display information and the tooltip does not activate on hovering OR selecting the text and using context menu to convert.
Debugging shows that the openSelectionTooltip
function detects its an iframe, but nothing can be obtained from the selection.
I'm not sure if this is even possible to work on, since browsers have strict security policies on iframe content interaction. But maybe need to embed Divitopia within iframes and use client messaging to send the parent page to open a tooltip?
Need to rework the extension and use classes in multiple files to organize the extension up a bit. This could also allow us to implement user options and design changes, in issue #4
Be able to disable certain websites, or disable automatic tooltips.
Best to implement at v1.2.0, after the ES6 rewrite.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.