Add Custom Search URL?

Users and developers helping users with technical Pale Moon issues (Windows and other non-Linux O.S.). Please direct questions about the Linux version to the appropriate Linux board.

Moderators: trava90, satrow

Forum rules
This board is for technical/usage questions and troubleshooting for the Pale Moon browser only. The main focus here is on Pale Moon on Windows. Please direct your questions for Linux, Android and Mac to the dedicated boards.
Technical issues and questions not related to the Pale Moon browser should be posted in "technical chat"
Please keep off-topic and general discussion out of this board, thank you!
User avatar
fatboy
Fanatic
Fanatic
Posts: 183
Joined: 2017-12-19, 08:03

Add Custom Search URL?

Unread post by fatboy » 2018-08-02, 12:25

Good Day Community :D ,

I am trying to add DuckDuckGo Lite as a "custom" search engine. It doesn't use javascript and is why I want to set it as default. The URL one needs is as follows:

https://duckduckgo.com/lite/?t=palemoon&q=insert search term here

Can anyone help me with this? If I want to add a search engine, Pale Moon takes me to the Pale Moon website.

Thank You

User avatar
Isengrim
Keeps coming back
Keeps coming back
Posts: 921
Joined: 2015-09-08, 22:54
Location: 127.0.0.1
Contact:

Re: Add Custom Search URL?

Unread post by Isengrim » 2018-08-02, 13:20

Click your link to navigate to DDG Lite, then go to the browser's Search box, hit the down arrow on the left, and near the bottom of the menu should be an option to "Add DuckDuckGo (Lite)".
Linux Mint 19.2 Cinnamon (64-bit), Windows 7 (64-bit), Windows 10 build 1803 (64-bit)
JavaScript is not Java
"As long as there is someone who will appreciate the work involved in the creation, the effort is time well spent." ~ Tetsuzou Kamadani, Cave Story

User avatar
fatboy
Fanatic
Fanatic
Posts: 183
Joined: 2017-12-19, 08:03

Re: Add Custom Search URL?

Unread post by fatboy » 2018-08-03, 06:17

Isengrim wrote:Click your link to navigate to DDG Lite, then go to the browser's Search box, hit the down arrow on the left, and near the bottom of the menu should be an option to "Add DuckDuckGo (Lite)".
Wow, it's that easy?! Thank You!
I have added DuckDuckGo Lite :D Amazing!

Goodydino
Lunatic
Lunatic
Posts: 497
Joined: 2017-10-10, 21:20

Re: Add Custom Search URL?

Unread post by Goodydino » 2018-08-04, 20:14

Mycroft Projects has DuckDuckGo Lite as a search plugin here: http://mycroftproject.com/search-engines.html?name=lite

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 24242
Joined: 2011-08-28, 17:27
Location: 58°2'16"N 14°58'31"E
Contact:

Re: Add Custom Search URL?

Unread post by Moonchild » 2018-08-05, 02:25

The downside is that it won't count for searches for our project (since the t=palemoon is missing) which means no support through searches for the project.
City of Heroes public server: https://www.moonshard.org/ -- Vote for it on cohservers.com

"If you want to build a better world for yourself, you have to be willing to build one for everybody." -- Coyote Osborne
Image

User avatar
paulwratt
Newbie
Newbie
Posts: 3
Joined: 2018-08-10, 11:18

Re: Add Custom Search URL?

Unread post by paulwratt » 2018-08-10, 11:46

Moonchild wrote:The downside is that it won't count for searches for our project (since the t=palemoon is missing) which means no support through searches for the project.
half true, they are tracking it in 2 different ways:

Code: Select all

...
        <form action="/lite/" method="post">
          <!-- <a rel="next" href="/lite/?q=blah&a=palemoon& ... {snip}
          ...
          <input name="t" value="palemoon" type="hidden">
...
as long as the initial query includes "t=palemoon"

I was trying to get another querystring url search install, and I just happened to use the DDG Lite XML file as a basis. if a modified XML were stored in logically accessible place on a palemoon url, say at palemoon.org/opensearch/ddg-lite-qs.xml linked from palemoon.org/opensearch/ddg-lite.html with a blurb about why its there, then you have a 100% solution, that always starts DDG-lite a) with a query string, and b) with "t=palemoon" prepended.

actual modified xml:

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/"> 
  <ShortName>DuckDuckGo Lite QS</ShortName> 
  <Description>Search DuckDuckGo (Lite QS)</Description> 
  <InputEncoding>UTF-8</InputEncoding> 
  <LongName>DuckDuckGo Search (Lite, non-JS, QueryString)</LongName> 
  <Image height="16" width="16">data:image/x-icon;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpg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6MTEtMDU6MDAuET6cAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDE0LTAxLTE5VDIwOjAxOjExLTA1OjAwX0yGIAAAAABJRU5ErkJggg==</Image>
  <Url type="text/html" method="get" template="https://duckduckgo.com/lite/">
    <Param name="t" value="palemoon"/>  
    <Param name="q" value="{searchTerms}"/>  
  </Url>
  <Url type="application/x-suggestions+json" template="https://duckduckgo.com/ac/?t=palemoon&q={searchTerms}&type=list"/>
</OpenSearchDescription> 

for it to be easily enabled, the reference html page then just requires in the head:

Code: Select all

<link title="DuckDuckGo (Lite QS)" type="application/opensearchdescription+xml" rel="search" href="./ddg-lite-qs.xml">
(EDIT: this does not work from a "file://" url, so I just copied it into "palemoon/browser/searchplugins/" and restarted PM)

I presume you can also modify the default XML in the PM repo as well

cheers

Paul

NOTE: you should also modify the current DDG suggestions url to pass the "t=palemoon" also
Last edited by paulwratt on 2018-08-10, 12:36, edited 2 times in total.

User avatar
fatboy
Fanatic
Fanatic
Posts: 183
Joined: 2017-12-19, 08:03

Re: Add Custom Search URL?

Unread post by fatboy » 2018-08-13, 13:57

Aah, cool. Great work Paul! Would it be possible to add DDG Lite to the Pale Moon list of search engines with the t=palemoon included?

Locked