<commit_before>function noBeDraggable(){
  var images = document.getElementsByTagName("img");
  for(var i = 0; i < images.length; i++)
    images[i].setAttribute('draggable', 'false');
}

window.addEventListener('load', noBeDraggable);
window.addEventListener('DOMNodeInserted', noBeDraggable);
window.addEventListener('DOMElementNameChanged', noBeDraggable);
<commit_msg>Doesn't need to wait for the images to load to stop them being dragged.<commit_after>function noBeDraggable(){
  var images = document.getElementsByTagName("img");
  for(var i = 0; i < images.length; i++)
    images[i].setAttribute('draggable', 'false');
}

noBeDraggable();
window.addEventListener('DOMNodeInserted', noBeDraggable);
window.addEventListener('DOMElementNameChanged', noBeDraggable);

{'fraction_non_alphanumeric': 0.14007782101167315, 'fraction_numerical': 0.0025940337224383916, 'mean_word_length': 7.674157303370786, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '4238390', 'n_tokens_mistral': 237, 'n_tokens_neox': 233, 'n_words': 50}