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)


→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 { /*CLEANING URL→→*/ 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]; 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.split('#')[0]; if (loc.includes("&3")) { loc=loc.replace('localhost/pad/','pad.totalism.org/'); loc=loc.split("&")[0]; }} window.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.split('#')[0]; loc=loc+'-css'; window.open(loc)})()


→SAY
A convenient separator tab.
(Prefix with 0-5 for different priority colors: purple, red, yellow, green, blue, pink.)

(A)
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)})()

(B)
javascript:(function(){var BASE="https://e2h.totalism.org/e2h.php?say="; loc=BASE+prompt("What?", ""); window.open(loc)})()




→GRAPH
Renders pad contents as a "graphviz" (DOT language) graph.

javascript:(function(){var loc=location.href;loc=loc.replace('https://pad.totalism.org/p/','http://totalism:7777/glia2?input='); loc+='&sourceFormat=text/graph/graphviz&sinkFormat=graph/svg&requestTimeout=15'; window.open(loc)})()