Index: src/plugin/PluginTabBase.cpp |
=================================================================== |
--- a/src/plugin/PluginTabBase.cpp |
+++ b/src/plugin/PluginTabBase.cpp |
@@ -62,6 +62,17 @@ |
} |
} |
+/** |
+ * ABP only intercepts protocols "http:" and "https:". |
+ * We can disable any domain used in those protocol with an appropriate whitelist filter. |
+ * Thus, the possibility to disable on a particular site depends only on the protocol. |
+ */ |
+bool CPluginTabBase::IsPossibleToDisableOnSite() |
+{ |
+ auto url = GetDocumentUrl(); |
+ return BeginsWith(url, L"http:") || BeginsWith(url, L"https:"); |
+} |
+ |
void CPluginTabBase::OnActivate() |
{ |
m_isActivated = true; |