Created
March 2, 2010 10:32
-
-
Save kristianhellquist/319418 to your computer and use it in GitHub Desktop.
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 MrOrange - Read forms | |
// @namespace http://travelpartner.se | |
// @description Set all input fields to disabled=false | |
// @include https://*.travelpartner.se/admin/* | |
// @include https://*.travelpartner.com/admin/* | |
// ==/UserScript== | |
(function() { | |
var cells = document.getElementsByTagName("input"); | |
for (var i = 0; i < cells.length; i++) { | |
status = cells[i].getAttribute("disabled"); | |
if ( status == "disabled") { | |
cells[i].disabled = false | |
} | |
} | |
}) (); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment