Git Product home page Git Product logo

Comments (5)

mkdizajn avatar mkdizajn commented on July 20, 2024 2

Just to let you know guys,, that has landed in Chrome 59 natively,,

do something like:

`CTRL+SHIFT+P` -> `I` and name of your snippet

snippets

cheers

from devtools-snippets.

jon-freed avatar jon-freed commented on July 20, 2024 1

@mkdizajn, thanks for the notice, and that's a great use of a GIF.

So, as the GIF shows, the new Chrome 59 key-press steps for a command menu to execute a snippet are as follows:

  1. Press "F12" to open your developer console (if you didn't have it open already).
  2. Press "Ctrl-Shift-P" to open a command menu window.
  3. Delete the ">" that is already there.
  4. Type "!" and then the snippet name (or select it from the list) and then press "Enter".

This process could certainly be shortened. I vote for keeping this issue open until it is shortened.

from devtools-snippets.

joeyespo avatar joeyespo commented on July 20, 2024

If this is a thing, I've had a good experience with this library for setting up keyboard shortcuts.

You could also put some of these snippets in a bookmarklet.

from devtools-snippets.

bgrins avatar bgrins commented on July 20, 2024

AFAIK the best way to do this right now would probably be a bookmarklet and assign a keyword then use keyboard shortcuts to focus the URL bar and enter the keyword + enter. This surely doesn't seem ideal but I don't know of any other way to run it without using the tools. May be useful to generate the bookmarklets in the Rakefile then add instructions for using them in this way.

from devtools-snippets.

jon-freed avatar jon-freed commented on July 20, 2024

How can a snippet be run from a bookmarklet? (Is it even possible to do so? Perhaps there is or could be a Chrome browser extension that can help expose them to bookmarklet javascript?)

from devtools-snippets.

Related Issues (18)

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.