GithubHelp home page GithubHelp logo

stoiandan / biblegatewayquick Goto Github PK

View Code? Open in Web Editor NEW
7.0 7.0 5.0 161 KB

Make a quick search for a Bible verse on the most awesome Protestant biblegateway.com

License: BSD 3-Clause "New" or "Revised" License

JavaScript 87.29% HTML 10.23% CSS 2.48%
bible bible-verse biblegateway extension-firefox protestant search-engine

biblegatewayquick's People

Contributors

jbust97 avatar shlomif avatar stoiandan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

biblegatewayquick's Issues

Make extension available for chrome or make a chrome branch

Tons of people use Chromebooks, and the Chrome Engine is used not just on Google Chrome, but Chromium, Brave, Opera, Microsoft Edge, etc.
Not sure yet if the extension can be made to work on chrome engine as is, or a new branch needs be done.
Anyways, work in this area has already been made as the Firefox browser.menus API, has been replaced with chrome compatible contextMenus

Allow user to choose bible version

Currently version is hard coded to NIV, a small html action button that displays a bible translation drop down could be written for users to select their favorite translation

Add verse of the day support

When clicking the browser action button (extension button in toolbar area), the verse of the day from biblegateway.com should come up.

Verse of the day should be changed based on date and not day number

Currently in src/verseOfTheDay.js there is mechanism in place to check each time the verse of the day is request, if it has expired or not (i.e. if it's still the same day), this has been implemented by comparing day numbers (example Sunday = 1, Monday = 2), instead of whole dates (i.e. 23.05.2021).
This is a bug because if a user only uses the browser on, say, Sundays, the mechanism will conclude it's the same date, which is wrong, and not fetch a new verse of the day.

Fetch Bible citation text in backgroung

Currently, after selecting text, the extension decides if selection is a valid Bible reference or not and based on this enables/disables the context menu.
I would be much easier and faster for the user, if instead, we got fetch the text in background and later on display in int the same page, in small frame above the selection.

beautify the HML with some CSS

Currently the toolbar (browser action as internally called), who's HTML code is stored in src/action, is very dull, with no CSS arrangement at all.
Maybe it can be made more pleasant to the eye via CSS? Any ideas/prototypes are welcomed.

User input for translation of choice

Currently, there are several predefined translations the user can select.
A text input could be added, where the user input would override selection of predefined selection.

This also need to include validation, as to not allow malicious or wrong input

Verse of the day doesn't always reneder

In the verseOfTheDay branch, if you click the extension button a couple of times, you will notice verse of the day, doesn't always render.
It looks like the problem is in the load callback, where the XHR instance doesn't always have it's responseXML property.
Maybe trying to switch to a more modern API like fetch could solve the problem?

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.