Skip to content

Instantly share code, notes, and snippets.

@kainy
Last active April 29, 2016 03:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kainy/e20c86ef945e79bc6f0298a302befe13 to your computer and use it in GitHub Desktop.
Save kainy/e20c86ef945e79bc6f0298a302befe13 to your computer and use it in GitHub Desktop.
显示页面上otitle埋点的元素(webtrends埋点验证)
javascript: (function() {
[].forEach.call(document.querySelectorAll('*[otitle]'), function(a) {
a.title= 'otitle内容:【 '+ a.getAttribute('otitle')+' 】';
setInterval(function(){
a.style.outline = "2px solid #" + (~~(Math.random() * (1 << 12))).toString(16)
}, 100)
}, 6);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment