| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
|
|
| (function() {
|
| if (window.__museAutofillSuppressed) return;
|
| window.__museAutofillSuppressed = true;
|
|
|
| function suppress(el) {
|
| if (!el || !el.setAttribute) return;
|
| var tag = el.tagName;
|
| if (tag === 'FORM') {
|
| el.setAttribute('autocomplete', 'off');
|
| } else if (tag === 'INPUT') {
|
| var type = (el.type || '').toLowerCase();
|
| if (type === 'password') {
|
|
|
| el.setAttribute('autocomplete', 'new-password');
|
| } else if (type === 'email' || type === 'text' || type === 'tel') {
|
| el.setAttribute('autocomplete', 'off');
|
| }
|
|
|
| el.setAttribute('data-lpignore', 'true');
|
| el.setAttribute('data-form-type', 'other');
|
| el.setAttribute('data-1p-ignore', 'true');
|
| }
|
| }
|
|
|
| function suppressAll() {
|
| document.querySelectorAll('form, input').forEach(suppress);
|
| }
|
|
|
|
|
| if (document.readyState === 'loading') {
|
| document.addEventListener('DOMContentLoaded', suppressAll);
|
| } else {
|
| suppressAll();
|
| }
|
|
|
|
|
| var observer = new MutationObserver(function(mutations) {
|
| for (var i = 0; i < mutations.length; i++) {
|
| var added = mutations[i].addedNodes;
|
| for (var j = 0; j < added.length; j++) {
|
| var node = added[j];
|
| if (node.nodeType !== 1) continue;
|
| suppress(node);
|
| if (node.querySelectorAll) {
|
| node.querySelectorAll('form, input').forEach(suppress);
|
| }
|
| }
|
| }
|
| });
|
| observer.observe(document.documentElement, { childList: true, subtree: true });
|
| })();
|
|
|