<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.webos-internals.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Jrfougere</id>
	<title>WebOS Internals - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.webos-internals.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Jrfougere"/>
	<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/wiki/Special:Contributions/Jrfougere"/>
	<updated>2026-04-14T22:17:15Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.35.1</generator>
	<entry>
		<id>http://wiki.webos-internals.org/index.php?title=Patch_Browser_Global_Search_Addons&amp;diff=4397</id>
		<title>Patch Browser Global Search Addons</title>
		<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/index.php?title=Patch_Browser_Global_Search_Addons&amp;diff=4397"/>
		<updated>2009-08-15T21:47:36Z</updated>

		<summary type="html">&lt;p&gt;Jrfougere: Changed &amp;quot;keymap&amp;quot; to &amp;quot;keyword&amp;quot; in title and throughout.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{template:patch}}&lt;br /&gt;
This example adds a reddit.com option to the global search.  You can add other sites.  A list of all such sites along with associated graphics is available at [[Patch Browser Global Search Addons Collection| all available 'universal search' images and search links]].&lt;br /&gt;
&lt;br /&gt;
'''NOTE''' Make sure you put all your addons BEFORE twitter, if they are after it will not work properly!!&lt;br /&gt;
&lt;br /&gt;
'''0. [[Portal:Accessing_Linux|Access Linux]], then enable write access:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;mount -o remount,rw /&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''1. Edit the following file:'''&lt;br /&gt;
/usr/lib/luna/system/luna-applauncher/app/controllers/global-search-assistant.js&lt;br /&gt;
&lt;br /&gt;
Find this code and modify it as such (be sure to use the correct search link):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
 this.URLs = {&lt;br /&gt;
                'google':$L(&amp;quot;www.google.com/m/search?client=ms-palm-webOS&amp;amp;channel=iss&amp;amp;q=&amp;quot;),&lt;br /&gt;
                'wikipedia':$L(&amp;quot;http://en.wikipedia.org/wiki/Special:Search/&amp;quot;),&lt;br /&gt;
                'reddit': $L(&amp;quot;http://www.reddit.com/search?q=&amp;quot;),&lt;br /&gt;
                'twitter': $L(&amp;quot;http://search.twitter.com/search?q=&amp;quot;)&lt;br /&gt;
                &lt;br /&gt;
&lt;br /&gt;
        };&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Be sure to note the lack of a comma at the end of the line beginning with 'twitter'. URL codes for additional search engines found [[Patch Browser Global Search Addons Collection| here]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''2. In the same file -- you must also add &amp;quot;$('reddit').removeClassName('selected');&amp;quot; to this function:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
 clearSearch: function() {&lt;br /&gt;
                if (this.delayShowAppsConatactsTimeout)&lt;br /&gt;
                        window.clearTimeout(this.delayShowAppsConatactsTimeout);&lt;br /&gt;
                this.currentFilter = &amp;quot;&amp;quot;;&lt;br /&gt;
                this.searchExplicitlyExpanded = false;&lt;br /&gt;
                this.noMatches = false;&lt;br /&gt;
                this.hideContactsDiv();&lt;br /&gt;
                this.launcherIconsDiv.hide();&lt;br /&gt;
                this.dialDiv.hide();&lt;br /&gt;
                this.numberDiv.hide();&lt;br /&gt;
                this.webDrawer.showWeb =  false ;&lt;br /&gt;
                this.controller.modelChanged(this.webDrawer);&lt;br /&gt;
                this.expandedSearchDrawer.showExpanded = false;&lt;br /&gt;
                this.controller.modelChanged(this.expandedSearchDrawer);&lt;br /&gt;
                this.searchApps.clear();&lt;br /&gt;
                $('google').removeClassName('selected');&lt;br /&gt;
                $('map').removeClassName('selected');&lt;br /&gt;
                $('wikipedia').removeClassName('selected');&lt;br /&gt;
                $('reddit').removeClassName('selected');&lt;br /&gt;
                $('twitter').removeClassName('selected');&lt;br /&gt;
                $('web').removeClassName('selected');&lt;br /&gt;
                if (this.controller.get('searchterm')) {&lt;br /&gt;
                        this.controller.get('searchterm').mojo.setText(&amp;quot;&amp;quot;);&lt;br /&gt;
                        this.controller.get('searchterm').mojo.blur();&lt;br /&gt;
                }&lt;br /&gt;
                this.gpsInfo = undefined;&lt;br /&gt;
        },&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''3. Edit the following file:'''&lt;br /&gt;
/usr/lib/luna/system/luna-applauncher/app/views/global-search/expanded-searches-div.html&lt;br /&gt;
&lt;br /&gt;
Modify the code to add a new div:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
&amp;lt;div id='expanded_searches_drawer' x-mojo-element=&amp;quot;Drawer&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;div class=&amp;quot;palm-row&amp;quot; id=&amp;quot;google&amp;quot; name=&amp;quot;search-identifier&amp;quot; x-mojo-tap-highlight=&amp;quot;persistent&amp;quot;&amp;gt;&lt;br /&gt;
                &amp;lt;div class=&amp;quot;palm-row-wrapper&amp;quot;&amp;gt;&lt;br /&gt;
                        &amp;lt;div class=&amp;quot;search-google&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
                &amp;lt;/div&amp;gt;&lt;br /&gt;
        &amp;lt;/div&amp;gt;&lt;br /&gt;
        &amp;lt;div class=&amp;quot;palm-row&amp;quot; id=&amp;quot;map&amp;quot; name=&amp;quot;search-identifier&amp;quot; x-mojo-tap-highlight=&amp;quot;persistent&amp;quot;&amp;gt;&lt;br /&gt;
                &amp;lt;div class=&amp;quot;palm-row-wrapper&amp;quot;&amp;gt;&lt;br /&gt;
                        &amp;lt;div class=&amp;quot;search-maps&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
                &amp;lt;/div&amp;gt;&lt;br /&gt;
        &amp;lt;/div&amp;gt;&lt;br /&gt;
        &amp;lt;div class=&amp;quot;palm-row&amp;quot; id=&amp;quot;wikipedia&amp;quot; name=&amp;quot;search-identifier&amp;quot; x-mojo-tap-highlight=&amp;quot;persistent&amp;quot;&amp;gt;&lt;br /&gt;
                &amp;lt;div class=&amp;quot;palm-row-wrapper&amp;quot;&amp;gt;&lt;br /&gt;
                        &amp;lt;div class=&amp;quot;search-wikipedia&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
                &amp;lt;/div&amp;gt;&lt;br /&gt;
        &amp;lt;/div&amp;gt;&lt;br /&gt;
        &amp;lt;div class=&amp;quot;palm-row&amp;quot; id=&amp;quot;reddit&amp;quot; name=&amp;quot;search-identifier&amp;quot; x-mojo-tap-highlight=&amp;quot;persistent&amp;quot;&amp;gt;&lt;br /&gt;
                &amp;lt;div class=&amp;quot;palm-row-wrapper&amp;quot;&amp;gt;&lt;br /&gt;
                        &amp;lt;div class=&amp;quot;search-reddit&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
                &amp;lt;/div&amp;gt;&lt;br /&gt;
        &amp;lt;/div&amp;gt;&lt;br /&gt;
        &amp;lt;div class=&amp;quot;palm-row&amp;quot; id=&amp;quot;twitter&amp;quot; name=&amp;quot;search-identifier&amp;quot; x-mojo-tap-highlight=&amp;quot;persistent&amp;quot;&amp;gt;&lt;br /&gt;
                &amp;lt;div class=&amp;quot;palm-row-wrapper&amp;quot;&amp;gt;&lt;br /&gt;
                        &amp;lt;div class=&amp;quot;search-twitter&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
                &amp;lt;/div&amp;gt;&lt;br /&gt;
        &amp;lt;/div&amp;gt;&lt;br /&gt;
        &amp;lt;div id='web_drawer' x-mojo-element=&amp;quot;Drawer&amp;quot;&amp;gt;&lt;br /&gt;
                &amp;lt;div class=&amp;quot;palm-row last&amp;quot; id=&amp;quot;web&amp;quot; name=&amp;quot;search-identifier&amp;quot; x-mojo-tap-highlight=&amp;quot;persistent&amp;quot;&amp;gt;&lt;br /&gt;
                        &amp;lt;div class=&amp;quot;palm-row-wrapper&amp;quot;&amp;gt;&lt;br /&gt;
                                &amp;lt;div class=&amp;quot;title search-url truncating-text&amp;quot; id=&amp;quot;webtext&amp;quot;&amp;gt;#{filterText}&amp;lt;/div&amp;gt;&lt;br /&gt;
                        &amp;lt;/div&amp;gt;&lt;br /&gt;
                &amp;lt;/div&amp;gt;&lt;br /&gt;
        &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''4. Edit the following file:'''&lt;br /&gt;
/usr/lib/luna/system/luna-applauncher/stylesheets/global-search.css&lt;br /&gt;
&lt;br /&gt;
Add the following class to the css file:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
.palm-group.search .search-reddit {&lt;br /&gt;
                width: 100%;&lt;br /&gt;
                height: 52px;&lt;br /&gt;
                background: url(../images/search-reddit.png) center center no-repeat;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''5. Finally, you need to create a png image (ideally 200x44, but any size up to 300x44 should work) with a transparent background and the logo of your choice. Add it to the path below making sure the name matches the css class, reboot, and enjoy!'''&lt;br /&gt;
/usr/lib/luna/system/luna-applauncher/images&lt;br /&gt;
&lt;br /&gt;
'''6. Remount file system as read-only:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;mount -o remount,ro /	&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''7. Disconnect and reboot your Pre with Orange-Sym-R&lt;br /&gt;
&lt;br /&gt;
Here is the image I used:&lt;br /&gt;
&lt;br /&gt;
[[Image:Reddit.png]]&lt;br /&gt;
&lt;br /&gt;
(See [[Patch Browser Global Search Addons Collection| all available 'universal search' images and search links]].)&lt;br /&gt;
&lt;br /&gt;
And here is the end result!&lt;br /&gt;
&lt;br /&gt;
[[Image:global-search.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
== [Optional] Adding Keywords for Search Engines ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It is also possible to tweak global-search-assistant.js to allow for firefox-like &amp;quot;keywords&amp;quot; for search engines.  Essentially, instead of typing in for example &amp;quot;dogs&amp;quot; then clicking google or youtube or wikipedia, etc, you can just type in &amp;quot;g dogs&amp;quot; or &amp;quot;yt dogs&amp;quot; or &amp;quot;w dogs&amp;quot; or whatever you would like to use.  Here is what you do:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the &amp;quot;case 'search':&amp;quot; section at the end of global-search-assistant.js, just add these lines for the first additional search engine you would like to use:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
++	if(this.currentFilter.substr(0,3) == &amp;quot;nf &amp;quot;) {&lt;br /&gt;
++	        this.launchBrowser(this.URLs['netflix'] + encodeURIComponent(this.currentFilter.substring(3)));&lt;br /&gt;
++      }&lt;br /&gt;
++	else {&lt;br /&gt;
		this.launchBrowser(this.URLs['google'] + encodeURIComponent(this.currentFilter));&lt;br /&gt;
++	}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After that you can just add statements like this for each additional search engine (replacing the parameters for each search engine as discussed below):&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
++	if(this.currentFilter.substr(0,3) == &amp;quot;nf &amp;quot;) {&lt;br /&gt;
++	        this.launchBrowser(this.URLs['netflix'] + encodeURIComponent(this.currentFilter.substring(3)));&lt;br /&gt;
++      }&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Essentially what it's doing is checking to see if the beginning of your search begins with the letters &amp;quot;nf &amp;quot; (including the space).  If the search does, then it strips the &amp;quot;nf &amp;quot; and opens the browser to the search results page.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For each search engine you use, you may need to change 3 parameters:&lt;br /&gt;
&lt;br /&gt;
'''Parameter 1:'''&lt;br /&gt;
First is the number &amp;quot;3&amp;quot; in &amp;quot;this.currentFilter.substr(0,3)&amp;quot;.  This variable is used to check if you are using a keyword.  If you are not using a keymap, for example if you do a global search for &amp;quot;fred&amp;quot; it will work as normal, just like in firefox.  The number 3 is used because there are 3 characters in &amp;quot;nf &amp;quot;.  If there are only two character in your search, such as for example &amp;quot;d &amp;quot; for a dictionary.com search, the number would be &amp;quot;2&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
'''Parameter 2:'''&lt;br /&gt;
Second, &amp;quot;this.URLs['netflix']&amp;quot; needs to be changed to whatever search engine you're using.  There needs to be an existing this.URL for your search (see top of global-search-assistant.js for a list of search engines).  You can add new ones using the methods shown earlier in this post.  I would also imagine that you could just type in the search url instead of &amp;quot;this.URLs['netflix']&amp;quot; but I haven't tried that.&lt;br /&gt;
&lt;br /&gt;
'''Parameter 3:'''&lt;br /&gt;
Third, the number &amp;quot;3&amp;quot; in &amp;quot;this.currentFilter.substring(3)&amp;quot; may need to be changed similar to above.  This function tells you how many characters to trim off the front so if you search for example for &amp;quot;nf goodfellas&amp;quot;, it will know to cut off the &amp;quot;nf &amp;quot;, leaving you only with &amp;quot;goodfellas&amp;quot;.  If you're using a bigger or smaller keyword (such as &amp;quot;g &amp;quot; for google or &amp;quot;dict &amp;quot; for dictionary, you'll have to change that number.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
And that's it.  The cool thing about this is you don't need to have a specific picture for each search... you can just type.&lt;/div&gt;</summary>
		<author><name>Jrfougere</name></author>
	</entry>
	<entry>
		<id>http://wiki.webos-internals.org/index.php?title=Patch_Browser_Global_Search_Addons&amp;diff=4395</id>
		<title>Patch Browser Global Search Addons</title>
		<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/index.php?title=Patch_Browser_Global_Search_Addons&amp;diff=4395"/>
		<updated>2009-08-15T21:43:32Z</updated>

		<summary type="html">&lt;p&gt;Jrfougere: Adds keymapping hack&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{template:patch}}&lt;br /&gt;
This example adds a reddit.com option to the global search.  You can add other sites.  A list of all such sites along with associated graphics is available at [[Patch Browser Global Search Addons Collection| all available 'universal search' images and search links]].&lt;br /&gt;
&lt;br /&gt;
'''NOTE''' Make sure you put all your addons BEFORE twitter, if they are after it will not work properly!!&lt;br /&gt;
&lt;br /&gt;
'''0. [[Portal:Accessing_Linux|Access Linux]], then enable write access:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;mount -o remount,rw /&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''1. Edit the following file:'''&lt;br /&gt;
/usr/lib/luna/system/luna-applauncher/app/controllers/global-search-assistant.js&lt;br /&gt;
&lt;br /&gt;
Find this code and modify it as such (be sure to use the correct search link):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
 this.URLs = {&lt;br /&gt;
                'google':$L(&amp;quot;www.google.com/m/search?client=ms-palm-webOS&amp;amp;channel=iss&amp;amp;q=&amp;quot;),&lt;br /&gt;
                'wikipedia':$L(&amp;quot;http://en.wikipedia.org/wiki/Special:Search/&amp;quot;),&lt;br /&gt;
                'reddit': $L(&amp;quot;http://www.reddit.com/search?q=&amp;quot;),&lt;br /&gt;
                'twitter': $L(&amp;quot;http://search.twitter.com/search?q=&amp;quot;)&lt;br /&gt;
                &lt;br /&gt;
&lt;br /&gt;
        };&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Be sure to note the lack of a comma at the end of the line beginning with 'twitter'. URL codes for additional search engines found [[Patch Browser Global Search Addons Collection| here]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''2. In the same file -- you must also add &amp;quot;$('reddit').removeClassName('selected');&amp;quot; to this function:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
 clearSearch: function() {&lt;br /&gt;
                if (this.delayShowAppsConatactsTimeout)&lt;br /&gt;
                        window.clearTimeout(this.delayShowAppsConatactsTimeout);&lt;br /&gt;
                this.currentFilter = &amp;quot;&amp;quot;;&lt;br /&gt;
                this.searchExplicitlyExpanded = false;&lt;br /&gt;
                this.noMatches = false;&lt;br /&gt;
                this.hideContactsDiv();&lt;br /&gt;
                this.launcherIconsDiv.hide();&lt;br /&gt;
                this.dialDiv.hide();&lt;br /&gt;
                this.numberDiv.hide();&lt;br /&gt;
                this.webDrawer.showWeb =  false ;&lt;br /&gt;
                this.controller.modelChanged(this.webDrawer);&lt;br /&gt;
                this.expandedSearchDrawer.showExpanded = false;&lt;br /&gt;
                this.controller.modelChanged(this.expandedSearchDrawer);&lt;br /&gt;
                this.searchApps.clear();&lt;br /&gt;
                $('google').removeClassName('selected');&lt;br /&gt;
                $('map').removeClassName('selected');&lt;br /&gt;
                $('wikipedia').removeClassName('selected');&lt;br /&gt;
                $('reddit').removeClassName('selected');&lt;br /&gt;
                $('twitter').removeClassName('selected');&lt;br /&gt;
                $('web').removeClassName('selected');&lt;br /&gt;
                if (this.controller.get('searchterm')) {&lt;br /&gt;
                        this.controller.get('searchterm').mojo.setText(&amp;quot;&amp;quot;);&lt;br /&gt;
                        this.controller.get('searchterm').mojo.blur();&lt;br /&gt;
                }&lt;br /&gt;
                this.gpsInfo = undefined;&lt;br /&gt;
        },&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''3. Edit the following file:'''&lt;br /&gt;
/usr/lib/luna/system/luna-applauncher/app/views/global-search/expanded-searches-div.html&lt;br /&gt;
&lt;br /&gt;
Modify the code to add a new div:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
&amp;lt;div id='expanded_searches_drawer' x-mojo-element=&amp;quot;Drawer&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;div class=&amp;quot;palm-row&amp;quot; id=&amp;quot;google&amp;quot; name=&amp;quot;search-identifier&amp;quot; x-mojo-tap-highlight=&amp;quot;persistent&amp;quot;&amp;gt;&lt;br /&gt;
                &amp;lt;div class=&amp;quot;palm-row-wrapper&amp;quot;&amp;gt;&lt;br /&gt;
                        &amp;lt;div class=&amp;quot;search-google&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
                &amp;lt;/div&amp;gt;&lt;br /&gt;
        &amp;lt;/div&amp;gt;&lt;br /&gt;
        &amp;lt;div class=&amp;quot;palm-row&amp;quot; id=&amp;quot;map&amp;quot; name=&amp;quot;search-identifier&amp;quot; x-mojo-tap-highlight=&amp;quot;persistent&amp;quot;&amp;gt;&lt;br /&gt;
                &amp;lt;div class=&amp;quot;palm-row-wrapper&amp;quot;&amp;gt;&lt;br /&gt;
                        &amp;lt;div class=&amp;quot;search-maps&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
                &amp;lt;/div&amp;gt;&lt;br /&gt;
        &amp;lt;/div&amp;gt;&lt;br /&gt;
        &amp;lt;div class=&amp;quot;palm-row&amp;quot; id=&amp;quot;wikipedia&amp;quot; name=&amp;quot;search-identifier&amp;quot; x-mojo-tap-highlight=&amp;quot;persistent&amp;quot;&amp;gt;&lt;br /&gt;
                &amp;lt;div class=&amp;quot;palm-row-wrapper&amp;quot;&amp;gt;&lt;br /&gt;
                        &amp;lt;div class=&amp;quot;search-wikipedia&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
                &amp;lt;/div&amp;gt;&lt;br /&gt;
        &amp;lt;/div&amp;gt;&lt;br /&gt;
        &amp;lt;div class=&amp;quot;palm-row&amp;quot; id=&amp;quot;reddit&amp;quot; name=&amp;quot;search-identifier&amp;quot; x-mojo-tap-highlight=&amp;quot;persistent&amp;quot;&amp;gt;&lt;br /&gt;
                &amp;lt;div class=&amp;quot;palm-row-wrapper&amp;quot;&amp;gt;&lt;br /&gt;
                        &amp;lt;div class=&amp;quot;search-reddit&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
                &amp;lt;/div&amp;gt;&lt;br /&gt;
        &amp;lt;/div&amp;gt;&lt;br /&gt;
        &amp;lt;div class=&amp;quot;palm-row&amp;quot; id=&amp;quot;twitter&amp;quot; name=&amp;quot;search-identifier&amp;quot; x-mojo-tap-highlight=&amp;quot;persistent&amp;quot;&amp;gt;&lt;br /&gt;
                &amp;lt;div class=&amp;quot;palm-row-wrapper&amp;quot;&amp;gt;&lt;br /&gt;
                        &amp;lt;div class=&amp;quot;search-twitter&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
                &amp;lt;/div&amp;gt;&lt;br /&gt;
        &amp;lt;/div&amp;gt;&lt;br /&gt;
        &amp;lt;div id='web_drawer' x-mojo-element=&amp;quot;Drawer&amp;quot;&amp;gt;&lt;br /&gt;
                &amp;lt;div class=&amp;quot;palm-row last&amp;quot; id=&amp;quot;web&amp;quot; name=&amp;quot;search-identifier&amp;quot; x-mojo-tap-highlight=&amp;quot;persistent&amp;quot;&amp;gt;&lt;br /&gt;
                        &amp;lt;div class=&amp;quot;palm-row-wrapper&amp;quot;&amp;gt;&lt;br /&gt;
                                &amp;lt;div class=&amp;quot;title search-url truncating-text&amp;quot; id=&amp;quot;webtext&amp;quot;&amp;gt;#{filterText}&amp;lt;/div&amp;gt;&lt;br /&gt;
                        &amp;lt;/div&amp;gt;&lt;br /&gt;
                &amp;lt;/div&amp;gt;&lt;br /&gt;
        &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''4. Edit the following file:'''&lt;br /&gt;
/usr/lib/luna/system/luna-applauncher/stylesheets/global-search.css&lt;br /&gt;
&lt;br /&gt;
Add the following class to the css file:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
.palm-group.search .search-reddit {&lt;br /&gt;
                width: 100%;&lt;br /&gt;
                height: 52px;&lt;br /&gt;
                background: url(../images/search-reddit.png) center center no-repeat;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''5. Finally, you need to create a png image (ideally 200x44, but any size up to 300x44 should work) with a transparent background and the logo of your choice. Add it to the path below making sure the name matches the css class, reboot, and enjoy!'''&lt;br /&gt;
/usr/lib/luna/system/luna-applauncher/images&lt;br /&gt;
&lt;br /&gt;
'''6. Remount file system as read-only:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;mount -o remount,ro /	&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''7. Disconnect and reboot your Pre with Orange-Sym-R&lt;br /&gt;
&lt;br /&gt;
Here is the image I used:&lt;br /&gt;
&lt;br /&gt;
[[Image:Reddit.png]]&lt;br /&gt;
&lt;br /&gt;
(See [[Patch Browser Global Search Addons Collection| all available 'universal search' images and search links]].)&lt;br /&gt;
&lt;br /&gt;
And here is the end result!&lt;br /&gt;
&lt;br /&gt;
[[Image:global-search.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
== [Optional] Adding Keymaps for Search Engines ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It is also possible to tweak global-search-assistant.js to allow for firefox-like &amp;quot;keymapping&amp;quot; for sites.  Essentially, instead of typing in for example &amp;quot;dogs&amp;quot; then clicking google or youtube or wikipedia, etc, you can just type in &amp;quot;g dogs&amp;quot; or &amp;quot;yt dogs&amp;quot; or &amp;quot;w dogs&amp;quot; or whatever you would like to use.  Here is what you do:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the &amp;quot;case 'search':&amp;quot; section at the end of global-search-assistant.js, just add these lines for the first additional search engine you would like to use:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
++	if(this.currentFilter.substr(0,3) == &amp;quot;nf &amp;quot;) {&lt;br /&gt;
++	        this.launchBrowser(this.URLs['netflix'] + encodeURIComponent(this.currentFilter.substring(3)));&lt;br /&gt;
++      }&lt;br /&gt;
++	else {&lt;br /&gt;
		this.launchBrowser(this.URLs['google'] + encodeURIComponent(this.currentFilter));&lt;br /&gt;
++	}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After that you can just add statements like this for each additional search engine (replacing the parameters for each search engine as discussed below):&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
++	if(this.currentFilter.substr(0,3) == &amp;quot;nf &amp;quot;) {&lt;br /&gt;
++	        this.launchBrowser(this.URLs['netflix'] + encodeURIComponent(this.currentFilter.substring(3)));&lt;br /&gt;
++      }&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Essentially what it's doing is checking to see if the beginning of your search begins with the letters &amp;quot;nf &amp;quot; (including the space).  If the search does, then it strips the &amp;quot;nf &amp;quot; and opens the browser to the search results page.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For each search engine you use, you may need to change 3 parameters:&lt;br /&gt;
&lt;br /&gt;
'''Parameter 1:'''&lt;br /&gt;
First is the number &amp;quot;3&amp;quot; in &amp;quot;this.currentFilter.substr(0,3)&amp;quot;.  This variable is used to check if you are using a keymap.  If you are not using a keymap, for example if you do a global search for &amp;quot;fred&amp;quot; it will work as normal, just like in firefox.  The number 3 is used because there are 3 characters in &amp;quot;nf &amp;quot;.  If there are only two character in your search, such as for example &amp;quot;d &amp;quot; for a dictionary.com search, the number would be &amp;quot;2&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
'''Parameter 2:'''&lt;br /&gt;
Second, &amp;quot;this.URLs['netflix']&amp;quot; needs to be changed to whatever search engine you're using.  There needs to be an existing this.URL for your search (see top of global-search-assistant.js for a list of search engines).  You can add new ones using the methods shown earlier in this post.  I would also imagine that you could just type in the search url instead of &amp;quot;this.URLs['netflix']&amp;quot; but I haven't tried that.&lt;br /&gt;
&lt;br /&gt;
'''Parameter 3:'''&lt;br /&gt;
Third, the number &amp;quot;3&amp;quot; in &amp;quot;this.currentFilter.substring(3)&amp;quot; may need to be changed similar to above.  This function tells you how many characters to trim off the front so if you search for example for &amp;quot;nf goodfellas&amp;quot;, it will know to cut off the &amp;quot;nf &amp;quot;, leaving you only with &amp;quot;goodfellas&amp;quot;.  If you're using a bigger or smaller keymap (such as &amp;quot;g &amp;quot; for google or &amp;quot;dict &amp;quot; for dictionary, you'll have to change that number.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
And that's it.  The cool thing about this is you don't need to have a specific picture for each search... you can just type.&lt;/div&gt;</summary>
		<author><name>Jrfougere</name></author>
	</entry>
	<entry>
		<id>http://wiki.webos-internals.org/index.php?title=Patch_Email_Fix_Broken_Formatting&amp;diff=2688</id>
		<title>Patch Email Fix Broken Formatting</title>
		<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/index.php?title=Patch_Email_Fix_Broken_Formatting&amp;diff=2688"/>
		<updated>2009-07-27T22:40:00Z</updated>

		<summary type="html">&lt;p&gt;Jrfougere: Post 1.1 update&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;After webOS 1.1, this fix is no longer necessary.  Here it is anyway though:&lt;br /&gt;
&lt;br /&gt;
---&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
There is a well known problem with the Pre's e-mail handling of forward and reply messages. (see http://forums.palm.com/palm/board/message?board.id=webossoftware&amp;amp;thread.id=884&amp;amp;view=by_date_ascending&amp;amp;page=1)&lt;br /&gt;
&lt;br /&gt;
For example:&lt;br /&gt;
&lt;br /&gt;
with the pre - if I reply to an email all the formatting is lost.  eg -get an email, I reply to that email, all the people that I reply to lose all formatting when they view the message that I sent in reply - it is like all the hard returns are lost and they see just one string of content..  Do others experience this issue?  &lt;br /&gt;
&lt;br /&gt;
---&lt;br /&gt;
&lt;br /&gt;
Here is a simple two-line fix for this annoying problem:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
--- /usr/palm/applications/com.palm.app.email/app/controllers/compose-assistant.js.sav  Thu Jul  9 22:40:20 2009&lt;br /&gt;
+++ /usr/palm/applications/com.palm.app.email/app/controllers/compose-assistant.js      Sat Jul 11 23:54:43 2009&lt;br /&gt;
@@ -602,6 +602,8 @@&lt;br /&gt;
                        originalText = originalText.slice(splitIndex);&lt;br /&gt;
                }&lt;br /&gt;
        }&lt;br /&gt;
+       else&lt;br /&gt;
+          originalText = originalText.gsub(&amp;quot;\n&amp;quot;,&amp;quot;&amp;lt;br/&amp;gt;&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
        // Truncate to 100K if the message is too long.&lt;br /&gt;
        // cutting it off conservatively).&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Thanks halula from the Palm forums for the solution.  The full answer post is available at http://forums.palm.com/palm/board/message?board.id=webossoftware&amp;amp;message.id=5283#M5283&lt;/div&gt;</summary>
		<author><name>Jrfougere</name></author>
	</entry>
</feed>