From 7e6ba1d7025e85772de7cec20ac4d34188e42e26 Mon Sep 17 00:00:00 2001 From: nowrep Date: Thu, 28 Jun 2012 12:03:08 +0200 Subject: [PATCH] AdBlock: Don't show element hiding rules when viewing source code --- src/lib/other/sourceviewer.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/lib/other/sourceviewer.cpp b/src/lib/other/sourceviewer.cpp index 3510d4f21..949d5b9cf 100644 --- a/src/lib/other/sourceviewer.cpp +++ b/src/lib/other/sourceviewer.cpp @@ -138,7 +138,10 @@ void SourceViewer::loadSource() m_actionCopy->setEnabled(false); m_actionPaste->setEnabled(false); - m_sourceEdit->setPlainText(m_frame.data()->toHtml()); + QString html = m_frame.data()->toHtml(); + // Remove AdBlock element hiding rules + html.remove(QRegExp("")); + m_sourceEdit->setPlainText(html); //Highlight selectedHtml if (!m_selectedHtml.isEmpty()) {