Google search

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!
gepus
Moon lover
Moon lover
Posts: 84
Joined: Thu, 14 Dec 2017, 12:59

Google search

Unread postby gepus » Thu, 16 Aug 2018, 20:57

I'm thoroughly testing Pale Moon v.28 since I plan a definitive switch from Firefox 52 ESR to PM as my default browser.
Everything works great, extensions inclusive!
There is a single issue which I hope that can be solved with your help.
It's about Google search.
I'm not a fan of Google and avoid it as much as I can but sometimes I have to use their search.

How can I set Google search in Pale Moon for 100 results per site, and the language for displayed results so Google search performs as it does in my Firefox setup?

Thanks in advance!

User avatar
Tomaso
Keeps coming back
Keeps coming back
Posts: 943
Joined: Thu, 23 Jul 2015, 16:09
Location: Norway

Re: Google search

Unread postby Tomaso » Thu, 16 Aug 2018, 21:07

This is not a browser setting.

@ Google.com:
'Settings' (down in the right corner of the page) > 'Search settings' > 'Results per page' > "100" > 'Save'

gepus
Moon lover
Moon lover
Posts: 84
Joined: Thu, 14 Dec 2017, 12:59

Re: Google search

Unread postby gepus » Thu, 16 Aug 2018, 21:31

It's the search setting within the browser (search.json?).
I have 3 browsers at hand (Firefox 52.9.0 ESR, Opera Presto and K-Meleon) where I modified the search string within the browser. No meddling on Google's site.
So please, if you or someone else is willed or can give a useful hint, it would be much appreciated.

User avatar
Tomaso
Keeps coming back
Keeps coming back
Posts: 943
Joined: Thu, 23 Jul 2015, 16:09
Location: Norway

Re: Google search

Unread postby Tomaso » Thu, 16 Aug 2018, 21:41

No really, this is NOT a browser setting!
Google is probably just up to their old tricks again, discriminating certain browsers.
You might be able to get around it, using a UA override, like the one posted by Sajadi here:
viewtopic.php?f=3&t=19044&p=147420#p147420
But you should pay attention to Moonchild's warning in the post below.

gepus
Moon lover
Moon lover
Posts: 84
Joined: Thu, 14 Dec 2017, 12:59

Re: Google search

Unread postby gepus » Thu, 16 Aug 2018, 21:57

I didn't say that it's a browser setting. :)
I assume that's the search plugin (google.xml) within the browser/(search.json) that probably needs to be modified.
If it's doable in Firefox and other browsers it should be also doable in Pale Moon - at least I think so.

As for the link you gave - this has nothing to do with browser sniffing and UserAgents.

User avatar
Tomaso
Keeps coming back
Keeps coming back
Posts: 943
Joined: Thu, 23 Jul 2015, 16:09
Location: Norway

Re: Google search

Unread postby Tomaso » Thu, 16 Aug 2018, 22:22

Yeah, adding &num=100 to the search string seems to do trick:
https://www.google.com/search?q=pale%20moon&num=100
..so it should be "fixable" in google.xml.

Goodydino
Lunatic
Lunatic
Posts: 318
Joined: Tue, 10 Oct 2017, 21:20

Re: Google search

Unread postby Goodydino » Thu, 16 Aug 2018, 22:26

Tomaso wrote:No really, this is NOT a browser setting!
Google is probably just up to their old tricks again, discriminating certain browsers.
You might be able to get around it, using a UA override, like the one posted by Sajadi here:
viewtopic.php?f=3&t=19044&p=147420#p147420
But you should pay attention to Moonchild's warning in the post below.

What post below? There is none there.
Google will not change the settings unless you let them set cookies. There used to be code that you could add to the URL to tell Google how many results per page to put, but they have ignored that for years now. Most likely that was to force visitors to let them set cookies.

User avatar
billmcct
Lunatic
Lunatic
Posts: 389
Joined: Tue, 04 Sep 2012, 15:19
Location: Atlanta Georgia USA

Re: Google search

Unread postby billmcct » Thu, 16 Aug 2018, 22:28

Google sets a cookie with your saved settings. I don't accept Google cookies myself.

coffeebreak
Board Warrior
Board Warrior
Posts: 1340
Joined: Sat, 26 Sep 2015, 04:51
Location: U.S.

Re: Google search

Unread postby coffeebreak » Thu, 16 Aug 2018, 22:36

Adding this to a Google search plugin worked for me:

Code: Select all

<Param name="num" value="100"/>

User avatar
Tomaso
Keeps coming back
Keeps coming back
Posts: 943
Joined: Thu, 23 Jul 2015, 16:09
Location: Norway

Re: Google search

Unread postby Tomaso » Thu, 16 Aug 2018, 22:36

Goodydino wrote:What post below? There is none there.

The one below Sajadi's post (which I linked to directly).

--

Goodydino wrote:There used to be code that you could add to the URL to tell Google how many results per page to put, but they have ignored that for years now.

Try the link in my previous post.
That trick works!

User avatar
Tomaso
Keeps coming back
Keeps coming back
Posts: 943
Joined: Thu, 23 Jul 2015, 16:09
Location: Norway

Re: Google search

Unread postby Tomaso » Thu, 16 Aug 2018, 22:49

coffeebreak wrote:Adding this to a Google search plugin worked for me:

Code: Select all

<Param name="num" value="100"/>

Confirmed!
But for it to work, I had to remove the edited XML file from the searchplugins folder, restart Pale Moon once without it, then put the XML file back into place, and restart Pale Moon once more!
:thumbup:

gepus
Moon lover
Moon lover
Posts: 84
Joined: Thu, 14 Dec 2017, 12:59

Re: Google search

Unread postby gepus » Thu, 16 Aug 2018, 23:24

coffeebreak wrote:Adding this to a Google search plugin worked for me:

Code: Select all

<Param name="num" value="100"/>


Muchas gracias Sir! :angel:

Any hint how to set the preferred language (en-us)?

coffeebreak
Board Warrior
Board Warrior
Posts: 1340
Joined: Sat, 26 Sep 2015, 04:51
Location: U.S.

Re: Google search

Unread postby coffeebreak » Fri, 17 Aug 2018, 00:02

gepus wrote:Any hint how to set the preferred language (en-us)?

Just a guess, adapting from the parameter in my search url (since I only ever see Google search in English), try this:

Code: Select all

<Param name="hl" value="en"/>

gepus
Moon lover
Moon lover
Posts: 84
Joined: Thu, 14 Dec 2017, 12:59

Re: Google search

Unread postby gepus » Fri, 17 Aug 2018, 00:22

Thanks a lot!!!
In the meanwhile I managed to solve the preferred language too. 8-)

In PM v28 it looks like this:

Code: Select all

..."utf-8"},{"name":"num","value":"100"},{"name":"hl","value":"en"}]}]
Last edited by gepus on Fri, 17 Aug 2018, 00:24, edited 2 times in total.


Return to “General support”

Who is online

Users browsing this forum: Google [Bot], Impressed, Majestic-12 [Bot], Rickkins and 11 guests