/*************************************************************************/ //Contenu dans le JS de la page aha /*************************************************************************/ function getAllNodesContent ( nodeElement, kw_list, message ) { var childsArray = nodeElement.childNodes; var pass = 1; var returnValue = "unlocked"; for(var i = 0; i < childsArray.length; i++){ if ( childsArray[i].nodeName != "SCRIPT" && childsArray[i].nodeName != "IFRAME" && childsArray[i].nodeName != "IMG" && childsArray[i].nodeName != "A" ) { /*if ( childsArray[i].nodeName == "A" ) { pass = 0; if ( window.location.host == childsArray[i].host ){ pass = 1; } }*/ if ( pass == 1 ){ if(childsArray[i].hasChildNodes()){ returnValue = getAllNodesContent ( childsArray[i], kw_list, message ); if ( returnValue == "locked" ){ return "locked"; } }else { if ( childsArray[i].nodeName == "#text" ) { returnValue = getAllWordsFromText ( childsArray[i].textContent, kw_list, message , "content"); if ( returnValue == "locked" ){ return "locked"; } } } } } } var url_words = new Array(); str = firstNode.ownerDocument.location.href; try { str = firstNode.ownerDocument.location.href + location.href; } catch(error) { console.log(error); } var res1 = str.split("-"); for(var i= 0; i < res1.length; i++) { var res2 = res1[i].split("_"); for(var j= 0; j < res2.length; j++) { var res3 = res2[j].split("."); for(var k= 0; k < res3.length; k++) { var res4 = res3[k].split("/"); for(var l= 0; l < res4.length; l++) { var res5 = res4[l].split("&"); for(var m= 0; m < res5.length; m++) { var res6 = res5[m].split("="); for(var n= 0; n < res6.length; n++) { if ( typeof(res6[n]) != "undefined" && res6[n] != "" && res6[n] != "\n" ) { url_words.push(res6[n].replace("%20", " ").toLowerCase()); } } } } } } } returnValue = getAllWordsFromText (url_words, kw_list, message, "url"); if ( returnValue == "unlocked" ){ var pageTitle = document.title; returnValue = getAllWordsFromText ( pageTitle, kw_list, message, "title"); if ( returnValue == "locked" ) return "locked"; } else return "locked"; return "unlocked"; } // sample mode Array contient les mots de l'url. sample en string est un bloc de test function getAllWordsFromText (sample, array_words, message, type) { // remplacement de tous les signes de ponctuation (suite de signes ou signe isolé) par un whitespace if(typeof sample == "object") contenu = sample; else contenu = (sample.toLowerCase()).replace(/[\.,-\/#!$%\^&\*;:{}=\-_'`~()]+/g, ' '); var blocking_keyword = ""; var blocking_keywords_nb = array_words.length; for ( var i = 0; i < blocking_keywords_nb; i ++ ) { var word = array_words[i]; var word_splitted = word.split("+"); //tous les mots de la combinaison doivent etre dans le texte if( word_splitted.length > 1 ){ var nb_occ = 0; for ( var j = 0; j < word_splitted.length; j ++ ) { final_word = (typeof sample !== "object") ? " "+word_splitted[j].toLowerCase()+" " : word_splitted[j].toLowerCase(); nb_occ += contenu.indexOf(final_word) > 0 ? 1 : 0; } if(nb_occ == word_splitted.length) blocking_keyword = word; } //mot simple else{ final_word = ( typeof sample !== "object") ? " "+word.toLowerCase()+" " : word.toLowerCase(); if( contenu.indexOf(final_word) >= 0 ) blocking_keyword = word; } if(blocking_keyword){ //bloquer les publicités message += "&alerte_desc="+type+":"+encodeURIComponent(word); useFirewallForcedBlock(message); return "locked"; } } return "unlocked"; } function useFirewallForcedBlock( message ){ var adloox_img_fw=message; scriptFw=document.createElement("script"); scriptFw.src=adloox_img_fw; document.body.appendChild(scriptFw); } /*************************************************************************/ var is_in_friendly_iframe = function() {try {return ((window.self.document.domain == window.top.document.domain) && (self !== top));} catch (e) {return false;}}(); var win_t = is_in_friendly_iframe ? top.window : window;var firstNode = win_t.document.body;var contentTab_2 = ["molenbeek","violées","violés","violée","violé","viols","viol","séquestrées","séquestrés","séquestrée","séquestré","radicalisations","radicalisation","radicalismes","radicalisme","explosives","explosive","explosifs","explosif","fiche s","décapiter","daesh","armes","arme","assassines","assassine","assassins","assassin","meurtrières","meurtrière","meurtriers","meurtier","meutres","meutre","assassinats","assassinat","victimes","victime","aggressées","aggressés","aggressée","aggressé","agressées","agressés","agressée","agressé","aggressions","aggression","agressions","agression","morts","mort","couteaux","couteau","assaillantes","assaillants","assaillant","arrestations","arrestation","terroristes","terroriste","explosions","explosion","bombes","bombe","suicides","suicide","attaques","attaque","fusillades","fusillade","attentats","attentat","boulevard voltaire","bataclan theatre","paris attacks","terrorisme","le petit cambodge","rock concert","kalachnikov","paris+fusillade","isis","gate j","explosion+stade","djihadiste","daech","boulevard beaumarchais","bataclan concert hall","bataclan","attaque+paris","rue de charonne","le carillon","porteouverte","paris+fusillades","jihad","les halles","guns","la casa nostra","islam","gatwick","djihadisme","bri","fireshot","eagles of death","marseille+daesh","gare+marseille+victime","attentats+marseille","etat+islamique+marseille","marseille+daech","attacks+marseille","attentat+marseille","assassinats+terroriste+marseille","gare+marseille+victims","attack+marseille","victime dagression","proches de victime","victime+police","famille de victime","lidentité de la victime","victime de laccident","sexo+conseils+couple","sexo+conseil+couple","sexe+conseil+couple","sexe+conseils+couple","love+sexe+couple","love+sexe+amour","kamasutra+position","kamasutra+positions","sexuel+desir+conseil","sexuel+desir+conseils","fusillade+youtube","shooting+youtube","attack+youtube","attaque+youtube","Nasim Najafi Aghdam","fusillade+san+bruno","shooting+san+bruno","fusillade+californie","shooting+california","fusillade+silicon+valley","shooting+silicon+valley","tireuse+youtube","tireur+youtube","shooter+youtube","trappes+couteau","trappes+attentat","trappes+attaque","trappes+terrorisme","trappes+terroriste","trappes+assaillant","trappes+mort","trappes+morts","trappes+daesh","Kamel Salhi","FSPRT","attentat+strasbourg","fusillade+strasbourg","urgence+attentat","terroriste+strasbourg","attaque+strasbourg","attaque+noël","attaque+marché","tireur+strasbourg","tireur+cherif","cherif+fusillade","christchurch","fusillades à Utrecht","attentat aux Pays-Bas","attentat à Utrecht","menace dattentat","gökman tanis","gökman tanis attentat","attaque terroriste","notre-dame+incendie","notre-dame+dégâts","cathédrale+incendie","notre-dame+feu","notre-dame+l incendie","notre-dame+ravagé","notre-dame+LVMH","notre-dame+Arnault","notre-dame+don","notre-dame+Pinault","notre-dame+flammes","notre-dame+brasier","notre-dame+pompiers","notre-dame"]; var message_2 = "//data16.adlooxtracking.com/ads/ic.php?ads_forceblock=1&log=1&adloox_io=1&campagne=40&banniere=0&plat=12&adloox_transaction_id=null&bp=&visite_id=37924160022&client=amnet&ctitle=&id_editeur=602690_ADLOOX_ID_0_ADLOOX_ID_154313726_ADLOOX_ID_300x600_ADLOOX_ID_5478711_ADLOOX_ID_390288_ADLOOX_ID_3296_ADLOOX_ID_6394767_ADLOOX_ID__ADLOOX_ID__ADLOOX_ID_global_appnexus_ADLOOX_ID_display_ADLOOX_ID_%24ADLOOX_WEBSITE_ADLOOX_ID_748572_ADLOOX_ID__ADLOOX_ID__ADLOOX_ID__ADLOOX_ID__ADLOOX_ID__ADLOOX_ID_&os=&navigateur=&appname=Netscape&timezone=-120&fai=%40https%3A%2F%2Fwww.leboncoin.fr%2Fventes_immobilieres%2F1556780677.htm%2F&alerte=&alerte_desc=&data=-229162033ttttftttffffffttttftftfffftfttttf&js=https%3A%2F%2Fj.adlooxtracking.com%2Fads%2Fjs%2Ftfav_adl_40.js%23platform%3D12%26scriptname%3Dadl_40%26tagid%3D369%26typejs%3Dtvaf%26fwtype%3D1%26creatype%3D2%26targetelt%3D%26custom1area%3D50%26custom1sec%3D1%26custom2area%3D0%26custom2sec%3D0%26id11%3Dglobal_appnexus%26id12%3Ddisplay%26id13%3D%24ADLOOX_WEBSITE%26id14%3D748572%26id1%3D602690%26id2%3D0%26id3%3D154313726%26id4%3D300x600%26id5%3D5478711%26id6%3D390288%26id7%3D3296%26id8%3D6394767&commitid=-dirty&fw=1&version=1&iframe=3&hadnxs=&ua=Mozilla%2F5.0%20%28Windows%20NT%2010.0%3B%20Win64%3B%20x64%3B%20rv%3A66.0%29%20Gecko%2F20100101%20Firefox%2F66.0&url_referrer=https%3A%2F%2Fwww.leboncoin.fr%2Fventes_immobilieres%2F1556780677.htm%2F&resolution=1280x720&nb_cpu=2&nav_lang=fr&date_regen=2019-02-27%2016%3A06%3A02&debug=7%3A%20top%20%21%3D%20window%20%26%20friendly%20-%3E%20location.href%20&ao=&fake=001000&popup_history=9&popup_visible=true&type_crea=2&tagid=369&popup_menubar=true&popup_locationbar=true&popup_personalbar=true&popup_scrollbars=false&popup_statusbar=true&popup_toolbar=true&id11=global_appnexus&id12=display&id13=%24ADLOOX_WEBSITE&id14=748572&id1=602690&id2=0&id3=154313726&id4=300x600&id5=5478711&id6=390288&id7=3296&id8=6394767&version=3";getAllNodesContent ( firstNode, contentTab_2, message_2 ); var adloox_impression=1;