https://github.com/thisislawatts/lightspeedlet
Bookmarklet helper to flip between front and backend of your Lightspeed theme
https://github.com/thisislawatts/lightspeedlet
lightspeed
Last synced: over 1 year ago
JSON representation
Bookmarklet helper to flip between front and backend of your Lightspeed theme
- Host: GitHub
- URL: https://github.com/thisislawatts/lightspeedlet
- Owner: thisislawatts
- Created: 2017-03-17T17:04:58.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-03-17T17:44:26.000Z (over 9 years ago)
- Last Synced: 2025-01-26T08:12:53.157Z (over 1 year ago)
- Topics: lightspeed
- Language: JavaScript
- Size: 1.95 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Lightspeedlet
===
Little helper for quickly switching from the front end of your site to the backend.
Create a new snippet in your current theme called `lightspeedlet.rain`, then paste the contents of [this file there](./lightspeedlet.rain).
Then open up `custom.rain` and add the following somewhere before the closing `` tag.
```html
...
{% include 'snippets/lightsppedlet.rain' %}
```
Add a new bookmark to your browser's bookmark bar with the following content.
```js
javascript:void%20function(){function%20e(){var%20e=document.head.querySelector(%22%23LightspeedletShopUrl%22).getAttribute(%22content%22),t=document.head.querySelector(%22%23LightspeedletShopEdit%22);return%22index%22===t.getAttribute(%22name%22)%3Fe:e+t.getAttribute(%22content%22)}console.log(e()),window.open(e(),%22_Lightspeedlet%22)}();
```