Shortcuts

Description

Pastable Links

Auto Post Liker

 1javascript: (async () => {
 2  let e = [...document.querySelectorAll("a")].slice(10);
 3  for (let l = 0; l < e.length; l++) {
 4    let a = e[l];
 5    if (-1 != a.href.indexOf("/p/")) {
 6      a.click(), await i(3e3);
 7      let t = [...document.querySelectorAll("svg[aria-label='Like']")];
 8      await i(2e3);
 9      for (let r = 0; r < t.length; r++) t[r].parentNode.click(), await i(1e3);
10      document.querySelector("svg[aria-label='Close']").parentNode.click(),
11        await i(500);
12    }
13  }
14  function i(e) {
15    return new Promise((l) => {
16      setTimeout(l, e);
17    });
18  }
19})();

Screen Shot Tool

 1javascript: (() => {
 2  function e() {
 3    let e = prompt("Enter Width (in pixels)", "1080") + "px",
 4      t = prompt("Enter Height (in pixels)", "1080") + "px",
 5      n = prompt("Enter Padding (in pixels)", "100") + "px",
 6      i = new DragSelect({
 7        selectables: r([...document.querySelector("body").children]),
 8        draggability: !1,
 9      });
10    i.subscribe("callback", (l) => {
11      let d = document.createElement("div"),
12        r = a(l.items);
13      for (let p = 0; p < r.length; p++) d.appendChild(r[p].cloneNode(!0));
14      document.body.appendChild(d),
15        (d.style.background = o(d)),
16        (d.style.width = e),
17        (d.style.height = t),
18        (d.style.padding = n),
19        (d.style.display = "flex"),
20        (d.style.flexDirection = "column"),
21        (d.style.justifyContent = "center"),
22        domtoimage
23          .toPng(d)
24          .then(function (e) {
25            var t = new Image();
26            t.src = e;
27            let n = document.createElement("dialog");
28            n.open = !0;
29            let l = document.createElement("div");
30            (l.innerHTML = "X"),
31              (l.onclick = () => {
32                document.body.removeChild(n), i.start();
33              }),
34              n.appendChild(l),
35              n.appendChild(t),
36              document.body.appendChild(n),
37              i.stop(),
38              document.body.removeChild(d);
39          })
40          .catch(function (e) {
41            console.error("oops, something went wrong!", e);
42          });
43    });
44  }
45  let t = document.createElement("style");
46  (t.innerHTML =
47    "dialog > img { width: 700px; max-width: 90%;} dialog {display: flex; flex-direction: column;} dialog > div {text-align: right; font-weight: 900; font-family: sans-serif;width: 700px;margin: 0 12px -32px 0px;z-index: 2;cursor: pointer;max-width: 90%;}"),
48    document.head.appendChild(t);
49  let n = document.createElement("script");
50  n.src = "https://unpkg.com/dom-to-image";
51  let i = document.createElement("script");
52  i.src = "https://unpkg.com/dragselect@latest/dist/ds.min.js";
53  let l = !1;
54  function d() {
55    l ? (console.log("Loaded"), e()) : (l = !0);
56  }
57  function o(e) {
58    let t = !1;
59    for (var n in e) {
60      let i = getComputedStyle((e = e.parentNode)).getPropertyValue(
61        "background-color"
62      );
63      if ("rgba(0, 0, 0, 0)" != i) {
64        t = i;
65        break;
66      }
67      if (!e.parentNode) break;
68    }
69    return t;
70  }
71  function r(e) {
72    let t = [];
73    return (
74      e.forEach((e) => {
75        t.push(e), e.children.length > 0 && t.push(...r([...e.children]));
76      }),
77      t.filter((e) => "DIV" != e.nodeName && "MAIN" != e.nodeName)
78    );
79  }
80  function a(e) {
81    let t = [];
82    for (let n = 0; n < e.length; n++)
83      -1 == e.indexOf(e[n].parentNode) && t.push(e[n]);
84    return t;
85  }
86  (n.onload = d),
87    (i.onload = d),
88    document.body.appendChild(n),
89    document.body.appendChild(i);
90})();