4 ms·
This is impressive! I wrote a much less impressive bookmarklet editor[0] (years ago) that can also be appended[1] to a mobile page for debugging purposes (note
by gabrielsroka 7y ago
This is impressive!
I wrote a much less impressive bookmarklet editor[0] (years ago) that can also be appended[1] to a mobile page for debugging purposes (note, it doesn't work on, eg, HN, because scripts are blocked by CSP).
[0] https://gabrielsroka.github.io/webpages/bookmarklets.htm https://gabrielsroka.github.io/webpages/bookmarklets.htm
[1]
javascript:(function () {
var u = "https://gabrielsroka.github.io/webpages/scripts/";
var s = document.body.appendChild(document.createElement("script"));
s.src = u + "js.js";
s.onload = function () {
loadScript(u + "bookmarklets.js", function () {
editor();
onload();
});
};
}
)();
To be a little meta: https://gabrielsroka.github.io/webpages/bookmarklets.htm?script=(function%20()%20%7B%0A%20%20%20%20var%20s%20%3D%20document.body.appendChild(document.createElement(%22script%22))%3B%0A%20%20%20%20var%20u%20%3D%20%22https%3A%2F%2Fgabrielsroka.github.io%2Fwebpages%2Fscripts%2F%22%3B%0A%20%20%20%20s.src%20%3D%20u%20%2B%20%22js.js%22%3B%0A%20%20%20%20s.onload%20%3D%20function%20()%20%7B%0A%20%20%20%20%20%20%20%20loadScript(u%20%2B%20%22bookmarklets.js%22%2C%20function%20()%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20editor()%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20onload()%3B%0A%20%20%20%20%20%20%20%20%7D)%3B%0A%20%20%20%20%7D%3B%0A%7D%0A)()%3B https://gabrielsroka.github.io/webpages/bookmarklets.htm?scr...