// ==UserScript==
// @name          SoftPedia Delete Topic with no confirmation
// @author        Ciuly  
// @namespace     http://www.ciuly.com
// @description   modifies the delete topic moderation option to not ask for confirmation
// @include       http://forum.softpedia.com/index.php?showtopic=*
// @require       http://www.ciuly.com/greasemonkey/aa_all_common.user.js
// @require       http://www.ciuly.com/greasemonkey/aa_sp_common.user.js
// @require       http://www.ciuly.com/greasemonkey/aa_sp_mod_common.user.js
// ==/UserScript==

(function(){

  var forms, form;

  forms = document.body.getElementsByTagName("form");
  for (var j=0; j<forms.length; j++){
    form = forms.item(j);
    if ( form.name == "modform2" ){
      for (var l=0; l<form.elements.length; l++){
        if (form.elements[l].name == "CODE"){
          form.elements[l].checked="checked";
          options = form.elements[l].getElementsByTagName("option");
          for (var i=0; i<options.length; i++)
            if (options.item(i).value == "03"){
              options.item(i).value="08";
              break;
            }
          break;
        }
      }
      break;
    }
  }

})();