Git Product home page Git Product logo

divitopia-extension's People

Contributors

alohaaloha avatar davidrockin avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

divitopia-extension's Issues

background updating

Would be a better idea to have a background script to update our selectors list and update the BTC price.

Autoload upon install

See if we are able to run the addon on preloaded pages without reloading the page.
Not sure if this is possible.

context menu

Implement a context to convert selected numbers to a specific currency

Automatic Smart Price Detection

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?

configuration menu

Create a configuration menu to allow users to customize the addon and change functionality.

  • Change design? Maybe light or dark theme?
  • Change currencies to show and order
  • BTC update time frequency (in minutes probably)
  • Toggle user selectors
  • Toggle global selectors
  • Custom selectors (like uBlock Origin's block this element feature)

Dynamic currency selection

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.

No iframe compatability

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?

Refactor + ES6

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

Toggle button

Be able to disable certain websites, or disable automatic tooltips.
Best to implement at v1.2.0, after the ES6 rewrite.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.