diff --git a/src/lib/adblock/adblockrule.cpp b/src/lib/adblock/adblockrule.cpp index af8cad804..12aca4d32 100644 --- a/src/lib/adblock/adblockrule.cpp +++ b/src/lib/adblock/adblockrule.cpp @@ -370,6 +370,7 @@ void AdBlockRule::parseFilter() } m_cssSelector = parsedLine.mid(pos + 2); + m_cssSelector.remove('\\'); // CSS rule cannot have more options -> stop parsing return; } diff --git a/src/lib/app/mainapplication.cpp b/src/lib/app/mainapplication.cpp index 86d661da5..138874d37 100644 --- a/src/lib/app/mainapplication.cpp +++ b/src/lib/app/mainapplication.cpp @@ -357,6 +357,7 @@ void MainApplication::loadSettings() m_websettings->enablePersistentStorage(m_activeProfil); m_websettings->setAttribute(QWebSettings::LocalStorageEnabled, settings.value("HTML5StorageEnabled", true).toBool()); } + m_websettings->setAttribute(QWebSettings::DeveloperExtrasEnabled, true); m_websettings->setAttribute(QWebSettings::PluginsEnabled, settings.value("allowFlash", true).toBool()); m_websettings->setAttribute(QWebSettings::JavascriptEnabled, settings.value("allowJavaScript", true).toBool()); @@ -854,8 +855,7 @@ QUrl MainApplication::userStyleSheet(const QString &filePath) const { // Set default white background for all sites // Fixes issue with dark themes when sites don't set background - - QString userStyle /*= "body{background-color:white;}"*/; + QString userStyle /*= "html{background-color:white;}"*/; userStyle += AdBlockManager::instance()->elementHidingRules() + "{ display:none !important;}"; QFile file(filePath); diff --git a/src/lib/rss/rssnotification.cpp b/src/lib/rss/rssnotification.cpp index 1403dcbc7..0bd65f8b7 100644 --- a/src/lib/rss/rssnotification.cpp +++ b/src/lib/rss/rssnotification.cpp @@ -62,6 +62,8 @@ RSSNotification::RSSNotification(const QString &title, const QUrl &url, WebView* << RssApp("Yahoo!", "http://add.my.yahoo.com/rss?url=", QIcon(":/icons/sites/yahoo.png")); #ifdef Q_WS_X11 + // TODO: Not really clever solution. + // It should look in PATH if (QFile("/usr/bin/akregator").exists()) { m_rssApps << RssApp("Akregator", "/usr/bin/akregator -a ", QIcon(":/icons/sites/akregator.png"), DesktopApplication); }