Skip to content

Instantly share code, notes, and snippets.

@Albirew
Last active August 1, 2019 14:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Albirew/70167de32ecf5992c97c80b00584d4ee to your computer and use it in GitHub Desktop.
Save Albirew/70167de32ecf5992c97c80b00584d4ee to your computer and use it in GitHub Desktop.
Remove fuckin password and button limitation on websites
// ==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');
}
}
}
}) ();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment