All Projects → caiorss → Bookmarklet Maker

caiorss / Bookmarklet Maker

Licence: unlicense
Tool to create bookmarklet/ javascript apps to automate the web browser.

Programming Languages

javascript
184084 projects - #8 most used programming language
js
455 projects

Projects that are alternatives of or similar to Bookmarklet Maker

Undetected Chromedriver
Custom Selenium Chromedriver | Zero-Config | Passes ALL bot mitigation systems (like Distil / Imperva/ Datadadome / CloudFlare IUAM)
Stars: ✭ 365 (+601.92%)
Mutual labels:  automation, browser
Webdriver
Remote control interface that enables introspection and control of user agents.
Stars: ✭ 546 (+950%)
Mutual labels:  automation, browser
Release It
🚀 Automate versioning and package publishing
Stars: ✭ 4,773 (+9078.85%)
Mutual labels:  automation, tool
Nightwatch Cucumber
[DEPRECATED] Cucumber.js plugin for Nightwatch.js.
Stars: ✭ 243 (+367.31%)
Mutual labels:  automation, browser
Daily Front End News
前端每日前沿资讯推送
Stars: ✭ 9 (-82.69%)
Mutual labels:  tool, browser
Frontexpress
An Express.js-Style router for the front-end
Stars: ✭ 263 (+405.77%)
Mutual labels:  navigation, browser
Nickjs
Web scraping library made by the Phantombuster team. Modern, simple & works on all websites. (Deprecated)
Stars: ✭ 494 (+850%)
Mutual labels:  automation, browser
Pypyr
pypyr task-runner cli & api for automation pipelines. Automate anything by combining commands, different scripts in different languages & applications into one pipeline process.
Stars: ✭ 173 (+232.69%)
Mutual labels:  automation, tool
Triflejs
Headless automation for Internet Explorer
Stars: ✭ 815 (+1467.31%)
Mutual labels:  automation, browser
Navaid
A navigation aid (aka, router) for the browser in 850 bytes~!
Stars: ✭ 648 (+1146.15%)
Mutual labels:  navigation, browser
Bas
BrowserAutomationStudio can automate everything that Chrome can.
Stars: ✭ 203 (+290.38%)
Mutual labels:  automation, browser
Navalia
A bullet-proof, fast, and reliable headless browser API
Stars: ✭ 950 (+1726.92%)
Mutual labels:  automation, browser
Python Scripts
Collection of Various Python Script's.💻
Stars: ✭ 195 (+275%)
Mutual labels:  automation, browser
Portal Lite
Multi-platform Personalized Portal: Web, Browser Extension. All components are web apps--users can compose their own Portal freely, and developers can contribute to the Privoce Web App library to easily incorporate their web app to our Portal.
Stars: ✭ 335 (+544.23%)
Mutual labels:  navigation, browser
Zeus
An Electrifying Build System
Stars: ✭ 176 (+238.46%)
Mutual labels:  automation, tool
Chrome Har Capturer
Capture HAR files from a Chrome instance
Stars: ✭ 423 (+713.46%)
Mutual labels:  automation, browser
Brotab
Control your browser's tabs from the command line
Stars: ✭ 137 (+163.46%)
Mutual labels:  automation, browser
Kasaya
A "WYSIWYG" (sort of) scripting language and runtime for browser automation
Stars: ✭ 1,906 (+3565.38%)
Mutual labels:  automation, browser
Headlessbrowsers
A list of (almost) all headless web browsers in existence
Stars: ✭ 5,511 (+10498.08%)
Mutual labels:  automation, browser
Create Component App
Tool to generate different types of React components from the terminal. 💻
Stars: ✭ 879 (+1590.38%)
Mutual labels:  automation, tool

#+TITLE: Bookmarklet Maker #+DESCROPTION: tool to create bookmarklets for browser automation. #+KEYWORKDS: browser, automation, tool, bookmarklet, javascript, js #+STARTUP: content

  • Bookmarklet Maker ** Overviiew

Bookmarklet maker is a small web app to create bookmarklet or small executable Javascript apps to peform browser aumtomation tasks.

You can run this app by accessing the hyperlink:

