GithubHelp home page GithubHelp logo

chrome-omnibox-bookmark-history-search's Introduction

I tried to find the easiest way to quickly search the Nim documentation and got pretty frustrated with the options.

So I made a somewhat future proof chrome extension.

Instead of just injecting some function calls using the javascript functions created by the nim javascript backend for this current nim build I actually parse out the function names using strings that should remain the same regardless of minor changes to nim or the current build then create a javascript string to inject that will call search using the search url hash value.

So now anytime you goto a nim-lang.org page with a #search hash key and value set the content script will look for a search function on window and attempt to search.

The background.js script is where the omnibox code comes in.

When the nim keyword is used the remaining text is used to build a url setting the search hash key I mentioned which my content script will use to search the nim docs.

Hope this is helpful.

Animated gif showing usage of the chrome plugin

More information on my blog

Link to the extension in the app store - https://chrome.google.com/webstore/detail/bookmark-history-fuzzy-se/ahckmbemdipobmogmbpmbailnhfpjnbm?hl=en&authuser=0

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.