GISTS/web/userscripts/anti-disabled.user.js

32 lignes
Pas d'EOL
1,2 Kio
JavaScript

// ==UserScript==
// @name anti-disabled
// @description Remove fuckin password and button limitation on websites
// @version 1.2a
// @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://git.dess.ga/Albirew/GISTS/raw/branch/main/web/userscripts/anti-disabled.user.js
// @updateURL https://git.dess.ga/Albirew/GISTS/raw/branch/main/web/userscripts/anti-disabled.user.js
// ==/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');
}
}
}
}) ();