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:
parent
9b9e5ecf8b
commit
b7d857d4e5
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user