webOS Nation Forums >  Homebrew >  webOS patches > User-defined commands for Universal Search Command Line Patch
User-defined commands for Universal Search Command Line Patch

  Reply
 
LinkBack Thread Tools Display Modes
Old 05/20/2010, 01:32 AM   #1 (permalink)
Member
 
Join Date: Jun 2009
Location: Davis, CA
Posts: 380
Likes Received: 12
Thanks: 202
Thanked 255 Times in 128 Posts
Default User-defined commands for Universal Search Command Line Patch

The Universal Search Command Line patch is one of my favorite patches. Dsevil has made it a necessary part of my WebOS experience. I am constantly using commands such as .gc for garbage collection, .qmemo for memos, and .az for amazon searches.

The patch allows for the creation of user-defined commands by placing a file called uscl.json in the root directory.

My question to the community is, how do you take advantage of user-defined commands? What do your commands do? If you have something you want to tell us about, please post the code you used.

At this point I haven't done anything with it... so I'm eagerly anticipating any ideas others have.

Link to sample command line code from Dsevil's website: http://webonastick.com/uscl/feeds/uscl.json.txt

Last edited by runukraine; 05/20/2010 at 01:43 AM.
runukraine is offline   Reply With Quote
Thanked By: JHNSTN00
Old 05/21/2010, 05:09 AM   #2 (permalink)
Member
 
Join Date: Mar 2010
Posts: 148
Likes Received: 0
Thanks: 10
Thanked 27 Times in 21 Posts
Default

I added this:

Code:
		"ixquick": {
			"title": "Ixquick",
			"usage": "<var>keywords</var>",
			"example": "search engine privacy",
			"description": "Search Ixquick.com",
			"url": "https://us.ixquick.com/do/metasearch.pl?cat=web&cmd=process_search&language=english&enginecount=8&query=",
			"noArguments": {
				"url": "https://us.ixquick.com/"
			}
		},
		"ix": "ixquick",
...to the sample .json file. It does a secure (https) ixquick.com search on the keywords you enter.
Analog is offline   Reply With Quote
Thanked By: runukraine
Old 05/21/2010, 08:59 AM   #3 (permalink)
Member
 
Audemars02's Avatar
 
Join Date: May 2009
Posts: 1,487
Likes Received: 13
Thanks: 252
Thanked 405 Times in 238 Posts
Default

I LOVE this patch too..one of my favorites. and I added the following to get

1) Youtube mobile search
2) Fatwallet search (to find sites that give you cash back)
3) tv.com

Code:
{
	"entries": {
		"yt": {
			"title": "YouTube",
			"usage": "<var>keywords</var>",
			"example": "palm pre review",
			"description": "Find videos on youtube.com.",
			"url": "http://m.youtube.com/results?is_adult=True&hl=en&gl=US&client=mv-google&q=",
			"noArguments": {
				"url": "http://m.youtube.com/"
			}
		},
		"youtube": "yt",
		"fw": {
			"title": "Fatwallet",
			"usage": "<var>keywords</var>",
			"example": "Palm",
			"description": "Find deals on fatwallet.com.",
			"url": "http://www.fatwallet.com/coupons-cash-back/#/search=",
			"noArguments": {
				"url": "http://www.fatwallet.com/coupons-cash-back/"
			}
		},
		"fatwallet": "fw",
		"tv": {
			"title": "TV.com",
			"usage": "<var>keywords</var>",
			"example": "highlander",
			"description": "Find articles on TV.com.",
			"url": "http://www.tv.com/search.php?type=11&stype=all&tag=search%3Bfrontdoor&qs=",
			"noArguments": {
				"url": "http://www.tv.com/"
			}
		}
	}
}
__________________
I am the creator of the PalmSpot entry “webOS Does, and Does, and Does Some More”, writes Save/Restore scripts and helps manage the script feed, and now writes PreCentral's Tip of the Day

Got a good tip for PreCentral's Tip of the Day? Please send me a PM or use the Contact Us form and select "Suggest a tip"

Like any of my work:
Audemars02 is offline   Reply With Quote
Thanked By: runukraine
Old 05/21/2010, 02:44 PM   #4 (permalink)
Member
 
Join Date: Jun 2009
Location: Davis, CA
Posts: 380
Likes Received: 12
Thanks: 202
Thanked 255 Times in 128 Posts
Default

Quote:
Originally Posted by Analog View Post
I added this:

...to the sample .json file. It does a secure (https) ixquick.com search on the keywords you enter.
Thank you! Had no clue what ixquick was... now I think I'm incorporating it into my regular life.

Quote:
Originally Posted by Audemars02 View Post
I LOVE this patch too..one of my favorites. and I added the following to get

1) Youtube mobile search
2) Fatwallet search (to find sites that give you cash back)
3) tv.com
...and Audemars thank you! Never heard of Fatwallet before... you've just gone and impacted my bottom-line.

Last edited by runukraine; 05/21/2010 at 05:56 PM.
runukraine is offline   Reply With Quote
Old 05/21/2010, 06:12 PM   #5 (permalink)
Member
 
Join Date: Jun 2009
Location: Davis, CA
Posts: 380
Likes Received: 12
Thanks: 202
Thanked 255 Times in 128 Posts
Default

Anyone have an idea of how far you can go using this uscl.json file to manipulate your phone? Is it limited to site-specific searches, or can you do other things like have it open up a specific app and modify data in it. Could I, as an example, create a .qflash command which creates a new flash card in my flash card app without opening it?
runukraine is offline   Reply With Quote
Old 05/30/2010, 02:54 PM   #6 (permalink)
Member
 
Join Date: May 2009
Posts: 37
Likes Received: 0
Thanks: 11
Thanked 4 Times in 4 Posts
Default

Quote:
Originally Posted by runukraine View Post
The Universal Search Command Line patch is one of my favorite patches. Dsevil has made it a necessary part of my WebOS experience. I am constantly using commands such as .gc for garbage collection, .qmemo for memos, and .az for amazon searches.

The patch allows for the creation of user-defined commands by placing a file called uscl.json in the root directory.

My question to the community is, how do you take advantage of user-defined commands? What do your commands do? If you have something you want to tell us about, please post the code you used.

At this point I haven't done anything with it... so I'm eagerly anticipating any ideas others have.

Link to sample command line code from Dsevil's website: http://webonastick.com/uscl/feeds/uscl.json.txt
I emailed uscl.json to pre, but it's a txt file. Will that work, tried .update then tried search but phone does not recognize my command. .pc or .pre to search precentral.net
__________________
Treo 750 WM6.0/6.1/6.5 > AT&T Palm Pre > Plus Treo 750 | WM 6.1
JHNSTN00 is offline   Reply With Quote
Old 11/16/2010, 10:31 AM   #7 (permalink)
Member
 
Join Date: Jun 2010
Posts: 45
Likes Received: 0
Thanks: 2
Thanked 2 Times in 2 Posts
Default

Hey,
I recently discovered this patch. It's genius!

How do I edit existing shortcuts? I'm used to have shorter ones in the FF url-field. For example
i for imdb
gm for google maps

etc.
splashote is offline   Reply With Quote
Old 11/16/2010, 10:34 AM   #8 (permalink)
Member
 
patricksmangan's Avatar
 
Join Date: Oct 2009
Posts: 1,239
Likes Received: 2
Thanks: 175
Thanked 83 Times in 71 Posts
Default

is .gc built in? I might install it even if I only remember that for garbage collect
patricksmangan is offline   Reply With Quote
Reply

 

Thread Tools
Display Modes



 


Content Relevant URLs by vBSEO 3.6.0