Workflow:
Bookmarklets
< RFC+ >
Common 🔗E2H use needs these essential bookmarklets. This should take you a minute to set up.
¶( I don't know how to use the bookmarks toolbar? )
* Enable the Bookmarks toolbar:
(A useful line of bookmarks under the search bar. Help? Firefox, Chrome)
* Put the bookmarklets you need there, either as:
A)
→ right-click the bookmarks toolbar → "New Bookmark"
→ set title: (same)
→ set location: the "javascript:..." line (below)
B)
→ select the "javscript:..." line below
→ drag and place it in the toolbar
→ right-click it and rename it (correct the title)
* Enable the Bookmarks toolbar:
(A useful line of bookmarks under the search bar. Help? Firefox, Chrome)
* Put the bookmarklets you need there, either as:
A)
→ right-click the bookmarks toolbar → "New Bookmark"
→ set title: (same)
→ set location: the "javascript:..." line (below)
B)
→ select the "javscript:..." line below
→ drag and place it in the toolbar
→ right-click it and rename it (correct the title)
¶→HTML
(from edit mode) Switches to viewing the document (HTML)
(from empty tab) Prompts for view document destination
javascript:(function(){var loc=location.href; if (loc=="" || loc=="about:blank") { loc="https://e2h.totalism.org/e2h.php?_="+prompt("Which site?"); } else { loc=loc.replace('pad.totalism.org/p/','e2h.totalism.org/e2h.php?_='); loc=loc.replace('pad.pad.land/p/','pad.land/'); loc=loc.replace('localhost/pad/p/','localhost/E2H/e2h.php?_='); loc=loc.replace('&SORT',''); loc=loc.replace('&LOCALJS',''); loc=loc.split('#')[0]; } window.open(loc)})()
(from edit mode) Switches to viewing the document (HTML)
(from empty tab) Prompts for view document destination
javascript:(function(){var loc=location.href; if (loc=="" || loc=="about:blank") { loc="https://e2h.totalism.org/e2h.php?_="+prompt("Which site?"); } else { loc=loc.replace('pad.totalism.org/p/','e2h.totalism.org/e2h.php?_='); loc=loc.replace('pad.pad.land/p/','pad.land/'); loc=loc.replace('localhost/pad/p/','localhost/E2H/e2h.php?_='); loc=loc.replace('&SORT',''); loc=loc.replace('&LOCALJS',''); loc=loc.split('#')[0]; } window.open(loc)})()
¶→PAD
(from view mode) Switches to editing the document
(from empty tab) Prompts for pad destination
javascript:(function(){var loc=location.href; if (loc=="" || loc=="about:blank") { loc="https://pad.totalism.org/p/"+prompt("Which pad?"); } else {loc=loc.replace('e2h.totalism.org/e2h.php?_=','pad.totalism.org/p/');loc=loc.replace('pad.land/','pad.pad.land/p/'); loc=loc.replace('localhost/E2H/e2h.php?_=','localhost/pad/p/'); loc=loc.replace('&SORT', ''); loc=loc.replace('&LOCALJS', ''); loc=loc.replace('&SLIDES', ''); loc=loc.split('#')[0]; if (loc.includes("&3")) { loc=loc.replace('localhost/pad/','pad.totalism.org/');loc=loc.replace('&3','');} }%20window.open(loc)})()
(from view mode) Switches to editing the document
(from empty tab) Prompts for pad destination
javascript:(function(){var loc=location.href; if (loc=="" || loc=="about:blank") { loc="https://pad.totalism.org/p/"+prompt("Which pad?"); } else {loc=loc.replace('e2h.totalism.org/e2h.php?_=','pad.totalism.org/p/');loc=loc.replace('pad.land/','pad.pad.land/p/'); loc=loc.replace('localhost/E2H/e2h.php?_=','localhost/pad/p/'); loc=loc.replace('&SORT', ''); loc=loc.replace('&LOCALJS', ''); loc=loc.replace('&SLIDES', ''); loc=loc.split('#')[0]; if (loc.includes("&3")) { loc=loc.replace('localhost/pad/','pad.totalism.org/');loc=loc.replace('&3','');} }%20window.open(loc)})()
¶→CSS
Switches to CSS edit view.
javascript:(function(){var loc=location.href;loc=loc.replace('e2h.totalism.org/e2h.php?_=','pad.totalism.org/p/');loc=loc.replace('pad.land/','pad.pad.land/p/'); loc=loc.replace('&SORT', ''); loc=loc.replace('&LOCALJS', ''); loc=loc.split('#')[0]; loc=loc+'-css'; window.open(loc)})()
Switches to CSS edit view.
javascript:(function(){var loc=location.href;loc=loc.replace('e2h.totalism.org/e2h.php?_=','pad.totalism.org/p/');loc=loc.replace('pad.land/','pad.pad.land/p/'); loc=loc.replace('&SORT', ''); loc=loc.replace('&LOCALJS', ''); loc=loc.split('#')[0]; loc=loc+'-css'; window.open(loc)})()
¶→🛸
Switches to mima22 mode.
javascript:(function(){var loc=location.href;loc=loc.replace('pad.totalism.org/p/','e2h.totalism.org/e2h.php?_='); loc=loc.replace('pad.pad.land/p/','pad.land/'); loc=loc.replace('localhost/pad/p/','localhost/E2H/e2h.php?_='); loc=loc.split('#')[0];%20loc=loc+'&SORT&LOCALJS';%20window.open(loc)})()
Switches to mima22 mode.
javascript:(function(){var loc=location.href;loc=loc.replace('pad.totalism.org/p/','e2h.totalism.org/e2h.php?_='); loc=loc.replace('pad.pad.land/p/','pad.land/'); loc=loc.replace('localhost/pad/p/','localhost/E2H/e2h.php?_='); loc=loc.split('#')[0];%20loc=loc+'&SORT&LOCALJS';%20window.open(loc)})()
¶→♻
Switches localhost♻online modes.
javascript:(function(){var loc=location.href; if (loc.includes("localhost")) { /*######2...3######*/loc=loc.replace('localhost/pad/p/','pad.totalism.org/p/');loc=loc.replace('localhost:9001/','pad.totalism.org/');loc=loc.replace('localhost/E2H/','e2h.totalism.org/');}else{/*######3...2######*/loc=loc.replace('pad.totalism.org/p/','localhost/pad/p/');loc=loc.replace('pad.pad.land/p/','localhost/pad/p/');loc=loc.replace('e2h.totalism.org/','localhost/E2H/');%20loc=loc.split('#')[0];%20if%20(loc.includes("localhost/E2H"))%20{ loc+="&3"}%20};%20window.open(loc)})()
Switches localhost♻online modes.
javascript:(function(){var loc=location.href; if (loc.includes("localhost")) { /*######2...3######*/loc=loc.replace('localhost/pad/p/','pad.totalism.org/p/');loc=loc.replace('localhost:9001/','pad.totalism.org/');loc=loc.replace('localhost/E2H/','e2h.totalism.org/');}else{/*######3...2######*/loc=loc.replace('pad.totalism.org/p/','localhost/pad/p/');loc=loc.replace('pad.pad.land/p/','localhost/pad/p/');loc=loc.replace('e2h.totalism.org/','localhost/E2H/');%20loc=loc.split('#')[0];%20if%20(loc.includes("localhost/E2H"))%20{ loc+="&3"}%20};%20window.open(loc)})()
¶→SAY
A convenient separator tab.
(Prefix with 0-5 for different priority colors: purple, red, yellow, green, blue, pink.)
javascript:(function(){var BASE="https://e2h.totalism.org/e2h.php?say="; var PDEF=""; var crnt=location.href; if (crnt=="" || crnt=="about:blank") { PDEF=""; } else { PDEF=crnt.replace(BASE, "");} loc=BASE+prompt("What?", PDEF); window.open(loc)})()
javascript:(function(){var BASE="https://localhost/E2H/e2h.php?say="; var PDEF=""; var crnt=location.href; if (crnt=="" || crnt=="about:blank") { PDEF=""; } else { PDEF=crnt.replace(BASE, "");} loc=BASE+prompt("What?", PDEF); window.open(loc)})()
A convenient separator tab.
(Prefix with 0-5 for different priority colors: purple, red, yellow, green, blue, pink.)
javascript:(function(){var BASE="https://e2h.totalism.org/e2h.php?say="; var PDEF=""; var crnt=location.href; if (crnt=="" || crnt=="about:blank") { PDEF=""; } else { PDEF=crnt.replace(BASE, "");} loc=BASE+prompt("What?", PDEF); window.open(loc)})()
javascript:(function(){var BASE="https://localhost/E2H/e2h.php?say="; var PDEF=""; var crnt=location.href; if (crnt=="" || crnt=="about:blank") { PDEF=""; } else { PDEF=crnt.replace(BASE, "");} loc=BASE+prompt("What?", PDEF); window.open(loc)})()