Hi Tony,

> Any chance of making a similar one for paypal?

Attached (pp.xml).

It functions very similar to the yy.xml search posted a few days ago -
create profiles in the same format (user, password) as variables in
localprefs, then make aliases or pass the variable name as an
argument.

Regards,

Shawn K. Hall
http://ReliableAnswers.com/

'// ========================================================
   "Cutting the space budget really restores my faith in
    humanity.  It eliminates dreams, goals, and ideals and
    lets us get get straight to the business of hate,
    debauchery, and self-annihilation."
      -- Johnny Hart
<search function="pp">
  <name>PayPal</name>
  <category>Finance</category>
  <contributor>Shawn K. Hall</contributor>
  <email>[EMAIL PROTECTED]</email>
  <description>Login to My Yahoo
  <div class="helpboxDescLabels">Example:</div>
  <table class="helpboxDescTable">
    <tr><td>yy</td></tr>
    <tr><td>yy myid</td></tr>
    <tr><td>yy myotherid</td></tr>
  </table>
  <div class="helpboxDescLabels">Variables:</div>
  <table class="helpboxDescTable">
    <tr><td>yyid('user','pwd');</td><td>An array storing a user and password profile for Yahoo! 
	You SHOULD provide the <em>yyid()</em> variable, however, you may also provide as many other 
	profiles as necessary to account for your Yahoo ID's. If you were to create a 'second' profile 
	you would need only to pass the variable name on the command line: <br />
	<strong>yy otherVariable</strong><br />
	These variables are, however, case sensitive. If the variable passed does not exist (misspelled, 
	incorrect case...), this search will 'default' to using the <em>yyid</em> variable.</td></tr>
  </table>
  </description>
  <link>http://my.yahoo.com/</link>
  <comment>
    This is pretty spiffy, eh?
  </comment>
  <form name="ppf" method="post"
	action="https://www.paypal.com/cgi-bin/webscr?__track=_home:p/wel/index-outside:_login-submit";>
	<input type="hidden" name="cmd" value="_login-submit" />
	<input type="hidden" name="login_email" value="" />
	<input type="hidden" name="login_password" value="" />
	<input type="hidden" name="submit.x" value="Log In" />
  </form>
  <script><![CDATA[
    function pp(q){
	if (q=="?"){
	  nullArgs("pp",q);
	  return false;
	}
	var ppids = ppid;
	try{
	  eval("var ppids = " + q + ";");
	}catch(e){
	  var ppids = ppid;
	}
	try{
	  document.ppf.login_email.value = ppids[0];
	  document.ppf.login_password.value = ppids[1];
	}catch(e){}
	submitForm(ppf);
    }
  ]]></script>
  <copyright>
    Copyright (c) 2004 Shawn K. Hall
    Distributed under the terms of the GNU Public License, Version 2 (http://www.gnu.org/copyleft/gpl.txt)
  </copyright>
</search>

Reply via email to