Active Topics

 



Notices


Reply
Thread Tools
zerojay's Avatar
Posts: 2,669 | Thanked: 2,555 times | Joined on Apr 2007 @ Halifax, Nova Scotia, Canada
#41
Originally Posted by jaysire View Post
Thanks for this! I could swear most websites are like 30% snappier now (and in fact the entire N900). I am thinking maybe flash is left on in the background, taking resources, even if I don't have a flash-enabled site open at a specific moment, because it feels like the entire experience is much snappier. I don't care so much about removing ads, but making Flash selectable on a per-swf-basis is absolute gold.

I realize this might be a placebo-effect, but everything has been good since I installed this filter. My battery even lasted a log longer. It might also be because almost every site I visit has some flash ad somewhere... I mostly read news on the N900 and what news site doesn't have flash banners these days?

What I'm not immediately clear about is how this works. How can you, using only css, "sniff" out swf:s that are included with swfobject.js, which is the "correct" way to include flash on websites these days? I guess I could just look at the app itself, but I haven't had the time.
The CSS code, which is not mine, is the following:

Code:
/* Prevent flash animations from playing until you click on them. */
object[classid$=":D27CDB6E-AE6D-11cf-96B8-444553540000"],
object[codebase*="swflash.cab"],
object[type="application/x-shockwave-flash"],
embed[type="application/x-shockwave-flash"],
embed[src$=".swf"]
{ -moz-binding: url("http://www.squarefree.com/turing/clickToView.xml#ctv"); }
And if you're happy with how adflashblock-css works, please vote it up so more people can use it - http://maemo.org/packages/package_in...k-css/1.0.0-4/
 
Posts: 233 | Thanked: 170 times | Joined on Nov 2009 @ Finland
#42
Originally Posted by zerojay View Post
And if you're happy with how adflashblock-css works, please vote it up so more people can use it - http://maemo.org/packages/package_in...k-css/1.0.0-4/
I am and I did.
__________________
Read about my N900 experiences from my blog.
 

The Following User Says Thank You to jaysire For This Useful Post:
YoDude's Avatar
Posts: 2,869 | Thanked: 1,784 times | Joined on Feb 2007 @ Po' Bo'. PA
#43
Originally Posted by zerojay View Post
The userContent.css file included in my package is based upon someone's edited version which ads a TON more things to the block list. I can't remember the name off the top of my head, but basically that version was based on the original at floopy moose anyways. I've also added a few custom ones.

Yes, it creates the chrome directory in the right place and installs the file. There's absolutely nothing stopping you from adding whatever you want to it after the install. If there's any other mods you wanna add to it, let me know because they might be useful for everyone (much like the flashblock I added already).

You can base your tutorial idea upon my package if you'd like... and maybe make mods available as add-ons for my original package. I haven't checked into HideUserAgent.
Your 55k file over wrote my 6.5k file just fine with no conflicts.

Your larger file includes much more than mine did and I especially like how it handles ads in search results and other sites run by that company that starts with a "G" and ends with an "oogle".

I just added the customizations that I use for mostly iPhone formatted sites to the beginning of your file and it works like a charm...

Code:
@-moz-document url-prefix(http://www.dot.state.pa.us/Penndot/Districts/district5.nsf/) {
    img {width: 100%; height: 100% !important }
}

@-moz-document url-prefix(http://207.251.86.248) {
    img {width: 100%; height: 100% !important }
}

@-moz-document url-prefix(http://164.156.16.43/public/) {
    img {width: 100%; height: 100% !important }
}

@-moz-document url-prefix(http://www.marketwatch.com/m/) {
  body {font-size: 120% !important}
}

@-moz-document url-prefix(http://m.reference.com/) {
  body {font-size: 120% !important}
}

@-moz-document url-prefix(http://imode.langtolang.com/) {
  body {font-size: 120% !important}
}

@-moz-document url-prefix(http://sunset.ci.sunnyvale.ca.us/airpac/) {
  body {font-size: 120% !important}
}

@-moz-document url-prefix(http://mobile.usa.gov/) {
  body {font-size: 120% !important}
}

@-moz-document url-prefix(http://lyrics.twilightwap.com/) {
  body {font-size: 120% !important}
}

@-moz-document url-prefix(http://lyrics.twilightwap.com/) {
    img {display: none !important }
}

@-moz-document url-prefix(http://wapedia.mobi/) {
  body {font-size: 120% !important}
}

@-moz-document url-prefix(http://www.hopstop.com/pda) {
  body {font-size: 120% !important}
}

@-moz-document url-prefix(http://mobile.flightstats.com/) {
  body {font-size: 120% !important}
}

As I was saying before, a future feature request would be to provide a means for a user to add lines like those^ to your file as he comes across a site that would benifit from some simple CSS tweaks.

If not, the best way for a casual user might be after installing your package, make a copy of your newly installed UserContent.css in their easier to access, "MyDocs" directory.
When new lines need to be added, add them to the "MyDocs" file then overwrite the old file in the "chrome" directory from the command line...
I don't even think root privileges are required.

