webOS Nation Forums >  Homebrew >  webOS patches > PATCH: Hide App Vendors
PATCH: Hide App Vendors

  Reply
 
LinkBack Thread Tools Display Modes
Old 12/19/2009, 12:02 PM   #1 (permalink)
Member
 
Join Date: Jun 2009
Posts: 211
Likes Received: 0
Thanks: 28
Thanked 147 Times in 41 Posts
Default PATCH: Hide App Vendors

UPDATE
Just submitted a patch that works with webOS 1.4.5 to webos-patches.
You can download it here in the mean time:
http://webonastick.com/webos/patches/1.4.5/
(ignore the zero-byte files for other patches there.)

Based on feedback in #webos-internals I turned I Hate Brighthouse Labs into a proper patch where you decide which vendors' apps you want to hide:



It's called "Hide App Vendors" and it's available in Preware, and as a patch file for installation using webOS Quick Install or your inspection. This patch requires webOS 1.3.5, but one for webOS 1.3.1 is also available incase you're still running it

PLEASE NOTE: Yes, as evident in the screenshots, this doesn't technically *hide* the apps. It just makes them a lot harder to see. Hiding them *is* my goal, but I've encountered some difficulties. Post #9 in this thread has all the gory details.

Also, this patch has an easter egg.
__________________
I maintain the Universal Search Command Line, Hide App Vendors, and Poor Man's Twitter Client patches; the palm-rsync utility; and the rot13 web-distributed app.

I also have a twitter feed and a web site.

Last edited by dsevil; 08/11/2010 at 09:43 AM.
dsevil is offline   Reply With Quote
Old 12/19/2009, 12:31 PM   #2 (permalink)
Member
 
addiarmadar's Avatar
 
Join Date: Oct 2009
Location: USA!!! USA!!! USA!!! USA!!!
Posts: 1,353
Likes Received: 24
Thanks: 36
Thanked 187 Times in 158 Posts
Default

Thank you!
addiarmadar is offline   Reply With Quote
Old 12/19/2009, 03:10 PM   #3 (permalink)
Member
 
Rain of Lite's Avatar
 
Join Date: Nov 2009
Location: Eugene, Oregon
Posts: 35
Likes Received: 0
Thanks: 21
Thanked 2 Times in 2 Posts
Default

Quote:
[Moderator deletion]
Its better then nothing, if you followed the other threads on hiding unwanted apps, you would have seen that people are having a hard time figuring out how to hide them. dsevil has been working on this for span of a week, if my memory serves me right,

[Moderator deletion]
__________________
I heard a loud voice from the throne saying, “Behold, the dwelling place of God is with man. He will dwell with them, and they will be his people, and God himself will be with them as their God. He will wipe away every tear from their eyes, and death shall be no more, neither shall there be mourning, nor crying, nor pain anymore, for the former things have passed away.

Last edited by milominderbinder; 12/19/2009 at 04:31 PM.
Rain of Lite is offline   Reply With Quote
Old 12/19/2009, 04:00 PM   #4 (permalink)
Member
 
Rain of Lite's Avatar
 
Join Date: Nov 2009
Location: Eugene, Oregon
Posts: 35
Likes Received: 0
Thanks: 21
Thanked 2 Times in 2 Posts
Default

Quote:
[Moderator deletion]
Without this patch, you still have to somewhat read each app that is unwanted before you see that it is unwanted, then skip over it. This patch helps because you recognize what apps are unwanted much quicker then before, thus, although not hiding the apps, makes them a lot easier to ignore. I do agree that it would be nice to completely hide them, but this is a step up from the default, and whether your to proud to see that or not, is your problem, not ours.

[Moderator deletion]
__________________
I heard a loud voice from the throne saying, “Behold, the dwelling place of God is with man. He will dwell with them, and they will be his people, and God himself will be with them as their God. He will wipe away every tear from their eyes, and death shall be no more, neither shall there be mourning, nor crying, nor pain anymore, for the former things have passed away.

