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

Internet Explorer AdBlock

, 17 Jan 2008 GPL3
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
// Microsoft Visual C++ generated resource script.
//
#include "resource.h"

#define APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 2 resource.
//
#include "afxres.h"
/////////////////////////////////////////////////////////////////////////////
#undef APSTUDIO_READONLY_SYMBOLS

/////////////////////////////////////////////////////////////////////////////
// English (U.S.) resources

#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
#ifdef _WIN32
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
#pragma code_page(1252)
#endif //_WIN32

#ifdef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// TEXTINCLUDE
//

1 TEXTINCLUDE 
BEGIN
    "resource.h\0"
END

2 TEXTINCLUDE 
BEGIN
    "#include ""afxres.h""\0"
END

3 TEXTINCLUDE 
BEGIN
    "1 TYPELIB ""IEAdBlock.tlb""\r\0"
END

#endif    // APSTUDIO_INVOKED


/////////////////////////////////////////////////////////////////////////////
//
// Version
//

VS_VERSION_INFO VERSIONINFO
 FILEVERSION 0,7,0,0
 PRODUCTVERSION 0,7,0,0
 FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
 FILEFLAGS 0x1L
#else
 FILEFLAGS 0x0L
#endif
 FILEOS 0x4L
 FILETYPE 0x2L
 FILESUBTYPE 0x0L
BEGIN
    BLOCK "StringFileInfo"
    BEGIN
        BLOCK "040904e4"
        BEGIN
            VALUE "Comments", "http://www.catenalogic.com"
            VALUE "CompanyName", "CatenaLogic"
            VALUE "FileDescription", "Internet Explorer Browser Extension to block advertisements"
            VALUE "FileVersion", "0.7"
            VALUE "InternalName", "IE AdBlock.dll"
            VALUE "LegalCopyright", "Copyright (C) CatenaLogic 2006 - 2008"
            VALUE "OriginalFilename", "IE AdBlock.dll"
            VALUE "ProductName", "IE AdBlock"
            VALUE "ProductVersion", "0.7"
        END
    END
    BLOCK "VarFileInfo"
    BEGIN
        VALUE "Translation", 0x409, 1252
    END
END


/////////////////////////////////////////////////////////////////////////////
//
// REGISTRY
//

IDR_IEADBLOCK           REGISTRY                "IE AdBlock.rgs"

/////////////////////////////////////////////////////////////////////////////
//
// Dialog
//

IDD_SETTINGS_LIST DIALOGEX 0, 0, 235, 187
STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_DISABLED | WS_CAPTION
CAPTION "[list]"
FONT 8, "MS Shell Dlg", 0, 0, 0x0
BEGIN
    CONTROL         "",lstPatterns,"SysListView32",LVS_REPORT | LVS_SINGLESEL | LVS_SHOWSELALWAYS | LVS_NOLABELWRAP | LVS_ALIGNLEFT | LVS_NOCOLUMNHEADER | WS_BORDER | WS_TABSTOP,7,18,220,55
    PUSHBUTTON      "Add...",btnAddPattern,70,77,50,14
    PUSHBUTTON      "Modify...",btnModifyPattern,124,77,50,14
    PUSHBUTTON      "Remove",btnRemovePattern,178,77,50,14
    CONTROL         "",lstRegularExpressions,"SysListView32",LVS_REPORT | LVS_SINGLESEL | LVS_SHOWSELALWAYS | LVS_NOLABELWRAP | LVS_ALIGNLEFT | LVS_NOCOLUMNHEADER | WS_BORDER | WS_TABSTOP,7,107,220,55
    PUSHBUTTON      "Add...",btnAddRegularExpression,70,166,50,14
    PUSHBUTTON      "Modify...",btnModifyRegularExpression,124,166,50,14
    PUSHBUTTON      "Remove",btnRemoveRegularExpression,178,166,50,14
    LTEXT           "Patterns:",lblPatterns,7,7,221,8
    LTEXT           "Regular expressions:",lblRegularExpressions,7,96,221,8
END

