Welcome guest, is this your first visit? Create Account now to join.
Page 3 of 3 FirstFirst 123
Results 21 to 27 of 27

This is a discussion on AdSweep to be discontinued !! within the Chrome Tools section, part of the Google Chrome category: Originally Posted by port23user Has anybody created their own derivative? I'd love to help out! Well I sort of kept ...


  1. #21
    Benni is offline Senior Member
    Join Date
    May 2009
    Posts
    354

    Default

    Quote Originally Posted by port23user View Post
    Has anybody created their own derivative? I'd love to help out!
    Well I sort of kept it quiet but I'v been working a litle on a continue of the project.. currently working on cleaning up and figure out what the best aproach will be in order to make it easier to maintain.. currently hopeless for one man

    But if you got some suggestions please share :=)

  2. #22
    port23user is offline Junior Member
    Join Date
    Aug 2009
    Posts
    2

    Default

    Quote Originally Posted by Benni View Post
    Well I sort of kept it quiet but I'v been working a litle on a continue of the project.. currently working on cleaning up and figure out what the best aproach will be in order to make it easier to maintain.. currently hopeless for one man

    But if you got some suggestions please share :=)
    Glad to hear it! I've looked at the code a little and added a couple of my own exceptions but haven't really tried to modify the functionality. That being said, here are some of my ideas:
    -Create a web interface where internet users can submit their request for exceptions. The request then gets put in a queue. Other internet users can upvote to increase priority of certain requests. Volunteer developers with some free time can create the regular expressions for each request and submit it on the same page. No need to look at Adsweep code. Then, admins of the project can choose each request (with it's accompanying regex) be approved and inserted into the adsweep code. When Adsweep first came out, I would have been willing to write regex in my free time if there had been an interface for it. I think this approach would allow people to easily contribute what they can.

    On a semi-related note, I think the about-Adsweep info page could be improved. I sent the page to a lot of friends and they didn't install Adsweep because the instructions appeared intimidating. This was because the install instructions for all the browsers were on the same page. Also it should include a page for news and "how to contribute." I had no idea that the author needed help until one day when I went to the website and it said he is no longer supporting the project.

    Those are just my thoughts. They might be too ambitious. PM me and we can figure something out. =)

  3. #23
    OpenNingia is offline Senior Member
    Join Date
    Jul 2009
    Posts
    123

    Default

    Currently AdSweeps doesn't work only with regexp, so adding a filter without modifying the code is not possible without a large refactoring.

    My proposal is to modify AdSweeps so that it works like AdBlock+ and fetch the same filters of AdBlock community.

    That would easier the Chrome Community ( us ) from the work of updating the filters.

  4. #24
    Waha's Avatar
    Waha is offline Senior Member
    Join Date
    Apr 2009
    Location
    Oregon
    Posts
    788

    Default

    Quote Originally Posted by OpenNingia View Post
    Currently AdSweeps doesn't work only with regexp, so adding a filter without modifying the code is not possible without a large refactoring.
    ...
    They're just CSS rules, you can add them without having to change any extra code..

    Perhaps someone could activate the regex matching strings for Chrome too instead of just Opera.
    ~ Projects ~
    Specialized: Carapass Auction Watcher, Kongregate Chat
    Libraries: bliplib
    Tools: manifest syntax highlighting & snippits
    ~ Happy to make extensions for pay too ;D ~
    Portfolio: Search and Share

  5. #25
    OpenNingia is offline Senior Member
    Join Date
    Jul 2009
    Posts
    123

    Default

    But his author wrote this on the home page. You sure we can just add some CSS rule?

    Why is it so difficult to add hide-rules in AdSweep?

    Regarding the complexity of AdSweep, I'm aware of it, but this is why AdSweep is able to be so efficient and versatile at the same time. It is not an URL blocker. Both are complementary, one blocks URLs, the other hides placeholders. There is no way to make AdSweep easier to understand, because of the technical requirements. It's a little like an antivirus. There's no way to add manually a virus to a virus database without resorting to (much more advanced) programming. So the only way is asking either me or a middleman who knows programming.

    For instance, there are several ways to block an image on a site, it really depends on the situation. You can select all images of the document, count from 0 until you find the image in the group of images. You can also identify it using an ID. If the image has a class, you can use the class name, only if no other image has the same class name. But many times you have to hide the image using its siblings or parent nodes if no other solution is possible (ie: for dynamic content). Here's a sample code that I use to remove Kontera ads:

    Code:
    if(document.getElementsByTagName("A")){
    	var anchorTags=document.getElementsByTagName("A");
    	for(var a=0;a<anchorTags.length;a++){
    		for(var x=0;x<anchorTags[a].attributes.length;x++){
    			if(anchorTags[a].attributes[x].nodeName.toLowerCase()=='class') {
    				if(anchorTags[a].attributes[x].nodeValue=='kLink'){
    					var textString=anchorTags[a].childNodes[0].childNodes[0].innerHTML;
    					var newNode=document.createElement('SPAN');
    					newNode.innerHTML=textString;
    					anchorTags[a].parentNode.insertBefore(newNode,anchorTags[a]);
    					anchorTags[a].parentNode.removeChild(anchorTags[a]);
    				}
    			}
    		}
    	}

  6. #26
    Waha's Avatar
    Waha is offline Senior Member
    Join Date
    Apr 2009
    Location
    Oregon
    Posts
    788

    Default

    Positive. Just open C:\Documents and Settings\User\Local Settings\Application Data\Google\Chrome\User Data\Default\Extensions\adbngiigihocpeghhjgnkklmkpopjfcc\1.6.17.2\AdSweep.js in your text editor, search for common_ad_patterns if you want it to apply to every site, or you can add a specific site otherwise.
    Then just add your CSS rule to the comma separated list.
    For example, if you want to block an image of a certain ID (say "advert"), use:
    Code:
    img#advert
    Or if you want to match a different attribute, such as name:
    Code:
    [name^="ad-"]
    There are four forms of equals, = ^= *= and $= They match at the whole line only, the beginning of the line, anywhere in the line, and the end of the line, respectively.
    So the above code would match anything that's name started with ad- such as ad-vert ad-1234 ad-by-doubleclick etc etc.

    If you need more info, I'm sure there's a CSS Rule doc somewhere on Google. Otherwise, I explained what each variable you can modify and how in the second post of this thread.
    ~ Projects ~
    Specialized: Carapass Auction Watcher, Kongregate Chat
    Libraries: bliplib
    Tools: manifest syntax highlighting & snippits
    ~ Happy to make extensions for pay too ;D ~
    Portfolio: Search and Share

  7. #27
    Tohou is offline Junior Member
    Join Date
    Dec 2009
    Posts
    1

    Default Hmm

    Looks like Chrome extensions are written in languages I know. o_o

Page 3 of 3 FirstFirst 123

Similar Threads

  1. AdSweep.crx extension for Chrome
    By calande in forum Chrome Plugins
    Replies: 13
    Last Post: 09-13-2009, 02:27 AM
  2. Latest Version of AdSweep (1.5.8) Now Available
    By StevePaul in forum Chrome Plugins
    Replies: 0
    Last Post: 05-08-2009, 02:07 PM
  3. AdSweep - Ad-removal tool
    By calande in forum Chrome Plugins
    Replies: 12
    Last Post: 05-02-2009, 10:26 AM
  4. Latest Version of AdSweep 1.4.27 Now Available
    By StevePaul in forum Chrome Plugins
    Replies: 0
    Last Post: 04-27-2009, 02:43 PM
  5. Latest Version of AdSweep 1.4.6 now available
    By StevePaul in forum Chrome Plugins
    Replies: 6
    Last Post: 04-17-2009, 01:32 AM

Posting Permissions

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