Author: sparky
Date: Tue Jan 12 17:38:05 2010
New Revision: 11109

Modified:
   toys/rsget.pl/rsget.pl.user.js
Log:
- add information about source page


Modified: toys/rsget.pl/rsget.pl.user.js
==============================================================================
--- toys/rsget.pl/rsget.pl.user.js      (original)
+++ toys/rsget.pl/rsget.pl.user.js      Tue Jan 12 17:38:05 2010
@@ -256,13 +256,20 @@
        ar.setAttribute( 'name', 'links' );
        ar.value = text;
        form.appendChild( ar );
+       
+       ar = document.createElement( 'textarea' );
+       ar.setAttribute( 'name', 'comment' );
+       ar.value = "source: " + document.location.href;
+       form.appendChild( ar );
+
        try {
                docbody().appendChild( form );
                window.setTimeout( rm_node, 1000, form );
                form.submit();
        } catch (e) {
                GM_log( "Error: " + e );
-               var get = uri + "?links=" + escape( text );
+               var get = uri + "?links=" + escape( text )
+                       + "&comment=" + escape( "source: " + 
document.location.href );
                GM_openInTab( get );
        }
 }
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to