<commit_before>
// This is a content script.

// That means the script is called when any page is loaded. This script does
// not have access to the rest of the extension's stuff, like localStorage.
// Therefore the script needs to send requests about variables in storage
// to the extension.

// It is important to just use regular javascript here, at most some jQuery.
// Remember that the environment you are in here is NOT the extension, it
// might be an old, insecure website. Except, of course, we are visiting the
// Online website which is secured by our most paranoid guy, Rockj ;)

var host = window.location.host;

if (host == 'online.ntnu.no') {
	$('#install_notifier').hide();
	if (typeof chrome != "undefined")
		chrome.extension.sendRequest({'action' : 'resetCounterWhenOnWebsite'});
	else if (typeof opera != "undefined")
		console.log("OPERAAAAAAAAAAAAA onwebsite")
}<commit_msg>Testing some stuff with Opera injected scripts<commit_after>
// This is a content script.

// That means the script is called when any page is loaded. This script does
// not have access to the rest of the extension's stuff, like localStorage.
// Therefore the script needs to send requests about variables in storage
// to the extension.

// It is important to just use regular javascript here, at most some jQuery.
// Remember that the environment you are in here is NOT the extension, it
// might be an old, insecure website. Except, of course, we are visiting the
// Online website which is secured by our most paranoid guy, Rockj ;)

var host = window.location.host;

if (host == 'online.ntnu.no') {
	$('#install_notifier').hide();
	if (typeof chrome != "undefined")
		chrome.extension.sendRequest({'action':'resetCounterWhenOnWebsite'});
	else if (typeof opera != "undefined") {
		opera.extension.postMessage('resetCounterWhenOnWebsite');
		alert('yep, go!');
	}
}
{'fraction_non_alphanumeric': 0.10224839400428265, 'fraction_numerical': 0.0, 'mean_word_length': 4.162983425414365, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 1, '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': '3587966', 'n_tokens_mistral': 515, 'n_tokens_neox': 488, 'n_words': 238}