<commit_before>/*
	LIKE, REBLOG, EDIT AND DELETE (LRED) BUTTON UNDER EVERY TUMBLR POST
	little-vince.tumblr.com
	Version: 0.4
	Last edited: 22 January 2014

	Copyright (c) 2014 little-vince

	Released under the MIT License, this copyright section and all credits in the script must be included in modifications or redistributions of this script.
*/

var marker = 0;

function addSource(target) {
	var elements = target.querySelectorAll(".lred");
	for (; marker < elements.length; marker++) {
		var e = elements[marker];
		e.src = vince(e.getAttribute('data-reblog'), e.getAttribute('data-plink'));
	}
}

function vince(url, plink) {
	var id = "&pid=" + url.split('/')[4] + "&rk=" + url.split('/')[5];
	return "http://assets.tumblr.com/assets/html/iframe/o.html?src=" + encodeURIComponent(plink) + id;
}

window.addEventListener("DOMContentLoaded", function() {
	addSource(document.body);

	var observer = new MutationObserver(function(mutations) {
		mutations.forEach(function(mutation) {
			if (mutation.type === 'childList') {
				addSource(mutation.target);
			}
		});
	});

	observer.observe(document.body, {childList: true, subtree: true});

}, false);<commit_msg>Fixed issue in Chrome (hopefully)<commit_after>/*
	LIKE, REBLOG, EDIT AND DELETE (LRED) BUTTON UNDER EVERY TUMBLR POST
	little-vince.tumblr.com
	Version: 0.41
	Last edited: 23 January 2014

	Copyright (c) 2014 little-vince

	Released under the MIT License, this copyright section and all credits in the script must be included in modifications or redistributions of this script.
*/

var marker = 0;

function addSource(target) {
	var elements = target.querySelectorAll(".lred");
	for (; marker < elements.length; marker++) {
		var e = elements[marker];
		e.src = vince(e.getAttribute('data-reblog'), e.getAttribute('data-plink'));
	}
}

function vince(url, plink) {
	var id = "&pid=" + url.split('/')[4] + "&rk=" + url.split('/')[5];
	return "http://assets.tumblr.com/assets/html/iframe/o.html?src=" + encodeURIComponent(plink) + id;
}

document.addEventListener("DOMContentLoaded", function() {
	addSource(document.body);

	var observer = new MutationObserver(function(mutations) {
		mutations.forEach(function(mutation) {
			if (mutation.type === 'childList') {
				addSource(mutation.target);
			}
		});
	});

	observer.observe(document.body, {childList: true, subtree: true});

}, false);
{'fraction_non_alphanumeric': 0.1516306649724693, 'fraction_numerical': 0.013130029648454045, 'mean_word_length': 4.746958637469587, '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': '7336622', 'n_tokens_mistral': 850, 'n_tokens_neox': 778, 'n_words': 197}