Signal page as correct in Google Webmaster Tool (simulate mouse click)

Google webmaster tool signals scanning errors. The is option to signal error a scorrected, but sometime a lot of error is solved at once, but interface do not give option to select it all.

Also this trick could be usefull in other service..

I loaded this code in chrome console (developer tool), modified from example code https://developer.mozilla.org/en/DOM/element.dispatchEvent

{syntaxhighlighter brush:javascript}
function simulateClick(cb) { if(!cb) return;
var evt = document.createEvent(“MouseEvents”);
evt.initMouseEvent(“click”, true, true, window,
0, 0, 0, 0, 0, false, false, false, false, 0, null);
var canceled = !cb.dispatchEvent(evt);
}
{/syntaxhighlighter}

Then, it happen that this

var els = document.querySelectorAll('td.GNXG5VKCJU div input');

select all checkbox that I need, and this

for(i in els) { simulateClick(els[i]);}

of course, click it all (and select).

Without simulate pointer click trick does not work (i.e. els[i].checked = true; check the element, UI have no feedback)

Hope this could be usefull.


Posted

in

,

by

Tags: