<commit_before>(function() {
    if (location.href.indexOf("mousehuntgame.com") < 0) {
        alert("You are not on mousehuntgame.com! Please try again.");
        return;
    }
    if (document.querySelector("div.treasureMapPopupContainer.hasMap") == null) {
        alert("Please navigate to 'Active Map'!");
        return;
    }

    var mice = [];
    var currLoc = document.getElementsByClassName("treasureMapPopup-mice-groups")[0].className;
    if (currLoc.indexOf("inotherenvironments") < 0) {
        //Locations with periods and apostrophes
        //Extra escapes are workaround for copy link address/JS string handling
        currLoc = currLoc.replace(/\\./g, "\\\\.");
        currLoc = currLoc.replace(/\\'/g, "\\\\'");
        currLoc = currLoc.replace(" ", ".");
        var uncaughtLoc = document.querySelectorAll("." + currLoc + " .treasureMapPopup-mice-group-mouse-name span");
        for (var i=0; i<uncaughtLoc.length; i++) {
            mice.push(uncaughtLoc[i].textContent);
        }
    }

    var uncaughtOther = document.querySelectorAll(".treasureMapPopup-mice-groups.uncaughtmiceinotherenvironments .treasureMapPopup-mice-group-mouse-name span");
    if (uncaughtOther != null) {
        for (var i=0; i<uncaughtOther.length; i++) {
            mice.push(uncaughtOther[i].textContent);
        }
    }

    var url = "https://tsitu.github.io/MH-Tools/map.html";
    window.open(url + "?mice=" + encodeURIComponent(mice.join("/")), "mhmapsolver");
})();<commit_msg>Fixed and simplified map bookmarklet<commit_after>(function() {
    if (location.href.indexOf("mousehuntgame.com") < 0) {
        alert("You are not on mousehuntgame.com! Please try again.");
        return;
    }
    if (document.querySelector("div.treasureMapPopupContainer.hasMap") == null) {
        alert("Please navigate to 'Active Map'!");
        return;
    }

    var mice = $(".treasureMapPopup-mice-group-mouse:not(.caught)").map(function(){return $(this).data("name")}).toArray();
    var url = "https://tsitu.github.io/MH-Tools/map.html";
    window.open(url + "?mice=" + encodeURIComponent(mice.join("/")), "mhmapsolver");
})();
{'fraction_non_alphanumeric': 0.17009345794392525, 'fraction_numerical': 0.002803738317757009, 'mean_word_length': 3.109404990403071, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '7200617', 'n_tokens_mistral': 681, 'n_tokens_neox': 684, 'n_words': 121}