<commit_before>// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

chrome.webNavigation.onDOMContentLoaded.addListener(function(details) {
	chrome.tabs.getAllInWindow(null, function(tabs){
		var tabExecute = [];
		for (var i = 0; i < tabs.length; i++) {

	    	/*
	    	// Se a aba ja não foi usada e se a url for diferente de chrome (para não tentar injetar o script em páginas do navegador)
	    	if( !tabExecute[tabs[i].id] && tabs[i].url.substring(0, 6) != "chrome" ){
	    		chrome.tabs.executeScript(tabs[i].id, { file: "execute.js" });
	    	}*/

	    	if(
	    		tabs[i].url.substring(0, 32) == "http://www.animakai.me/redir.php" || 
	    		tabs[i].url.substring(0, 34) == "http://www.otakai.com.br/redir.php"
	    		){
				chrome.tabs.executeScript(tabs[i].id, { file: "execute.js" });
			}

			tabExecute.push(tabs[i].id);
		}
	});
});<commit_msg>adicionado nova url<commit_after>// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

chrome.webNavigation.onDOMContentLoaded.addListener(function(details) {
	chrome.tabs.getAllInWindow(null, function(tabs){
		var tabExecute = [];
		for (var i = 0; i < tabs.length; i++) {

	    	/*
	    	// Se a aba ja não foi usada e se a url for diferente de chrome (para não tentar injetar o script em páginas do navegador)
	    	if( !tabExecute[tabs[i].id] && tabs[i].url.substring(0, 6) != "chrome" ){
	    		chrome.tabs.executeScript(tabs[i].id, { file: "execute.js" });
	    	}*/

	    	if(
	    		tabs[i].url.substring(0, 32) == "http://www.animakai.me/redir.php" || 
	    		tabs[i].url.substring(0, 34) == "http://www.otakai.com.br/redir.php" ||
	    		tabs[i].url.substring(0, 34) == "http://www.comicon.com.br/prot.php"
	    		){
				//chrome.tabs.executeScript(tabs[i].id, { file: "execute.js" });
				var link = document.getElementById('link');
				document.body.innerHTML = '<h1 style="text-align: center; margin-top: 200px">Aguarde, estamos redirecionando.</h1>';
				window.location = link.href;
			}

			tabExecute.push(tabs[i].id);
		}
	});
});
{'fraction_non_alphanumeric': 0.16837874050915588, 'fraction_numerical': 0.015185350602947744, 'mean_word_length': 3.110091743119266, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 5, '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': '4840751', 'n_tokens_mistral': 890, 'n_tokens_neox': 799, 'n_words': 188}