mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 18:56:34 +01:00
[AdBlock] Improved regex for hiding AdBlock code in source viewer.
This commit is contained in:
parent
9b9e5ecf8b
commit
b7d857d4e5
@ -152,7 +152,7 @@ void SourceViewer::loadSource()
|
|||||||
|
|
||||||
QString html = m_frame.data()->toHtml();
|
QString html = m_frame.data()->toHtml();
|
||||||
// Remove AdBlock element hiding rules
|
// 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);
|
m_sourceEdit->setPlainText(html);
|
||||||
|
|
||||||
// Highlight selectedHtml
|
// Highlight selectedHtml
|
||||||
|
Loading…
Reference in New Issue
Block a user