IDD_SETTINGS_ABOUT DIALOGEX 0, 0, 235, 156
STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_DISABLED | WS_CAPTION
CAPTION "[about]"
FONT 8, "MS Shell Dlg", 0, 0, 0x0
BEGIN
    LTEXT           "IE AdBlock is developed by Geert van Horrik Software, based on an idea of Bertrand Rohrbock.",lblDeveloped,7,7,221,19
    LTEXT           "Version: ",lblVersionText,7,30,29,8
    LTEXT           "Website:",lblWebsiteText,7,47,30,8
    LTEXT           "[version]",lblVersion,49,31,179,8
    LTEXT           "[website]",lblWebsite,50,46,82,8
    LTEXT           "[copyright]",lblCopyright,7,107,221,42
    PUSHBUTTON      "Check for updates...",btnCheckForUpdates,7,64,98,14
END

IDD_SETTINGS_GENERAL DIALOGEX 0, 0, 235, 156
STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_DISABLED | WS_CAPTION
CAPTION "[general]"
FONT 8, "MS Shell Dlg", 0, 0, 0x0
BEGIN
    CONTROL         "Enable AdBlock",chkEnabled,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,7,7,221,10
    EDITTEXT        txtSyncBlackListRestDays,99,22,19,14,ES_RIGHT | ES_AUTOHSCROLL | ES_NUMBER
    CONTROL         "",spinSyncBlackListRestDays,"msctls_updown32",UDS_SETBUDDYINT | UDS_AUTOBUDDY | UDS_ARROWKEYS | UDS_NOTHOUSANDS,119,22,11,14
    PUSHBUTTON      "Synchronize now!",btnSyncNow,151,135,77,14
    LTEXT           "Synchronize blacklist every:",lblSyncBlackList,7,25,90,8
    LTEXT           "days",lblSyncBlackListDays,135,25,32,8
    LTEXT           "Blacklist URL's:",lblBlackLists,7,41,169,8
    LTEXT           "Last synchronized on %s.",lblLastSynced,7,138,142,8
    CONTROL         "",lstBlackLists,"SysListView32",LVS_REPORT | LVS_SINGLESEL | LVS_SHOWSELALWAYS | LVS_ALIGNLEFT | LVS_NOCOLUMNHEADER | WS_BORDER | WS_TABSTOP,7,57,221,70
END

IDD_SETTINGS_PERFORMANCE DIALOGEX 0, 0, 235, 182
STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_DISABLED | WS_CAPTION
CAPTION "[general]"
FONT 8, "MS Shell Dlg", 0, 0, 0x0
BEGIN
    LTEXT           "Maximum items cached:",lblCacheSize,7,10,76,8
    EDITTEXT        txtCacheSize,95,7,38,14,ES_RIGHT | ES_AUTOHSCROLL | ES_NUMBER
    CONTROL         "",spinCacheSize,"msctls_updown32",UDS_SETBUDDYINT | UDS_AUTOBUDDY | UDS_ARROWKEYS | UDS_NOTHOUSANDS,133,7,11,14
    PUSHBUTTON      "Clear cache",btnClearCache,151,7,77,14
    LTEXT           "[runtime]",lblCacheInfo,7,30,221,22
    CONTROL         "Enable regular expressions",chkEnableRegularExpressions,
                    "Button",BS_AUTOCHECKBOX | WS_TABSTOP,7,59,221,10
    CONTROL         "Show performance messages (for performance debugging)",chkShowPerformanceMessages,
                    "Button",BS_AUTOCHECKBOX | WS_TABSTOP,7,72,221,10
    CONTROL         "Handle applets",chkHandleApplets,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,7,100,221,10
    CONTROL         "Handle embedded objects",chkHandleEmbeds,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,7,113,221,10
    CONTROL         "Handle (child) frames",chkHandleFrames,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,7,126,221,10
    CONTROL         "Handle images",chkHandleImages,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,7,139,221,10
    CONTROL         "Handle scripts",chkHandleScripts,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,7,152,221,10
    CONTROL         "Handle stylesheets",chkHandleStylesheets,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,7,165,221,10
END


/////////////////////////////////////////////////////////////////////////////
//
// DESIGNINFO
//

#ifdef APSTUDIO_INVOKED
GUIDELINES DESIGNINFO 
BEGIN
    IDD_SETTINGS_LIST, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 228
        TOPMARGIN, 7
        BOTTOMMARGIN, 180
    END

    IDD_SETTINGS_ABOUT, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 228
        TOPMARGIN, 7
        BOTTOMMARGIN, 149
    END

    IDD_SETTINGS_GENERAL, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 228
        TOPMARGIN, 7
        BOTTOMMARGIN, 149
    END

    IDD_SETTINGS_PERFORMANCE, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 228
        TOPMARGIN, 7
        BOTTOMMARGIN, 175
    END
