Coder Social home page Coder Social logo

Plugin system about browserosaurus HOT 5 CLOSED

will-stone avatar will-stone commented on June 14, 2024
Plugin system

from browserosaurus.

Comments (5)

long-lazuli avatar long-lazuli commented on June 14, 2024
  • opens the Url in Iphone Simulator (from xCode package).
  • opens with mpv / youtube-dl
  • modifierKey opens the link in private window.
  • modifierKey opens the link with debug & responsive tools

from browserosaurus.

will-stone avatar will-stone commented on June 14, 2024

Nice. If you can figure out the commands to do those things, I'll start looking into making the code a little more modular so we can easily add new items. Remember, I have a fulltime job, do not expect quick turn-arounds; I work in bursts on projects.

from browserosaurus.

long-lazuli avatar long-lazuli commented on June 14, 2024

Don't worry, I got a fulltime job too.
I write everything, and usually come back on a week-end, or some evening when my day-work goes well and I feel like coding.

As for commands, the idea of modifierKeys to open in private mode came by reading opn's readme.
Which states :

opn('http://sindresorhus.com', {app: ['google chrome', '--incognito']});

from browserosaurus.

will-stone avatar will-stone commented on June 14, 2024

Awesome, thanks.

from browserosaurus.

will-stone avatar will-stone commented on June 14, 2024

Not quite a plugin system but it is now easier to add apps/browsers/activities (now to be known as activities). Activities are defined in src/config/activities.js. If an activity has an appId (I might rename this to something like requiredAppName or just appName) then it will only appear if the app is found on the user's system. cmd is the command run when clicked/hot-key is selected. Where {URL} is replaced with the clicked URL. Activity icon matches the name of the activity and is stored in src/images/activity-icons.

This will be in v4 release.

from browserosaurus.

Related Issues (20)

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.