The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 1,510 other followers

Preventing sites to add themselves to the Google Chrome search engine list

Posted by jpluimers on 2019/01/11

For a long time, sites have been able to add themselves to the search engine list in Google Chrome.

 

The last one is my own, but hundreds of them are not.

I never noticed this until I needed to add some custom search engine strings to the list and found the UI is obnoxiously slow when there are hundreds of entries in that list.

It’s like the cookies editor: the editing speed decreases exponentially with the number of entries in that list.

The feature is called Tab to Search, apparently is intentional, based on the OpenSearch standard and well documented:

Many people dislike it though:

There are various ways around it documented in the last link.

This is the one I liked best: [WayBackDon’t add custom search engines – Chrome Web Store.

Via: [WayBack] Google Chrome: Remove all ‘Other Search Engines’ – Super User who also pointed me to the script below the signature ([WayBack] Remove chrome “other search engines” · GitHub), which likely needs this change:

penguin020 commented on Dec 22, 2017  

Just in case you are trying to use this with the (keep) mechanism, I think that the engine.modelIndex can get muddled if you do not refresh between runs of this script, possibly deleting engines you wish to keep.

UPDATE: if you reverse sort by modelIndex, this problem is obviated.

Add

val.others.sort(function (a, b) { return b.modelIndex - a.modelIndex; });

just after the .then.

–jeroen

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

 
%d bloggers like this: