<commit_before>HNSpecial.settings.registerModule("mark_as_read", function () {
  function editLinks() {
    var titles = _.toArray(document.getElementsByClassName("title"));

    titles.forEach(function (title) {
      if (!title.getAttribute("data-hnspecial-mark-as-read") && title.childElementCount === 2 && title.children[1].classList.contains("comhead")) {
        title.setAttribute("data-hnspecial-mark-as-read", "true");
<commit_msg>Add mark as read button to all link types, including local HN links<commit_after>HNSpecial.settings.registerModule("mark_as_read", function () {
  function editLinks() {
    var titles = _.toArray(document.getElementsByClassName("title"));

    titles.forEach(function (title) {
      if (!title.getAttribute("data-hnspecial-mark-as-read") && title.children.length > 0 && title.children[0].nodeName == "A") {
        title.setAttribute("data-hnspecial-mark-as-read", "true");

{'fraction_non_alphanumeric': 0.15829694323144106, 'fraction_numerical': 0.004366812227074236, 'mean_word_length': 4.993464052287582, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1303575', 'n_tokens_mistral': 276, 'n_tokens_neox': 279, 'n_words': 45}