Last active
August 1, 2019 14:16
-
-
Save Albirew/70167de32ecf5992c97c80b00584d4ee to your computer and use it in GitHub Desktop.
Remove fuckin password and button limitation on websites
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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