Code Monkey home page Code Monkey logo

Anyshortcut

Chrome Web Store Mozilla Add-on license-apache

Forget mouse clicks, embrace shortcuts! Customize keyboard shortcuts for your frequently visited websites.

https://anyshortcut.com

Installation

Contribution

$ git clone [email protected]:anyshortcut/anyshortcut.git
Cloning into 'anyshortcut'...

$ cd anyshortcut

$ tree -L 1  
.
├── README.md
├── build # The Webpack build directory
├── extension # The destination directory build from Webpack for the whole extension.
├── manifest # Generate platform-specific manifest.json respectively.
├── package-lock.json
├── package.json
├── src # The source code directory of Anyshortcut

$ npm install

$ npm run build_production # For Chromium

$ npm run build_production:firefox # For Firefox

The extension/ directory is the destination directory of extension.

Custom build lodash

lodash include command

Reference: https://lodash.com/custom-builds

npm i -g lodash-cli
lodash include=isEmpty,pickBy,extend,escape,cloneDeep,forOwn,forEach,debounce,throttle,sortBy -d -o src/js/vendor/lodash.includes.js

then configure in webpack config file,

resolve: {
    alias: {
        'lodash$': path.join(__dirname, '..', 'src/js/vendor/lodash.includes.js'),
    }
}

Precompile lodash templates to avoid use unsafe-eval

There is an awesome way to precompile templates by custom build.

Use the template command to pass the file path pattern used to match template files to precompile.

Note: Precompiled templates are assigned to the _.templates object.

lodash template="./*.jst"

lodash settings="{variable:'data'}" template="./src/templates/*.html" -d -o src/js/script/templates.js

anyshortcut's Projects

anyshortcut icon anyshortcut

Forget mouse clicks, embrace shortcuts! Customize keyboard shortcuts for your frequently visited websites.

homebrew-core icon homebrew-core

🍻 Default formulae for the missing package manager for macOS

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.