Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version
Go to top

Internet Explorer AdBlock

, 17 Jan 2008
Internet Explorer AdBlock Add-on
ieadblock_src.zip
IE AdBlockPS
IE AdBlockps.def
IE AdBlock
AdBlockBand.rgs
AdBlockBHO.rgs
bin
XListCtrlSSDU.lib
XListCtrlSSRU.lib
IE AdBlock.def
IE AdBlock.rgs
res
bmpToolbar.bmp
checkboxes.bmp
icoSettings.ico
XListCtrl
checkboxes.bmp
// Redefinition protection
#ifndef CONSTANTS_H
#define CONSTANTS_H

//*********************************************************************
// MESSAGES
//*********************************************************************

// WPARAM: protection task
// LPARAM: task state
#define WMU_THREADMESSAGE					WM_APP + 1

//*********************************************************************
// THREAD ACTIONS
//*********************************************************************

const int THREAD_START			= 0;
const int THREAD_PAUSE			= 1;
const int THREAD_RESUME			= 2;

//*********************************************************************
// ENUMS
//*********************************************************************

enum ElementType
{
	Div,
	Span
};

enum HtmlElementType
{
	All,
	Frames,
	Images,
	Scripts
};

//*********************************************************************
// STRUCTS
//*********************************************************************

struct BlackList
{
	CString Name;
	CString URL;
	CString TempFile;
	int		ArrayIndex;
};

struct BlackListEx
{
	BlackList Blacklist;
	bool	  Synchronize;
};

//*********************************************************************
// DEVELOPMENT CONSTANTS
//*********************************************************************

const CString IEADBLOCK_WEBADDRESS			= _T("www.catenalogic.com");
const CString IEADBLOCK_DEVELOPER			= _T("CatenaLogic");
const CString IEADBLOCK_IDEABY				= _T("Bertrand Rohrbock");
const CString IEADBLOCK_YEARS				= _T("2006 - 2007");

//*********************************************************************
// BLACKLIST URL'S
//*********************************************************************

const BlackList BLACKLIST_DUTCHBLOCK	= {	_T("DutchBlock"),
											_T("http://dutchmega.nl/dutchblock/lists/adblockplus.php"),
											_T("DutchBlock.txt"),
											0
										  };
const BlackList BLACKLIST_FANBOY		= {
											_T("FanBoy"), 
											_T("http://www.fanboy.co.nz/adblock/fanboy-adblocklist-current.txt"), 
											_T("FanBoy.txt"), 
											1
										  };

const int BLACKLIST_COUNT = 2;

//*********************************************************************
// SYNC BORDERS
//*********************************************************************

const int SYNCRESTDAYS_MIN = 1;
const int SYNCRESTDAYS_MAX = 31;

//*********************************************************************
// CACHE BORDERS
//*********************************************************************

const int CACHE_MIN = 0;
const int CACHE_MAX = 5000;

//*********************************************************************
// DEFAULT SETTINGS
//*********************************************************************

const int SETTINGS_DEFAULT_BLACKLIST_SYNCRESTDAYS = 14;
const int SETTINGS_DEFAULT_CACHESIZE = 1000;

// End of redefinition protection
#endif // CONSTANTS_H

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The GNU General Public License (GPLv3)

Share

About the Author

Geert van Horrik
Software Developer CatenaLogic
Netherlands Netherlands
I am Geert van Horrik, and I have studied Computer Science in the Netherlands.
 
I love to write software using .NET (especially the combination of WPF and C#). I am also the lead developer of Catel, an open-source application development framework for WPF, Silverlight, WP7 and WinRT with the focus on MVVM.
 
I have my own company since January 1st 2007, called CatenaLogic. This company develops commercial and non-commercial software.
 
To download (or buy) applications I have written, visit my website: http://www.catenalogic.com
Follow on   Twitter

| Advertise | Privacy | Mobile
Web02 | 2.8.140916.1 | Last Updated 17 Jan 2008
Article Copyright 2008 by Geert van Horrik
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid