Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on I wrote a script to automatically apply Grammarly corrections. Parent comment
Follow this process to make that bookmarklet:
https://www.freecodecamp.org/news/what-are-bookmarklets/
and paste the code:
javascript: (() => {
function refreshData()
try {
newclass.click(); } else { var newclass = document.getElementsByClassName("cards-replacements_labels-itemInsert"); newclass = newclass[0]; newclass.click(); } } catch (error) { if ( document.getElementsByClassName("wrapper_fipkee2") !== null) {
var cli = document.getElementsByClassName("wrapper_fipkee2"); var vli = cli[0]; vli.click(); }
}
setTimeout(refreshData, x*1000);
refreshData();
})();
I hope this helps! :)
There are no comments on this comment yet.
Follow this process to make that bookmarklet:
https://www.freecodecamp.org/news/what-are-bookmarklets/
and paste the code:
javascript: (() => {
{ x = 3; if (document.querySelector('.cards-replacements_labels-itemRemove') !== null) { var newclass = document.querySelector('.cards-replacements_labels-itemRemove');newclass.click(); } else { var newclass = document.getElementsByClassName("cards-replacements_labels-itemInsert"); newclass = newclass[0]; newclass.click(); } } catch (error) { if ( document.getElementsByClassName("wrapper_fipkee2") !== null) {
var cli = document.getElementsByClassName("wrapper_fipkee2"); var vli = cli[0]; vli.click(); }
}
}refreshData();
})();
I hope this helps! :)