javascript:function htmlreplace(a,b,element){if(!element)element=document.body;var nodes=element.childNodes;for(var n=0;n<nodes.length;n++){if(nodes[n].nodeType==Node.TEXT_NODE){nodes[n].textContent=nodes[n].textContent.replace(new RegExp(a,'gi'),b);}else{htmlreplace(a,b,nodes[n]);}}}htmlreplace(prompt("What do you want to replace?"),prompt("What do you want to replace it with?"))
/*
* The following script requires jQuery to exist in the website.
*/
(function($) {
if (typeof(ga) == "undefined") {
console.log('No Google Analytics script found');
}
else {
var UAs = ga.getAll();
$.each(UAs, function(key, value) {
console.log(value.b.data.values[':trackingId']);
});
}
})(jQuery);
/*
* The following script requires browser to support the forEach() callback.
*/
(function() {
if (typeof(ga) == "undefined") {
console.log('No Google Analytics script found');
}
else {
var UAs = ga.getAll();
UAs.foReach(function(key, value) {
console.log(value.b.data.values[':trackingId']);
});
}
})();