Chrome extension: Block some website Reference Switcheroo Redirector Update sites var b = []; for(var i=0; i<a.length; i++){ if(b.indexOf(a[i]) === -1){ b.push(a[i]); } } console.log(b.join(' ')); Usage Download this zip Load unpacked extension in Google Chrome