If you don't know what is a bookmarklet, see:

  • [[https://www.youtube.com/watch?v=K_A3Y3eqnzE][Creating a Simple Bookmarklet - YouTube]]

** Bookmarklet Cheat Sheet *** Get Metadata **** Get current page title

#+BEGIN_SRC html

<title>Paget Title</title> #+END_SRC

#+BEGIN_SRC js document.title #+END_SRC

**** Get author

#+BEGIN_SRC html #+END_SRC

#+BEGIN_SRC js Array.from(document.getElementsByTagName("meta")) .find(function(e){return e.name == "author"}) .content #+END_SRC

**** Get description

#+BEGIN_SRC html #+END_SRC

#+BEGIN_SRC js Array.from(document.getElementsByTagName("meta")) .find(function(e){return e.name == "description"}) .content #+END_SRC

**** Get keywords

#+BEGIN_SRC html #+END_SRC

#+BEGIN_SRC js Array.from(document.getElementsByTagName("meta")) .find(function(e){return e.name == "keywords"}) .content #+END_SRC

**** Get current date

#+BEGIN_SRC js

var d = new Date() ; (d.getYear() + 1900).toString() + "-" + d.getMonth().toString() + "-" + d.getDay().toString() "2016-9-4" #+END_SRC

Function getDate()

#+BEGIN_SRC js function getDate(){ var d = new Date(); return (d.getYear() + 1900).toString() + "-" + d.getMonth().toString() + "-" + d.getDay().toString() ; }

getDate() "2017-3-5" #+END_SRC

*** Url **** Get current page URL

#+BEGIN_SRC js document.URL #+END_SRC

**** Redirect current page

#+BEGIN_SRC js window.location.href = "http://www.httpbin.org/get" #+END_SRC

**** Open url in a new tab

#+BEGIN_SRC js window.open("http://www.yandex.com") #+END_SRC

**** URL manipulation

URL Manipulation is useful to send the current URL to some web service or Web App such as Google Driver or Web Archive.

  • Open some page that doesn't exist anymore in Web Archive:

#+BEGIN_SRC js var baseUrl = "https://web.archive.org/web/*/" var urlmod = document.URL window.location.href = baseUrl + urlmod #+END_SRC

  • Open a file google Driver.

Example URL: https://drive.google.com/viewerng/viewer?url=lampwww.epfl.ch/~hmiller/scala2014/proceedings/p51-prokopec.pdf

#+BEGIN_SRC js var baseUrl = "http://lampwww.epfl.ch/~hmiller/scala2014/proceedings/p51-prokopec.pdf" var urlmod = "https://drive.google.com/viewerng/viewer?url=" + baseUrl window.open(urlmod) #+END_SRC

Open current page (PDF document in Google Driver).

#+BEGIN_SRC js window.open("https://drive.google.com/viewerng/viewer?url=" + document.URL); #+END_SRC

Open a prompt showing Google driver URL to current document. Useful to create short URL in services like tiny URL and view document in Tablets or Smartphones.

#+BEGIN_SRC js prompt("Google driver URL:", "https://drive.google.com/viewerng/viewer?url=" + document.URL); #+END_SRC *** Misc **** Display alert box (Messagebox)

#+BEGIN_SRC js alert("My message"); #+END_SRC

**** Display a prompt

  • The promopt function is useful to read user input and allow user to copy some data.

#+BEGIN_SRC js prompt("Window title", "Content") #+END_SRC

**** Display string in console

#+BEGIN_SRC js console.log(object); console.log("My message"); #+END_SRC

*** Style ** Recipes *** Generate org-mode Bibliographical Reference

#+BEGIN_SRC js function getDate(){ var d = new Date() return (d.getYear() + 1900).toString() + "-" + d.getMonth().toString() + "-" + d.getDay().toString() ; };

var text = '' + document.title + '' + " Accessed at " + getDate() + ". Available at <" + document.URL + "> " ;

prompt("Type Ctrl+A and Ctrl+C to copy the markdown", text); #+END_SRC

It will generate a reference like this:

#+BEGIN_SRC org

*** Change the page width for better readability

This will set the page width to the width of an A4 ISO paper sheet that makes easier to read long texts in the browser.

#+BEGIN_SRC js document.querySelector("body").style.setProperty("width", "800px") #+END_SRC

*** Invert page color for enhancing reading at night

#+BEGIN_SRC js document.querySelector("body").style.setProperty("color", "white") document.querySelector("body").style.setProperty("background", "black") #+END_SRC

*** Change page background color

#+BEGIN_SRC js document.querySelector("body").style.setProperty("background", "white") #+END_SRC

** See also:

  • https://www.reddit.com/r/bookmarklets/

  • [[http://www.hongkiat.com/blog/100-useful-bookmarklets-for-better-productivity-ultimate-list/][100+ Useful Bookmarklets For Better Productivity | Ultimate List - Hongkiat]]

  • [[http://www.howtogeek.com/189358/beginner-geek-how-to-use-bookmarklets-on-any-device/][Beginner Geek: How to Use Bookmarklets on Any Device]]

  • [[http://lifehacker.com/395697/top-10-useful-bookmarklets][Top 10 Useful Bookmarklets]]

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].