Skip to content

Instantly share code, notes, and snippets.

@kristianhellquist
Created March 2, 2010 10:32
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 kristianhellquist/319418 to your computer and use it in GitHub Desktop.
Save kristianhellquist/319418 to your computer and use it in GitHub Desktop.
// ==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