Last edited by milominderbinder; 12/19/2009 at 04:29 PM.
Rain of Lite is offline   Reply With Quote
Old 12/19/2009, 06:13 PM   #5 (permalink)
Member
 
Veritas06's Avatar
 
Join Date: Oct 2007
Location: Northport, NY
Posts: 610
Likes Received: 4
Thanks: 448
Thanked 133 Times in 89 Posts
Default

Thanks so much! Even the fact that they're harder to see is a big plus =]. No need to stop & look & waste time looking at Brighthouse Labs
__________________
Fix 'Hidden' SMS Conversations
PreThemer Profile
Hide Amazon MP3 Store
Veritas06 is offline   Reply With Quote
Old 12/19/2009, 06:58 PM   #6 (permalink)
Member
 
Join Date: Jun 2009
Posts: 211
Likes Received: 0
Thanks: 28
Thanked 147 Times in 41 Posts
Default

For the record, I agree with trekker's sentiments, if not his tone (I didn't get to see his posts before they got deleted.)

As I explained in my other thread, I *did* initially try to make the apps go away outright instead of just dimming them (as is done now). Your standard "display: none" trick *seems* like the simplest solution and indeed almost works, but causes display errors in the GUI once you start scrolling to where the hidden apps were. And the way the query code works is kind of goofy, in such a way that makes simply excluding unwanted apps before they're returned to the controller nontrivial.

Dimming them is the simplest solution that can possibly work, and is effective enough. And I wanted to get *something* out there. In the free software / open source community, "release early, release often" is a common mantra. I'm glad *some* people still find this useful.
__________________
I maintain the Universal Search Command Line, Hide App Vendors, and Poor Man's Twitter Client patches; the palm-rsync utility; and the rot13 web-distributed app.

I also have a twitter feed and a web site.
dsevil is offline   Reply With Quote
Old 12/19/2009, 08:12 PM   #7 (permalink)
Legend
 
Jason Robitaille's Avatar
 
Join Date: May 2005
Location: Winnipeg, MB, Canada
Posts: 3,883
Likes Received: 496
Thanks: 801
Thanked 12,956 Times in 1,495 Posts
Default

popping in late in the conversation here, but wouldn't it also be possible to filter the unwanted contents out of the list's model json items array to cleanly remove the items?

btw, very nice dsevil
Jason Robitaille is offline   Reply With Quote
Old 12/19/2009, 08:20 PM   #8 (permalink)
Member
 
xanthinealkaloid's Avatar
 
Join Date: Nov 2009
Location: Wisconsin
Posts: 942
Likes Received: 8
Thanks: 413
Thanked 1,298 Times in 369 Posts
Default

Thanks, dsevil!

I kind of like having them dimmed, so I can see what's incoming without it being obtrusive.

BTW...mine are Brighthouse, Dijit, & Europa.

Last edited by xanthinealkaloid; 12/19/2009 at 08:21 PM. Reason: typo
xanthinealkaloid is offline   Reply With Quote
Old 12/20/2009, 07:16 PM   #9 (permalink)
Member
 
Join Date: Jun 2009
Posts: 211
Likes Received: 0
Thanks: 28
Thanked 147 Times in 41 Posts
Default

Quote:
Originally Posted by Jason Robitaille View Post
popping in late in the conversation here, but wouldn't it also be possible to filter the unwanted contents out of the list's model json items array to cleanly remove the items?
My attempt thus far:
http://webonastick.com/webos/dev/pat...1-alpha1.patch
http://webonastick.com/webos/dev/pat...pha1.patch.txt

Doesn't work.

Seems to me the palm-list widget does not handle this type of thing correctly.

List widget requests 140 items initially; gets 98 back; for some reason it requests 42 more items and gets only 18 back. Start scrolling down and at some point the list widget is going to request the next chunk of items starting from offset 140, instead of offset 116. And GUI bugs start getting triggered.

