Google search

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
gepus
Keeps coming back
Keeps coming back
Posts: 943
Joined: 2017-12-14, 12:59

Google search

Unread post by gepus » 2018-08-16, 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
Board Warrior
Board Warrior
Posts: 1622
Joined: 2015-07-23, 16:09
Location: Norway

Re: Google search

Unread post by Tomaso » 2018-08-16, 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'

User avatar
gepus
Keeps coming back
Keeps coming back
Posts: 943
Joined: 2017-12-14, 12:59

Re: Google search

Unread post by gepus » 2018-08-16, 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
Board Warrior
Board Warrior
Posts: 1622
Joined: 2015-07-23, 16:09
Location: Norway

Re: Google search

Unread post by Tomaso » 2018-08-16, 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.

User avatar
gepus
Keeps coming back
Keeps coming back
Posts: 943
Joined: 2017-12-14, 12:59

Re: Google search

Unread post by gepus » 2018-08-16, 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
Board Warrior
Board Warrior
Posts: 1622
Joined: 2015-07-23, 16:09
Location: Norway

Re: Google search

Unread post by Tomaso » 2018-08-16, 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
Keeps coming back
Keeps coming back
Posts: 827
Joined: 2017-10-10, 21:20

Re: Google search

Unread post by Goodydino » 2018-08-16, 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
Keeps coming back
Keeps coming back
Posts: 959
Joined: 2012-09-04, 15:19
Location: Costa Rica & Union City Georgia USA

Re: Google search

Unread post by billmcct » 2018-08-16, 22:28

Google sets a cookie with your saved settings. I don't accept Google cookies myself.
--------------------------------------------------------------------------------------------------------------
The difference between the Impossible and the Possible lies in a man's Determination.
Tommy Lasorda

coffeebreak
Moon Magic practitioner
Moon Magic practitioner
Posts: 2986
Joined: 2015-09-26, 04:51
Location: U.S.

Re: Google search

Unread post by coffeebreak » 2018-08-16, 22:36

Adding this to a Google search plugin worked for me:

Code: Select all

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

User avatar
Tomaso
Board Warrior
Board Warrior
Posts: 1622
Joined: 2015-07-23, 16:09
Location: Norway

Re: Google search

Unread post by Tomaso » 2018-08-16, 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
Board Warrior
Board Warrior
Posts: 1622
Joined: 2015-07-23, 16:09
Location: Norway

Re: Google search

Unread post by Tomaso » 2018-08-16, 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:

User avatar
gepus
Keeps coming back
Keeps coming back
Posts: 943
Joined: 2017-12-14, 12:59

Re: Google search

Unread post by gepus » 2018-08-16, 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
Moon Magic practitioner
Moon Magic practitioner
Posts: 2986
Joined: 2015-09-26, 04:51
Location: U.S.

Re: Google search

Unread post by coffeebreak » 2018-08-17, 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"/>

User avatar
gepus
Keeps coming back
Keeps coming back
Posts: 943
Joined: 2017-12-14, 12:59

Re: Google search

Unread post by gepus » 2018-08-17, 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 2018-08-17, 00:24, edited 2 times in total.

Locked