32 lignes
1,2 Kio
JavaScript
32 lignes
1,2 Kio
JavaScript
|
// ==UserScript==
|
||
|
// @name anti-disabled
|
||
|
// @description Remove fuckin password and button limitation on websites
|
||
|
// @version 1.2
|
||
|
// @author sysadmin_fr | https://discord.gg/ejJ4dsg
|
||
|
// @namespace https://gist.github.com/Albirew/
|
||
|
// @grant none
|
||
|
// @include http://*
|
||
|
// @include https://*
|
||
|
// @run-at document-start
|
||
|
// @downloadURL https://gist.githubusercontent.com/Albirew/70167de32ecf5992c97c80b00584d4ee/raw/
|
||
|
// @updateURL https://gist.githubusercontent.com/Albirew/70167de32ecf5992c97c80b00584d4ee/raw/
|
||
|
// ==/UserScript==
|
||
|
|
||
|
document.querySelectorAll('button[contains(., 'disabled')]').map(el => el != null && el.disabled = false)
|
||
|
document.querySelectorAll('input[class="disabled"]').classList.remove("disabled")
|
||
|
|
||
|
(function() {
|
||
|
var form, input;
|
||
|
form = document.getElementsByTagName('form');
|
||
|
if(form) {
|
||
|
for(i = 0; i < form.length; i++) {
|
||
|
form[i].setAttribute('autocomplete', 'on');
|
||
|
}
|
||
|
input = document.getElementsByTagName('input');
|
||
|
for(i = 0; i < input.length; i++) {
|
||
|
if(input[i].type=='text' || input[i].type=='password') {
|
||
|
input[i].setAttribute('autocomplete', 'on');
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}) ();
|