Fixing this---at least the way I'm trying to go about this---will seem to require patching at a deeper level: either Mojo.Widget.List itself or something even deeper called Mojo.Model.BigArray, neither with which I feel comfortable---or justified---mucking around.

Anyone else wanna give this a shot?

Any of the CSS approaches I came up with also trigger GUI bugs:

Code:
/* shortens and cuts off but does not completely hide :( */
.palm-row.unwanted {
	height: 0;
	overflow: hidden;
}
.palm-row.unwanted .palm-row-wrapper {
	height: 0;
	overflow: hidden;
}

/* does not work; triggers GUI bugs */
.palm-row.unwanted {
	display: none;
}

/* suggested by ird on #webos-internals */
/* does not work; triggers GUI bugs */
.palm-row.unwanted {
	position: fixed; right: 600px;
}
__________________
I maintain the Universal Search Command Line, Hide App Vendors, and Poor Man's Twitter Client patches; the palm-rsync utility; and the rot13 web-distributed app.

I also have a twitter feed and a web site.

Last edited by dsevil; 12/20/2009 at 07:24 PM.
dsevil is offline   Reply With Quote
Old 12/20/2009, 07:23 PM   #10 (permalink)
Member
 
Join Date: Jun 2009
Posts: 211
Likes Received: 0
Thanks: 28
Thanked 147 Times in 41 Posts
Default

I suppose I *could* just grab the entire result list in one fell swoop and recode accordingly. But that won't scale well in the future when the app catalog starts hitting, say, 5000.

I suppose I *could* have searchForApplications() do multiple queries instead of just one in order to retrieve 140 applications post-filtering.

I'm going to sit on this idea for a while, however.
__________________
I maintain the Universal Search Command Line, Hide App Vendors, and Poor Man's Twitter Client patches; the palm-rsync utility; and the rot13 web-distributed app.

I also have a twitter feed and a web site.
dsevil is offline   Reply With Quote
Old 12/20/2009, 08:16 PM   #11 (permalink)
Member
 
Join Date: Mar 2003
Location: Bainbridge Island, WA
Posts: 31
Likes Received: 0
Thanks: 17
Thanked 3 Times in 3 Posts
Default

dsevil: thanks, and the easter is nifty!
__________________
I ride submarines...
pullingj is offline   Reply With Quote
Old 12/20/2009, 09:41 PM   #12 (permalink)
Legend
 
Jason Robitaille's Avatar
 
Join Date: May 2005
Location: Winnipeg, MB, Canada
Posts: 3,883
Likes Received: 496
Thanks: 801
Thanked 12,956 Times in 1,495 Posts
Default

I'll be available to take a stab at it in a week or so if there's still a need by then
Jason Robitaille is offline   Reply With Quote
Thanked By: lbgshi
Old 12/21/2009, 03:31 PM   #13 (permalink)
Member
 
nyquistJack's Avatar
 
Join Date: Jun 2009
Posts: 666
Likes Received: 316
Thanks: 442
Thanked 173 Times in 69 Posts
Default

I can't wait to get home to try this out. Like you said, probably not as good as hiding all together, but MUCH better than nothing. Thank you very much for your hard work on this.

Also, I had been out of the command line patch for a while thanks to a stupid thing I did on my Pre. I already loved it...now its just incredible! Excellent and impressive work!
nyquistJack is offline   Reply With Quote
Old 12/22/2009, 06:49 AM   #14 (permalink)
Member
 
nyquistJack's Avatar
 
Join Date: Jun 2009
Posts: 666
Likes Received: 316
Thanks: 442
Thanked 173 Times in 69 Posts
Default

I installed this last night and I wept with joy. It makes a huge difference not having to look at that garbage. It also sort of highlights the disgustingly huge number of their garbage apps. There are times where just huge swaths of the list are dimmed.