END
#endif    // APSTUDIO_INVOKED


/////////////////////////////////////////////////////////////////////////////
//
// String Table
//

STRINGTABLE 
BEGIN
    IDS_PROJNAME            "IE AdBlock"
    IDS_TOOLBARNAME         "IE AdBlock"
    IDS_ABOUT_DEVELOPED     "%s is developed by %s, based on an idea by %s."
    IDS_ABOUT_WEBSITE       "Website:"
    IDS_ABOUT_VERSION       "Version:"
    IDS_ABOUT_TITLE         "About"
    IDS_GENERAL_TITLE       "General"
    IDS_WHITELIST_TITLE     "Whitelist"
    IDS_BLACKLIST_TITLE     "Blacklist"
    IDS_SETTINGS_TITLE      "%s settings"
    IDS_LIST_ADD            "Add..."
    IDS_LIST_MODIFY         "Modify..."
END

STRINGTABLE 
BEGIN
    IDS_LIST_REMOVE         "Remove"
    IDS_LIST_REMOVEQUESTION "Are you sure you want to remove this item from the list?"
    IDS_APP_YES             "Yes"
    IDS_APP_NO              "No"
    IDS_LISTITEM_ADD        "Add..."
    IDS_LISTITEM_MODIFY     "Modify..."
    IDS_APP_OK              "OK"
    IDS_APP_CANCEL          "Cancel"
    IDS_GENERAL_SYNCBLACKLIST "Synchronize blacklist every"
    IDS_ERROR_UNABLELOADDATA "Unable to load AdBlock data!"
    IDS_GENERAL_SYNCBLACKLISTDAYS "days"
    IDS_GENERAL_BLACKLISTS  "Blacklist URL:"
    IDS_GENERAL_SYNCNOW     "Synchronize now!"
    IDS_GENERAL_LASTSYNCED  "Last synchronized on %s."
    IDS_GENERAL_ENABLEADBLOCK 
                            "Enable AdBlock and block the irritating advertisement"
    IDS_ABOUT_CHECKFORUPDATES "Check for updates..."
END

STRINGTABLE 
BEGIN
    ID_TBB_BLACKLIST_ADD    "Add to blacklist"
    ID_TBB_WHITELIST_ADD    "Add to whitelist"
    ID_TBB_SETTINGS         "Settings..."
END

STRINGTABLE 
BEGIN
    IDS_ERROR_UPDATERNOTFOUND 
                            "The update module is not installed correctly.\n\nCheck for updates by visiting the website or try to reinstall the product."
    IDS_TOOLTIP_ADDBLACKLIST "Add url to blacklist"
    IDS_TOOLTIP_ADDWHITELIST "Add url to whitelist"
    IDS_TOOLTIP_SETTINGS    "Settings..."
    IDS_LISTITEM_URL        "URL:"
    IDS_LIST_PATTERNS       "Patterns:"
    IDS_LIST_REGULAREXPRESSIONS "Regular expressions:"
    IDS_STATUS_PARSETIME    "Parsing page for advertisement blocking took %s seconds, %d items blocked"
    IDS_LISTITEM_TITLE_ADD  "Add item"
    IDS_LISTITEM_TITLE_MODIFY "Modify item"
    IDS_PERFORMANCE_TITLE   "Performance"
    IDS_PERFORMANCE_CACHESIZE "Maximum items cached:"
    IDS_LISTITEMELEMENT_TITLE_ADD "Add item"
    IDS_LISTITEMELEMENT_TITLE_MODIFY "Modify item"
    IDS_LISTITEMELEMENT_NAME "Name:"
    IDS_LISTITEMELEMENT_TYPE "Type:"
END

