Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tomhodgins/dragon
dragon.js is a bookmarklet that lets you drag any element on a website using a mouse or touchscreen. The goal is to speed up in-browser design critiques and brainstorming new layout ideas.
https://github.com/tomhodgins/dragon
bookmarklet dev-tool in-browser touchscreen web-design web-development
Last synced: 5 days ago
JSON representation
dragon.js is a bookmarklet that lets you drag any element on a website using a mouse or touchscreen. The goal is to speed up in-browser design critiques and brainstorming new layout ideas.
- Host: GitHub
- URL: https://github.com/tomhodgins/dragon
- Owner: tomhodgins
- License: mit
- Created: 2016-02-09T18:03:35.000Z (almost 9 years ago)
- Default Branch: gh-pages
- Last Pushed: 2016-03-09T11:44:35.000Z (over 8 years ago)
- Last Synced: 2024-08-02T18:36:20.159Z (3 months ago)
- Topics: bookmarklet, dev-tool, in-browser, touchscreen, web-design, web-development
- Language: CSS
- Homepage: http://tomhodgins.github.io/dragon/
- Size: 30.3 KB
- Stars: 146
- Watchers: 8
- Forks: 18
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: code_of_conduct.md
Awesome Lists containing this project
README
# Dragon.js π
`dragon.js` is a bookmarklet that lets you drag any element on a website using a mouse or touchscreen. The goal is to speed up in-browser design critiques and brainstorming new layout ideas.
[![](http://i.imgur.com/VubC6xd.png)](https://www.youtube.com/embed/ytIZbXnNOMM)
## How to use
You can test the functionality with demo content on `index.html`, where you will also find the βprettyβ source code for the bookmarklet.
Demo at http://staticresource.com/dragon
To use this on other websites you have two options: run it as JavaScript on the page, or create a bookmarklet.
### How to create a bookmarklet
- Create a bookmark
- Edit the URL
- replace the URL with `javascript:` followed by the contents of `dragon.js`Now you can load load any page, then tap the bookmarklet to enter 'dragon' mode
### How to run as JavaScript
You have two options here as well. All browsers except mobile safari (iPad and iPhone) will allow you to simply replace the URL in the address bar of a loaded website with `javascript:` and then write whatever JavaScript you want. I find this easier than a bookmarklet on desktop.
The other way is by opening your Developer Tools in the browser you can paste the contents of `dragon.js` into the JavaScript Console and enter it and it will run on the page as well.
# π² βhappy hacking!