Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    [Announce] adflashblock-css

    Reply
    Page 5 of 5 | Prev |   3     4   5 |
    zerojay | # 41 | 2010-02-12, 18:10 | Report

    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/

    Edit | Forward | Quote | Quick Reply | Thanks

     
    jaysire | # 42 | 2010-02-12, 19:59 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to jaysire For This Useful Post:
    zerojay

     
    YoDude | # 43 | 2010-02-13, 04:03 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to YoDude For This Useful Post:
    zerojay

     
    zerojay | # 44 | 2010-02-13, 14:19 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    legoman666 | # 45 | 2010-02-20, 01:12 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    raily | # 46 | 2010-02-20, 10:07 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to raily For This Useful Post:
    zerojay

     
    zerojay | # 47 | 2010-02-21, 12:28 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    pelago | # 48 | 2011-06-10, 10:20 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    stevomanu | # 49 | 2011-07-27, 16:35 | Report

    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 >?>


    Edit | Forward | Quote | Quick Reply | Thanks

     
    aim120 | # 50 | 2013-04-18, 20:23 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Page 5 of 5 | Prev |   3     4   5 |
vBulletin® Version 3.8.8
Normal Logout