Search Engine Addon

Users can share resources like search engine definitions, dictionary definitons here.

Moderator: SlimBrowser Forum Moderators

Post Reply
davinci
Advanced Member
Posts: 41
Joined: Sun Feb 09, 2003 9:51 am

Post by davinci » Sun Feb 16, 2003 4:50 am

Just copy the following into notepad and save it has a .js file.....Then go to google or some other search engine and run the script. It will put it in the correct format for englist.ini Just another fun little SlimBrowser addon by davinci.

Copy below this line
--------------------------------------------------------------------------------------------------------------------------


// Name It

var Caption = prompt("Under what name would like this to be displayed?","Search Name");


// Grab Main Form Action (e.g /cgi-bin/search)

var MainAction = document.forms[0].action;


// Put Action in Correct Format

if (MainAction.indexOf("http://") == 0) {
Action = MainAction;
}
else if (MainAction.indexOf("/") == 0) {
Action = "http://" + location.hostname + MainAction;
}
else {
Action = "http://" + location.hostname + "/" + MainAction;
}


// Grab Method (POST or GET)

if (document.forms[0].method == "null") {
Method = "get"
}
else {
Method = document.forms[0].method;
}


// Grab Action Form Name (You must click on the Search Box!)

CurrentName = window.document.activeElement.name;


// Compile Final

Final = Caption + ";" + Action + "?" + CurrentName + "=$key" + ";" + Method;


// Output

alert(Final);

flashpeak
Advanced Member
Posts: 342
Joined: Sat Jan 25, 2003 5:26 pm

Post by flashpeak » Mon Feb 17, 2003 2:50 pm

Good job. I guess I will do a search engine wizard too.
Stephen Cheng
FlashPeak Support
Email: support AT flashpeak.com

davinci
Advanced Member
Posts: 41
Joined: Sun Feb 09, 2003 9:51 am

Post by davinci » Mon Jun 09, 2003 2:12 pm

Found it buried in the list.. lol

oftentired
Advanced Member
Posts: 910
Joined: Tue Mar 04, 2003 9:39 pm
Location: Las Vegas

Post by oftentired » Mon Jun 09, 2003 7:11 pm

Nice. I have no clue how to do even the most rudimentary of programming.

Can you tell it to stick the text into the clipboard as well? Open englist.ini maybe? Or would that be pushing it?
Slimbrowser Demo Videos

Relationships are ours to make; we define them, day by day,
by who we choose to love and how we choose to love them.
And, by these choices, define ourselves. ~~~Richard N. Patterson

davinci
Advanced Member
Posts: 41
Joined: Sun Feb 09, 2003 9:51 am

Post by davinci » Mon Jun 09, 2003 8:12 pm

It needs to be recoded I posted it to give a rough bases for others to work off of. If I got some free time later this week I can attempt to do that for you. I'm not that great with javascript I program in win32 languages such as vb, delphi, and am currently working with the new .net platforms.

But if i get some free time sure :)

Minicar99
Newbie
Posts: 2
Joined: Wed Apr 18, 2018 9:10 pm

Re: Search Engine Addon

Post by Minicar99 » Wed Apr 18, 2018 9:42 pm

I think same you It's a rational idea.

Post Reply