Add Custom Search URL? Topic is solved

Users and developers helping users with generic and technical Pale Moon issues on all operating systems.

Moderator: trava90

Forum rules
This board is for technical/general usage questions and troubleshooting for the Pale Moon browser only.
Technical issues and questions not related to the Pale Moon browser should be posted in other boards!
Please keep off-topic and general discussion out of this board, thank you!
User avatar
fatboy
Astronaut
Astronaut
Posts: 558
Joined: 2017-12-19, 08:03
Location: Canada

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
Systemd Free - MX Linux, Antix Linux & Artix Linux

User avatar
Isengrim
Board Warrior
Board Warrior
Posts: 1325
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)".
a.k.a. Ascrod
Linux Mint 19.3 Cinnamon (64-bit), Debian Bullseye (64-bit), Windows 7 (64-bit)
"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
Astronaut
Astronaut
Posts: 558
Joined: 2017-12-19, 08:03
Location: Canada

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!
Systemd Free - MX Linux, Antix Linux & Artix Linux

Goodydino
Keeps coming back
Keeps coming back
Posts: 827
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: 35602
Joined: 2011-08-28, 17:27
Location: Motala, SE
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.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

paulwratt

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/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAB8lBMVEUAAADkR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RlOm1vZGlmeQAyMDE0LTAxLTE5VDIwOjAxOjExLTA1OjAwX0yGIAAAAABJRU5ErkJggg==</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
Astronaut
Astronaut
Posts: 558
Joined: 2017-12-19, 08:03
Location: Canada

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?
Systemd Free - MX Linux, Antix Linux & Artix Linux

Locked