ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

Main Area and Open Discussion > Living Room

Looking for alternative script to search site

<< < (3/4) > >>

4wd:
NOTE: This was all written on a tablet, tables would have looked better but editing on a tablet is painful to say the least. (It actually looks better in Preview than Posted.)

So basically, if Presearch is selected, then this is the part i would use
%22http://engine.presearch.org/search?q=%22+q.replace(/\s+/g,%22+%22)
to replace Google's?-dantheman (March 30, 2021, 02:04 PM)
--- End quote ---

Not even that much, google.com -> engine.presearch.org, everything else is the same.

Don't look at the JavaScript, look at example search URLs from the search engines themselves:

--- ---https://   www.google.com          /search?q=mouser+site%3Adonationcoder.com  (Google - original)
https://   engine.presearch.org    /search?q=mouser+site%3Adonationcoder.com  (Presearch)


--- ---https://   www.google.com/search     ?q=mouser+site%3Adonationcoder.com  (Google - original)
https://   qwant.com/                ?q=mouser+site%3Adonationcoder.com  (Qwant)
https://   duckduckgo.com/           ?q=mouser+site%3Adonationcoder.com  (DDG)
https://   startpage.com/sp/search   ?q=mouser+site%3Adonationcoder.com  (Startpage)

The second section in each case is the minimum that needs changing.
All other sections of test searches on the engines are identical.

NOTES:

* I removed unnecessary crap from the example URLs, eg. setting strings, tracking, etc, so all are the minimum that are required for them to work.
* www.google.com is google.com in the bookmarklet.
Did use 4wd's last script and it isn't responding.
--- End quote ---

I tested all four of the ones I changed and they all worked for me. The Presearch version in the last post was a copy/paste of the previous, which was copy/paste out of my browser, (Opera).

dantheman:
@4wd - thanks again, you have been more than patient!!

First try was with Vivaldi (still doesn't work after third verification).

Just tested with Firefox and your script works just fine there.  :)

Wonder why initial Google script works with Vivaldi but not yours?  :huh:

4wd:
First try was with Vivaldi (still doesn't work after third verification).-dantheman (March 30, 2021, 06:30 PM)
--- End quote ---

Just tried the Presearch one above in Vivaldi, (Vivaldi   2.9.1699.4 (Official Build) (64-bit)), and it worked OK - had to double-click the bookmarklet.

dantheman:
2.9.2218.49 here.

The odd thing is.
Tried on Brave browser with both Google and Presearch and neither worked.
Then went over to M$ Edge and both went well.  :(
Btw, both Brave and M$ Edge already have a functioning version of the "Google" script.
I'm just stymied about this incoherence.

dantheman:
Think i might start studying DuckDuckGo's ways of searching as it is a cross-browser option.

Ghacks just tickled my curiosity:
https://www.ghacks.net/2021/04/15/how-to-use-duckduckgo-instead-of-google-and-other-sites-to-get-faster-and-precise-results/

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version