Skip to content

bookmarklet suggestion#447

Merged
argyleink merged 1 commit into
argyleink:mainfrom
hchiam:bookmarklet
Dec 14, 2023
Merged

bookmarklet suggestion#447
argyleink merged 1 commit into
argyleink:mainfrom
hchiam:bookmarklet

Conversation

@hchiam

@hchiam hchiam commented Dec 13, 2023

Copy link
Copy Markdown
Contributor

why:

to let people try op quickly in their browser (ide not required),
and even to experiment on other people's websites.
either by running it in the console
or as a 1-click bookmark
(bookmarks/bookmarklets also have fast keyboard access in chrome)

usage:

  1. copy this code:
javascript: (() => {
  const href = "https://unpkg.com/open-props";
  document.head.append(Object.assign(document.createElement("link"),{rel:"stylesheet",href}));
})();
  1. create a bookmark, paste that code you just copied into the URL field, and ideally name that bookmark with a unique name or a unique sequence of letters that's different from your other bookmarks. For me, "op" shows no other results when i search my bookmarks.

  2. now you can do this in chrome:

  • mac: command + L, then type to search for the bookmark name, then hit enter --> open-props should now be temporarily added to the page!
  • pc: Ctrl + L, then type to search for the bookmark name, then hit enter --> open-props should now be temporarily added to the page!

and now you can play with op in the devtools Elements tab, or in Sources:

op-bookmarklet-shortcut-in-action.mov

basically same idea as argyleink/blingblingjs#42 but for css

@bolt-new-by-stackblitz

Copy link
Copy Markdown

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@argyleink argyleink left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cool 🙂

@argyleink argyleink merged commit 11bb2dd into argyleink:main Dec 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants