I have programmed some improvements for the Google AdWords interface in JavaScript/jQuery, which will be inserted into the html code via Greasemonkey. See: https://www.internet-marketing-inside.de/AdWords/usability-booster.html
Among other things, I improved the usability of the user interface by toggling checkboxes at the beginning of the row by clicking somewhere in the row or move the mouse and hold shift/ctrl. However, Google has developed a new interface that doesn't use normal checkboxes anymore and now I have a strange problem.
$matCheckbox.click();
works great until I clicked somewhere on the page once with the mouse. From then on .click() is ignored. Anybody have an idea?
$(document).on("mouseenter", ".particle-table-row", function(e){
var $row = $(this);
var $matCheckbox = $row.find("mat-checkbox");
if (typeof($matCheckbox.attr("checked")) == "undefined") {
if (e.shiftKey === true) {
$matCheckbox.click();
}
} else {
if (e.ctrlKey === true) {
$matCheckbox.click();
}
}
});
mat-checkbox looks like angular.io but I'm not sure about that.
<mat-checkbox tabindex="0" indeterminate="false"><div class="particle-ripple-container" delegate-events="" style="pointer-events: none; width: 48px; height: 48px; transform: translate(-16px, -1px);"></div><div class="mat-checkbox-container" delegate-events="" style="border-color: rgb(117, 117, 117);"></div></mat-checkbox>
Thanks Holger