BTW, couldn't this also be made available in the Diablo repositories?

Thanks.
__________________

SLN member # 009
 

The Following User Says Thank You to YoDude For This Useful Post:
zerojay's Avatar
Posts: 2,669 | Thanked: 2,555 times | Joined on Apr 2007 @ Halifax, Nova Scotia, Canada
#44
Originally Posted by YoDude View Post
Your 55k file over wrote my 6.5k file just fine with no conflicts.

Your larger file includes much more than mine did and I especially like how it handles ads in search results and other sites run by that company that starts with a "G" and ends with an "oogle".

I just added the customizations that I use for mostly iPhone formatted sites to the beginning of your file and it works like a charm...

Code:
@-moz-document url-prefix(http://www.dot.state.pa.us/Penndot/Districts/district5.nsf/) {
    img {width: 100%; height: 100% !important }
}

@-moz-document url-prefix(http://207.251.86.248) {
    img {width: 100%; height: 100% !important }
}

@-moz-document url-prefix(http://164.156.16.43/public/) {
    img {width: 100%; height: 100% !important }
}

@-moz-document url-prefix(http://www.marketwatch.com/m/) {
  body {font-size: 120% !important}
}

@-moz-document url-prefix(http://m.reference.com/) {
  body {font-size: 120% !important}
}

@-moz-document url-prefix(http://imode.langtolang.com/) {
  body {font-size: 120% !important}
}

@-moz-document url-prefix(http://sunset.ci.sunnyvale.ca.us/airpac/) {
  body {font-size: 120% !important}
}

@-moz-document url-prefix(http://mobile.usa.gov/) {
  body {font-size: 120% !important}
}

@-moz-document url-prefix(http://lyrics.twilightwap.com/) {
  body {font-size: 120% !important}
}

@-moz-document url-prefix(http://lyrics.twilightwap.com/) {
    img {display: none !important }
}

@-moz-document url-prefix(http://wapedia.mobi/) {
  body {font-size: 120% !important}
}

@-moz-document url-prefix(http://www.hopstop.com/pda) {
  body {font-size: 120% !important}
}

@-moz-document url-prefix(http://mobile.flightstats.com/) {
  body {font-size: 120% !important}
}

As I was saying before, a future feature request would be to provide a means for a user to add lines like those^ to your file as he comes across a site that would benifit from some simple CSS tweaks.

If not, the best way for a casual user might be after installing your package, make a copy of your newly installed UserContent.css in their easier to access, "MyDocs" directory.
When new lines need to be added, add them to the "MyDocs" file then overwrite the old file in the "chrome" directory from the command line...
I don't even think root privileges are required.

BTW, couldn't this also be made available in the Diablo repositories?

Thanks.
No root isn't required. Yeah, probably could be done for Diablo.
 
Posts: 185 | Thanked: 103 times | Joined on Aug 2008
#45
I installed it and works, but it blocks wayyy too many images by default and theres no way to easily white list them. I'll probably uninstall it for the time being and just live with the ads.
 
Posts: 241 | Thanked: 69 times | Joined on Dec 2009 @ Germany
#46
Originally Posted by legoman666 View Post
I installed it and works, but it blocks wayyy too many images by default and theres no way to easily white list them. I'll probably uninstall it for the time being and just live with the ads.
if you could give some examples of false blocked images, the developer could extract sth usefull from your post and make the app better.
 

The Following User Says Thank You to raily For This Useful Post:
zerojay's Avatar
Posts: 2,669 | Thanked: 2,555 times | Joined on Apr 2007 @ Halifax, Nova Scotia, Canada
#47
Yes, please.. if you've got some images you want to see whitelisted, let me know and I'll do what I can to fix it.

The current version will be promoted to Extras as soon as it gets added to Bugzilla.
 
pelago's Avatar
Posts: 2,121 | Thanked: 1,540 times | Joined on Mar 2008 @ Oxford, UK
#48
Hi. Thanks for this package. Is zerojay still around? (I notice he hasn't posted since Feb 11 - eek!)

I've found a problem: when adflashblock-css is installed, www.metacritic.com doesn't work properly - most of the main content is blocked.

It would be nice to have a Settings applet or similar that would allow us to enable/disable the adblocking, and the flashblocking, separately. To be able to view Metacritic, I've had to uninstall the entire package, and so lost my lovely flash-blocking ability.
 
Posts: 529 | Thanked: 194 times | Joined on Aug 2010 @ UK
#49
just a quick question but would the app affect megaupload page this is problem im facing it does count diown but then download link doesnt appear >?>

__________________
METASPLOIT INSTALL N900
Keep the forums clean
Dont forget to say thanks
 
Posts: 5 | Thanked: 0 times | Joined on Apr 2013
#50
I installed this i can't play any flash video including youtube.
All i see is black screen where the video is supposed to play and tapping the screen doesn't make any difference.
 
Reply

Tags
adblock, flashblock, microb


 
Forum Jump


All times are GMT. The time now is 13:40.