webOS Nation Forums >  Homebrew >  webOS patches > [Patch] Disable "Type to Add Search Engine" Browser Notification
[Patch] Disable "Type to Add Search Engine" Browser Notification

  Reply
Like Tree1Likes
  • 1 Post By Abyssul

 
LinkBack Thread Tools Display Modes
Old 10/24/2011, 04:05 PM   #1 (permalink)
webOS Enthusiast
 
Abyssul's Avatar
 
Join Date: Jul 2009
Posts: 2,132
Likes Received: 45
Thanks: 41
Thanked 807 Times in 433 Posts
Default [Patch] Disable "Type to Add Search Engine" Browser Notification

3.0.4 compatible. Submitted to Preware.

Modifies this file:
Code:
\usr\lib\luna\system\luna-systemui\data\SystemManagerService.js
Change this code by adding comments:
Code:
this.uiAlertsMethods["tetheringError"] = enyo.bind(this, "handleCMBTPANNotifications");
this.uiAlertsMethods["mediaFilePermissionRequest"] = enyo.bind(this, "handleMediaFilePermissionRequest");


//this.delayedOpenSearchEngineAvailable = Utils.debounce(undefined, enyo.bind(this, "handleOpenSearchEngineAvailable"), 10);

//this.uiAlertsMethods["openSearchEngineAvailable"] = this.delayedOpenSearchEngineAvailable;

this.uiAlertsMethods["macroCallEvents"] = enyo.bind(this, "handleMacroCallEvents");

//Subscribe to SystemManager service.

Disables the notification and still adds the search engine to your just type history. (Don't ask if this can be changed to not add to your history).

courtesy of the discover by surcouf_Maniac
__________________


If I helped you or you have downloaded one of my files,
then least you could do is click the "Thanks" button.
Abyssul is offline   Reply With Quote
Liked by lar3ry likes this.
Old 10/24/2011, 06:09 PM   #2 (permalink)
webOS Enthusiast
 
Abyssul's Avatar
 
Join Date: Jul 2009
Posts: 2,132
Likes Received: 45
Thanks: 41
Thanked 807 Times in 433 Posts
Default

Tell me if it works lol.
__________________


If I helped you or you have downloaded one of my files,
then least you could do is click the "Thanks" button.
Abyssul is offline   Reply With Quote
Old 10/24/2011, 06:18 PM   #3 (permalink)
Member
 
Join Date: Oct 2011
Posts: 2
Likes Received: 0
Thanks: 2
Thanked 0 Times in 0 Posts
Default

lol for me yes ;-) thx for making the patch for all here ^^
surcouf_Maniac is offline   Reply With Quote
Old 10/24/2011, 08:59 PM   #4 (permalink)
webOS Enthusiast
 
Abyssul's Avatar
 
Join Date: Jul 2009
Posts: 2,132
Likes Received: 45
Thanks: 41
Thanked 807 Times in 433 Posts
Default

Browse sites that would normally express a notification. Common ones include:

thepiratebay.org
about.com
msnbc.com
webos-internals.org
__________________


If I helped you or you have downloaded one of my files,
then least you could do is click the "Thanks" button.
Abyssul is offline   Reply With Quote
Thanked By: veda-veda
Old 10/24/2011, 10:52 PM   #5 (permalink)
Member
 
Join Date: Sep 2011
Posts: 151
Likes Received: 4
Thanks: 2
Thanked 15 Times in 14 Posts
Default

little adaption for webos 2.1.x, tested on Veer ...
Attached Files
File Type: patch disable-searchengine-notification.patch (1.6 KB, 19 views) Email Attachment
michel_ng is offline   Reply With Quote
Old 10/24/2011, 11:44 PM   #6 (permalink)
webOS Enthusiast
 
Abyssul's Avatar
 
Join Date: Jul 2009
Posts: 2,132
Likes Received: 45
Thanks: 41
Thanked 807 Times in 433 Posts
Default

Quote:
Originally Posted by michel_ng View Post
little adaption for webos 2.1.x, tested on Veer ...
1 of 2 hunks failed on my Pre2 with 2.1.0. I even tried to create one myself and it gave the same error. Hmm, probably something up with my Pre2. I wonder if it conflicts with another patch.

Edit: Conflicts with system menu framework
__________________


If I helped you or you have downloaded one of my files,
then least you could do is click the "Thanks" button.

Last edited by Abyssul; 10/24/2011 at 11:50 PM.
Abyssul is offline   Reply With Quote
Old 10/25/2011, 04:42 AM   #7 (permalink)
Member
 
Join Date: Sep 2011
Posts: 151
Likes Received: 4
Thanks: 2
Thanked 15 Times in 14 Posts
Default

Quote:
Originally Posted by Abyssul View Post
Edit: Conflicts with system menu framework
That is why i dont like any 'advanced' patches. They are not really comprehensible!



-- Sent from my Palm Veer using Forums
michel_ng is offline   Reply With Quote
Old 12/16/2011, 11:23 PM   #8 (permalink)
ccx
Member
 
Join Date: Aug 2011
Posts: 605
Likes Received: 79
Thanks: 10
Thanked 36 Times in 29 Posts
Default

...so there is no way to clear search engines that have been automatically added?
ccx is offline   Reply With Quote
Old 12/16/2011, 11:54 PM   #9 (permalink)
webOS Enthusiast
 
Abyssul's Avatar
 
Join Date: Jul 2009
Posts: 2,132
Likes Received: 45
Thanks: 41
Thanked 807 Times in 433 Posts
Default

Quote:
Originally Posted by ccx View Post
...so there is no way to clear search engines that have been automatically added?
They can't be automatically added unless you are talking about previous search engines that were manually added. Those can be cleared by clearing your browser history.

If you are talking about the default search engines like CNN and such, then there might be a way, but that would be a decent amount of work for little effect.
__________________


If I helped you or you have downloaded one of my files,
then least you could do is click the "Thanks" button.
Abyssul is offline   Reply With Quote
Reply

 

Thread Tools
Display Modes



 


Content Relevant URLs by vBSEO 3.6.0