From 2111762b313d3c7785a37b6d5a2c646c7f2878b4 Mon Sep 17 00:00:00 2001 From: Jakob Cornell Date: Sun, 19 Jan 2020 18:14:52 -0600 Subject: [PATCH] Remove bookmarklet --- table_bookmarklet | 1 - 1 file changed, 1 deletion(-) delete mode 100644 table_bookmarklet diff --git a/table_bookmarklet b/table_bookmarklet deleted file mode 100644 index bf8278a..0000000 --- a/table_bookmarklet +++ /dev/null @@ -1 +0,0 @@ -javascript:(function(){var r=new XMLHttpRequest();r.onreadystatechange=d;r.responseType='json';r.open('GET','http://localhost:57853/');r.send();function d(){if(r.readyState===XMLHttpRequest.DONE){var rows=r.response;var t=document.createElement('table');var h=t.createTHead();console.log(rows);rows.shift().forEach(v=>{var c=document.createElement('th');c.innerText=v;h.appendChild(c);});rows.forEach(r=>{var tr=t.insertRow(-1);r.forEach(v=>{var c=document.createElement('td');c.innerText=v;tr.appendChild(c);});});var box=document.querySelector('[contenteditable="true"]');box.appendChild(document.createElement('br'));box.appendChild(t);box.appendChild(document.createElement('br'));}}})() -- 2.30.2