Welcome guest, is this your first visit? Create Account now to join.
Page 2 of 9 FirstFirst 1234 ... LastLast
Results 11 to 20 of 89

This is a discussion on [New Ext] dvCr(Chromium)AdBlocker within the Chrome Plugins section, part of the Google Chrome category: I notice one thing though while downloading from Chromium and dev Chrome; downloading the crx does not install it; I ...


  1. #11
    sulasno's Avatar
    sulasno is offline Super Moderator
    Join Date
    Sep 2008
    Location
    Bangkok
    Posts
    1,759

    Default

    I notice one thing though while downloading from Chromium and dev Chrome;
    downloading the crx does not install it; I have to drag the crx to Chromium and Chrome before it starts installation

  2. #12
    Benni is offline Senior Member
    Join Date
    May 2009
    Posts
    354

    Default

    yep - Cause he havn't set the proper http headers for extension..

  3. #13
    Michael3185 is offline Senior Member
    Join Date
    Apr 2009
    Location
    Lincoln, UK
    Posts
    377

    Default

    Quote Originally Posted by deVars View Post
    Michael: I have tested my extension on Chrome with an emptied cache. It does block resources as well as external scripts to the extent that it prevents ads from being loaded. Why don't you try it and find out? This is definitely not just content hiding.
    Hi deVars. I can't test it on Beta as extensions don't work properly. I tried to drag-drop it onto Chrome but it wasn't playing.

    Regarding hiding vs. blocking, if there's no content policy in Chrome yet, how can your code be stopping content from being referenced by the html page? The reason I use and recommend BFilter is that as well as being very simple to use, it stops anything you don't want from being accessed and loaded, which speeds up page loads. Certainly Adsweep and Adblock+ don't block anything, but hide it. Very fast, so you don't normally see it happening, but they hide rather than block.

    Do you have a user.js script version to try out? I'm interested to see how it works if you do (or if it's not too much of a drag to create one).

  4. #14
    Benni is offline Senior Member
    Join Date
    May 2009
    Posts
    354

    Default

    Just extract the archive, then you got your js file...

    Extension system is not enabled on beta yet, only dev version and chromium.

  5. #15
    Lex1 is offline Member
    Join Date
    Jan 2009
    Posts
    67

    Default

    I have tested my extension
    Bad testing

  6. #16
    Michael3185 is offline Senior Member
    Join Date
    Apr 2009
    Location
    Lincoln, UK
    Posts
    377

    Default

    Got using 7-Zip (renaming it to .zip in Vista didn't work).

    I may be wrong here, but this script runs in the browser, checking the page after it's loaded, not before it loads as a proxy server does. A proxy like BFilter or Privoxy checks and modifies the page before serving it to the browser, hence no ad or script loading and no delays. If your script checks the html in the browser, the browser has already loaded all the junk, and your script then hides it. Is that not so?

    One way to check is to put a huge loop or a key-press pause in so you can see what's happening in the browser as it fetches and removes the ads. My laptop isn't super fast, so with Adsweep for example (a very cut down version at that) I can see images load briefly before disappearing. They're not ads as BFilter blocks those, but banners and images on favourite sites which I don't want to see.

    As I said, I may be wrong, but I don't see any way of actually blocking ads in Chrome at present other than a proxy which does the job before Chrome sees the page. It's instant, too.

    EDIT:

    Sorry to disappoint, but I just installed Iron and got the extension to work - it's a HIDER, not a blocker. The adverts appear in my browser then quickly disappear after loading. No blocking, no speed gain. As I said, BFilter (or any other proxy) DOES block ads. None of these extensions do.
    Last edited by Michael3185; 10-12-2009 at 12:26 PM.

  7. #17
    deVars's Avatar
    deVars is offline Member
    Join Date
    Oct 2009
    Posts
    44

    Default

    Michael3185:Yeah, I haven't tried it on Iron so I can't make a claim on that browser. I am using devChrome currently and will going to stay there since I am looking at the HTML5 localStorage option Benni suggested. If you put an infinite loop within dvCrAB (when I was doing some testing) it will make devChrome crawl. I didn't get the chance to wait to the crawl as I don't think it would help me on my work.

    As for the explanation, Google's document about its extensions say the they could be made to run before any other documents gets loaded. You are right about your analyzation, except that dvCrAB takes the objects out before the HTML could even be read. Once the whole DOM structure is made, its branches are selectively removed by dvCrAB and then the HTML parser kicks in.

    @sulasno: My bad. I'll update the plugin soon. (with a rough UI for custom lists. Hopefully.)

    Finally gotten the hang of using localStorage with respect to the extension environment. There's a huge thing about scope issues when you start working with a multi-page extension. =_=
    Last edited by deVars; 10-12-2009 at 09:41 PM. Reason: Added some things I forgot
    Lead me not into temptation,
    I already know the way.

  8. #18
    Michael3185 is offline Senior Member
    Join Date
    Apr 2009
    Location
    Lincoln, UK
    Posts
    377

    Default

    Quote Originally Posted by deVars View Post
    Michael3185:Yeah, I haven't tried it on Iron so I can't make a claim on that browser.
    Chromium, Iron, Chrome and all browsers without content policy work in the same way as far as blocking or loading and hiding content go. As to 'the crawl' and your explanation according to Google, I've watched all the junk load and then disappear when using your extension, and Adblock+, and Adsweep. If what you say is so, how come I can see the junk and watch it disappear? All three were tested independently, all hiding content after it loads, and not blocking it before it loads. Seriously, do some more testing, and then use a proxy server and see how differently and effectively it works. Perhaps Google's documentation is in error, or perhaps it's not yet implemented properly.

    There's nothing wrong with content hiding, and as as I said, I hide some large and clumsy content after loading. I do think that all of these 'ad block' extensions which actually aren't should be named appropriately though, especially for people who have no idea how blocking and hiding work and affect their online time. Buy hey, if they can read then they can work it out in the end.
    Last edited by Michael3185; 10-12-2009 at 10:10 PM.

  9. #19
    deVars's Avatar
    deVars is offline Member
    Join Date
    Oct 2009
    Posts
    44

    Default

    @Michael3185:
    Ahhh. . . I see. Thanks for your feedback. I would like to know though, what site did you use so I could use that as well on my testing. It would really help a lot.

    @Benni: I thought that was the way Chrome handles it. I experience the extension loading problem as well. How can I set the http headers on my extension?
    Lead me not into temptation,
    I already know the way.

  10. #20
    Michael3185 is offline Senior Member
    Join Date
    Apr 2009
    Location
    Lincoln, UK
    Posts
    377

    Default

    Hi deVars. There are a number of sites I've hidden some content on, but here are a couple of examples.

    YouTube: I don't like that it shows stuff all over the screen that I don't need to see, plus ads and promo's for Google Chrome (I'm using Iron again for various reasons). Some filters I use for YouTube in my cut-down Adsweep;

    Code:
    // List custom CSS selectors that you want to hide on specific sites
    var sites=new Array();
    sites['youtube.com']='[id="homepage-side-content"],[id="feedmodule-POP"],[id="feedmodule-REC"],[id="feedmodule-PRO"],[id="watch-this-vid-info"],[id="chrome-promo"],[id="search-pva"],[class="ad-div"],[id="footer"]';
    Daily Mail, UK: Similar reason to above, plus I hide the enormous banner and footer areas. Some filters;

    Code:
    sites['dailymail.co.uk']='.commercial-horizontal-footer,#DATING_MODULE,.banner-adverts,adfeatures,[class="page-header bdrgr2"],[class="home item"],[class="travel item"],[class="tvshowbiz item"],[class="footer"],[class="page-footer"],[class="and-footer"]';
    Slow everything right down when testing, with empty loop counters, or key-press pauses. That way you can see what's going on. Your machine and Internet connection may be too fast for you to see what's happening on screen, but those with slower machines and connections will see it differently. I use a new but cheap laptop; 2GHZ dual core, 2GB RAM, Vista Home Premium, and only mobile broadband. My connection varies wildly from very fast to very slow, so at some time each day I see the junk appear on-screen and then get hidden. Because the proxy actually blocks stuff, even during awful slow downs I see no ads appear, and no egg-timing because of stat or counter servers.

    It makes me wonder how blocking is done in Firefox with Adblock Plus. Perhaps it has a kind of internal proxy server that reads and changes loaded content, then passes it to the browser to render? I don't know. I do know that using a proxy removes the problem entirely, and is also good because it works no matter what browser you use.

    The reason I like BFilter is that it's very small and fast, and extremely easy to add filters to, but without needing huge hosts or blacklist files. It's good to be able to tidy up stuff that doesn't come under ad filtering too. What'd be neat, when Google finally code it in, would be a right-click 'Hide content' menu like Opera, which would make it much easier to add hiding filters. Mind you, Opera only allows image hiding, so I guess in Chrome it would have to do something a bit like the element inspector, but with a simplified list of what to block. I think it's going to be very interesting to see how it all develops.

Page 2 of 9 FirstFirst 1234 ... LastLast

Similar Threads

  1. Roboform on Chromium
    By Chrome in forum Chrome Tips & Tricks
    Replies: 6
    Last Post: 10-27-2009, 05:50 PM
  2. Chromium sync
    By Benni in forum Chrome Troubleshooting
    Replies: 6
    Last Post: 09-29-2009, 11:53 PM
  3. How many people use Chromium?
    By ChromiumUser99 in forum Chrome Talk
    Replies: 38
    Last Post: 08-04-2009, 02:45 PM
  4. Chromium 3.0.195.0 Buttons
    By Cherripez in forum Chrome Themes
    Replies: 3
    Last Post: 07-16-2009, 11:37 PM
  5. Chromium
    By Blaquesaber in forum Chrome Talk
    Replies: 0
    Last Post: 10-20-2008, 05:31 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •