daily pastebin goal
15%
SHARE
TWEET

Untitled

a guest May 10th, 2009 335 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. CmdUtils.CreateCommand({
  2.   name: "scribd-slurp",
  3.   icon: "http://www.scribd.com/favicon.ico",
  4.   homepage: "http://example.com/",
  5.   author: {name: "Navtej Singh", email: "n[d 0 t]s[d 0 t]buttar@gmail.com"},
  6.   license: "GPL",
  7.   description: "Scribd URL slurper",
  8.   help: "scribd-slurp <url to slurrp>",
  9.   takes: {"input": /.*/},
  10.   preview: function(pblock, input) {
  11.           pBlock.innerHTML = "Slurrp the url : " + input;        
  12.   },
  13.   execute: function(input) {
  14.         var url = "http://www.scribd.com/upload/oldslurp?url=";
  15.         url += escape( input.text );
  16.         url += "&source=upload_page&return_type=new_upload&commit=Upload";
  17.         Utils.openUrlInBrowser(url);
  18.   }
  19. });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top