Skip to content

Instantly share code, notes, and snippets.

@Tvangeste
Tvangeste / rcc.props
Last active June 12, 2022 02:38
Dependencies for qrc files.
<AdditionalDependencies Condition="'%(QtRCCCompile.AdditionalDependencies)' == ''">$(QTDIR)\bin\rcc.exe;$(MSBuildProjectFile)</AdditionalDependencies>
diff --git a/article_netmgr.cc b/article_netmgr.cc
index 2153220..86b456d 100644
--- a/article_netmgr.cc
+++ b/article_netmgr.cc
@@ -112,6 +112,14 @@ QNetworkReply * ArticleNetworkAccessManager::createRequest( Operation op,
}
}
+ // spoof User-Agent
+ if ( req.url().scheme().startsWith("http", Qt::CaseInsensitive))
@Tvangeste
Tvangeste / article-style.css
Last active October 31, 2022 04:25
My qt-style.css
#.dsl_headwords
#{
# white-space: nowrap;
#}
#.gddictname
#{
# width: 50%;
# white-space: nowrap;
# text-overflow: ellipsis;
# overflow: hidden;
@Tvangeste
Tvangeste / article-style.css
Created January 29, 2013 10:10
My article-style.css file GoldenDict
body
{
margin-top: 1px;
margin-right: 3px;
margin-left: 2px;
margin-bottom: 3px;
background: white;
font-family: TahomaPlus, Segoe UI, Palatino Linotype, Arial Unicode MS;
}
/*
Here's a CSS code to hide the most of GoldenDict's Scan Popup buttons.
Enable or disable them as you wish.
*/
/* ScanPopup #goBackButton, */
/* ScanPopup #queryError */
ScanPopup #goBackButton,
ScanPopup #goForwardButton,
ScanPopup #wordListButton,