Thanks for a GREAT patch!
nyquistJack is offline   Reply With Quote
Old 12/22/2009, 07:14 AM   #15 (permalink)
Member
 
Join Date: Jul 2009
Posts: 1,461
Likes Received: 115
Thanks: 64
Thanked 294 Times in 180 Posts
Default

can't thank you enough! its almost as good as completely hiding those fools..
Mhunterjr is offline   Reply With Quote
Old 12/22/2009, 08:33 AM   #16 (permalink)
Member
 
Join Date: Jun 2009
Location: Boston, MA
Posts: 111
Likes Received: 0
Thanks: 55
Thanked 6 Times in 5 Posts
Default

Looks like a big step in the right direction!
Thanks dsevil!!
JohnnyKat is offline   Reply With Quote
Old 12/22/2009, 09:44 AM   #17 (permalink)
Member
 
Audemars02's Avatar
 
Join Date: May 2009
Posts: 1,487
Likes Received: 13
Thanks: 252
Thanked 405 Times in 238 Posts
Default

Thanks for the patch. can you just help explain why to use the SLASH and when not to. Didn't understand the direction "the use a regular expression".

Thanks
Audemars02 is offline   Reply With Quote
Old 12/22/2009, 10:23 AM   #18 (permalink)
Member
 
Join Date: Jun 2009
Posts: 211
Likes Received: 0
Thanks: 28
Thanked 147 Times in 41 Posts
Default

Quote:
Originally Posted by Audemars02 View Post
can you just help explain why to use the SLASH and when not to.
In Hide App Vendors, if you start and end something with a slash, you're specifying a regular expression (in which starting and ending slashes are not included), which I explain next. Otherwise, you're specifying a simple substring match.

Quote:
Didn't understand the direction "the use a regular expression".
A regular expression is a type of search string you specify if you want to perform any type of pattern matching beyond a simple substring test.

The following sites provide introductions and explain the different types of pattern matching regular expressions are capable of specifying:
Regular Expression Tutorial - Learn How to Use Regular Expressions
Regular expression - Wikipedia, the free encyclopedia

One thing to know is that there are basically two different families of regular expressions, "POSIX Basic" and "POSIX Extended". The first (or its bases) is the default for many Unix tools; the second is what the regex flavors implemented by Perl, JavaScript, and other languages are based on, and is also the basis for PCRE.

Hide App Vendors, of course, uses the JavaScript flavor. Any decent JavaScript reference (including Visibone's reference cards) can help you there.
__________________
I maintain the Universal Search Command Line, Hide App Vendors, and Poor Man's Twitter Client patches; the palm-rsync utility; and the rot13 web-distributed app.

I also have a twitter feed and a web site.
dsevil is offline   Reply With Quote
Old 12/22/2009, 12:25 PM   #19 (permalink)
Member
 
Join Date: Aug 2009
Location: San Diego
Posts: 22
Likes Received: 0
Thanks: 2
Thanked 0 Times in 0 Posts
Default

Many thanks for this patch... it gets the job done without having the feel of someone else making the choice for me. Combine it with a friction point for app submissions and it 'should' return some control to the end users and cut back on spamming the catalog.

Let's hope Brighthouse and Dijit see where it's headed, and they don't start to adopt more advanced spam tactics (and this patch doesn't evolve into the addition of the ability to import .csv lists of spammers).
rayevans is offline   Reply With Quote
Old 12/22/2009, 12:26 PM   #20 (permalink)
Member
 
Join Date: Jun 2009
Posts: 49
Likes Received: 0
Thanks: 15
Thanked 6 Times in 6 Posts
Default

Awesome! I agree that I'd rather just not see these apps, but EPIC WORK on doing something about them to make them easier to pass over. Thank you a million times over for working on this!
flare576 is offline   Reply With Quote
Reply

 

Thread Tools
Display Modes



 


Content Relevant URLs by vBSEO 3.6.0