STRINGTABLE 
BEGIN
    IDS_PERFORMANCE_CLEARCACHE "Clear cache"
    IDS_PERFORMANCE_CACHEINFO "There are currently %d items cached."
    IDS_PERFORMANCE_ENABLEREGULAREXPRESSIONS "Enable regular expressions"
    IDS_PERFORMANCE_HANDLEFRAMES "Handle (child) frames"
    IDS_PERFORMANCE_HANDLEAPPLETS "Handle applets"
    IDS_PERFORMANCE_HANDLEEMBEDS "Handle embedded objects"
    IDS_PERFORMANCE_HANDLEIMAGES "Handle images"
    IDS_PERFORMANCE_HANDLESCRIPTS "Handle scripts"
    IDS_PERFORMANCE_HANDLESTYLESHEETS "Handle stylesheets"
    IDS_PERFORMANCE_SHOWPERFORMANCEMESSAGES 
                            "Show performance messages (for performance debugging)"
END

#endif    // English (U.S.) resources
/////////////////////////////////////////////////////////////////////////////


/////////////////////////////////////////////////////////////////////////////
// Dutch (Netherlands) resources

#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_NLD)
#ifdef _WIN32
LANGUAGE LANG_DUTCH, SUBLANG_DUTCH
#pragma code_page(1252)
#endif //_WIN32

/////////////////////////////////////////////////////////////////////////////
//
// REGISTRY
//

IDR_ADBLOCKBHO          REGISTRY                "AdBlockBHO.rgs"
IDR_ADBLOCKBAND         REGISTRY                "AdBlockBand.rgs"

/////////////////////////////////////////////////////////////////////////////
//
// Dialog
//

IDD_LISTITEM DIALOGEX 0, 0, 239, 47
STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "[item]"
FONT 8, "MS Shell Dlg", 400, 0, 0x1
BEGIN
    EDITTEXT        txtURL,34,7,198,14,ES_AUTOHSCROLL
    DEFPUSHBUTTON   "OK",btnOK,129,26,50,14
    PUSHBUTTON      "Cancel",btnCancel,183,26,50,14
    LTEXT           "URL:",lblURL,7,10,16,8
END

IDD_LISTITEMELEMENT DIALOGEX 0, 0, 204, 65
STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "[add / modify]"
FONT 8, "MS Shell Dlg", 400, 0, 0x1
BEGIN
    EDITTEXT        txtName,45,7,152,14,ES_AUTOHSCROLL
    COMBOBOX        cboType,45,26,74,76,CBS_DROPDOWN | CBS_SORT | WS_VSCROLL | WS_TABSTOP
    DEFPUSHBUTTON   "OK",btnOK,93,44,50,14
    PUSHBUTTON      "Cancel",btnCancel,147,44,50,14
    LTEXT           "Name:",lblName,7,9,22,8
    LTEXT           "Type:",lblType,7,27,29,8
END


/////////////////////////////////////////////////////////////////////////////
//
// DESIGNINFO
//

#ifdef APSTUDIO_INVOKED
GUIDELINES DESIGNINFO 
BEGIN
    IDD_LISTITEM, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 232
        TOPMARGIN, 7
        BOTTOMMARGIN, 40
    END

    IDD_LISTITEMELEMENT, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 197
        VERTGUIDE, 45
        TOPMARGIN, 7
        BOTTOMMARGIN, 58
        HORZGUIDE, 26
        HORZGUIDE, 38
        HORZGUIDE, 44
    END
END
#endif    // APSTUDIO_INVOKED


/////////////////////////////////////////////////////////////////////////////
//
// RT_MANIFEST
//

2                       RT_MANIFEST             "res\\IEAdBlockManifest.xml"

/////////////////////////////////////////////////////////////////////////////
//
// Icon
//

// Icon with lowest ID value placed first to ensure application icon
// remains consistent on all systems.
IDI_SETTINGS            ICON                    "res\\icoSettings.ico"

/////////////////////////////////////////////////////////////////////////////
//
// Bitmap
//

IDB_IETOOLBAR           BITMAP                  "res\\bmpToolbar.bmp"
IDB_CHECKBOXES          BITMAP                  "res\\checkboxes.bmp"
#endif    // Dutch (Netherlands) resources
/////////////////////////////////////////////////////////////////////////////



#ifndef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 3 resource.
//
1 TYPELIB "IEAdBlock.tlb"

/////////////////////////////////////////////////////////////////////////////
#endif    // not APSTUDIO_INVOKED

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 | Terms of Use | Mobile
Web02 | 2.8.141223.1 | Last Updated 17 Jan 2008
Article Copyright 2008 by Geert van Horrik
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid