1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 01:22:10 +01:00

[AdBlock] Improved regex for hiding AdBlock code in source viewer.

This commit is contained in:
nowrep 2013-05-09 19:49:13 +02:00
parent 9b9e5ecf8b
commit b7d857d4e5

View File

@ -152,7 +152,7 @@ void SourceViewer::loadSource()
QString html = m_frame.data()->toHtml();
// Remove AdBlock element hiding rules
html.remove(QzRegExp("<style type=\"text/css\">\n/\\* AdBlock for QupZilla \\*/\n.*\\{display:none !important;\\}\n</style>"));
html.remove(QzRegExp("<style type=\"text/css\">\n/\\* AdBlock for QupZilla \\*/\n.*\\{display:none !important;\\}[\n]*</style>"));
m_sourceEdit->setPlainText(html);
// Highlight selectedHtml