maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Announce] adflashblock-css (https://talk.maemo.org/showthread.php?t=43753)

zerojay 2010-02-12 18:10

Re: [Announce] adflashblock-css
 
Quote:

Originally Posted by jaysire (Post 522940)
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/

jaysire 2010-02-12 19:59

Re: [Announce] adflashblock-css
 
Quote:

Originally Posted by zerojay (Post 523455)
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.

YoDude 2010-02-13 04:03

Re: [Announce] adflashblock-css
 
Quote:

Originally Posted by zerojay (Post 521927)
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.

zerojay 2010-02-13 14:19

Re: [Announce] adflashblock-css
 
Quote:

Originally Posted by YoDude (Post 524249)
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.

legoman666 2010-02-20 01:12

Re: [Announce] adflashblock-css
 
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.

raily 2010-02-20 10:07

Re: [Announce] adflashblock-css
 
Quote:

Originally Posted by legoman666 (Post 537602)
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.

zerojay 2010-02-21 12:28

Re: [Announce] adflashblock-css
 
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 2011-06-10 10:20

Re: [Announce] adflashblock-css
 
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.

stevomanu 2011-07-27 16:35

Re: [Announce] adflashblock-css
 
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 >?>

http://dl.dropbox.com/u/10188212/scr...725-173137.png

aim120 2013-04-18 20:23

Re: [Announce] adflashblock-css
 
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.:(


All times are GMT. The time now is 15:29.

vBulletin® Version 3.8.8