For those of you who don't know, Greasemonkey is a Firefox addon that allows execution of custom JavaScript for web pages.
Because of the inflation of shouting here, I have written a small script that displays shouting extra small.
// ==UserScript== // @name Anti Shout // @namespace kamikaze.bsdforen.de // @include http://www.keil.com/forum/* // @description Scale down excessive shouting on the Keil forums // ==/UserScript== var tables = document.getElementsByTagName("table"); var table; for (var i = 0; i < tables.length; i++) { if (tables[i].getAttribute("class") == "thd") { table = tables[i]; break; } } function descent(node) { if (node.data) { var volume = node.data.match(/[A-Z]/g); if (volume && volume.length / node.data.length > 0.5) { node.parentNode.style.fontSize = "x-small"; } } for (var i = 0; i < node.childNodes.length; i++) { descent(node.childNodes[i]); } } descent(table);
I was afraid something like this would happen (false positives): http://www.keil.com/forum/21786/
Though I expected it from preprocessor examples.
What should I do about it, any ideas?
what in the thread you link to do you consider a false positive?
Erik
If you use my script 2 blocks of ASM code are affected. I don't consider assembler code shouting.
.
Is that due to the total lack of comments?
You could say so.
in that case it would probably be OK to 'minimize'
Good point, I am appeased.