@codepo8 's advice at #HalfStackConf to use Dev Tools to edit annoying webpages into something more acceptable has improved my experience of the internet 120% (science). #UX

Follow

@rrees @codepo8 Strong agree. What tools/scripts do you use?

Greasemonkey tips?

@rrees @codepo8 A fair. I'm using greasemonkey on firefox for very small edits here and there.

Here's a function I use to retrieve elements by xpath. Inspect element righclick node can copy an xpath.

function get_by_xpath(path, start) {
if (start == undefined || start == null) { start = document; }
let res = [];
let iter = document.evaluate(path, start, null, XPathResult.ORDERED_NODE_ITERATOR_TYPE, null);
while (true) {
let i = iter.iterateNext();
if (i == null) { break; }
res.push(i);
}
return res;
}

Sign in to participate in the conversation
Mastodon

a Schelling point for those who seek one