mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-11 09:32:12 +01:00
Bump GreaseMonkey version number
GreaseMonkey now works the same (or even better) as with QtWebKit. The only difference is that GM_setClipboard is not implemented and GM_value functions are saving only to localStorage.
This commit is contained in:
parent
038e4f5014
commit
ad86572fff
|
@ -41,7 +41,7 @@ PluginSpec GM_Plugin::pluginSpec()
|
||||||
spec.name = "GreaseMonkey";
|
spec.name = "GreaseMonkey";
|
||||||
spec.info = "Userscripts for QupZilla";
|
spec.info = "Userscripts for QupZilla";
|
||||||
spec.description = "Provides support for userscripts (www.userscripts.org)";
|
spec.description = "Provides support for userscripts (www.userscripts.org)";
|
||||||
spec.version = "0.5.2";
|
spec.version = "0.6.0";
|
||||||
spec.author = "David Rosca <nowrep@gmail.com>";
|
spec.author = "David Rosca <nowrep@gmail.com>";
|
||||||
spec.icon = QPixmap(":gm/data/icon.png");
|
spec.icon = QPixmap(":gm/data/icon.png");
|
||||||
spec.hasSettings = true;
|
spec.hasSettings = true;
|
||||||
|
|
|
@ -281,14 +281,6 @@ void GM_Script::parseScript()
|
||||||
const QString script = fileData.mid(index).trimmed();
|
const QString script = fileData.mid(index).trimmed();
|
||||||
m_valid = !script.isEmpty();
|
m_valid = !script.isEmpty();
|
||||||
|
|
||||||
#if QTWEBENGINE_DISABLED
|
|
||||||
QString jscript("(function(){"
|
|
||||||
"function GM_getValue(name,val){return GM_getValueImpl('%1',name,val);}"
|
|
||||||
"function GM_setValue(name,val){return GM_setValueImpl('%1',name,val);}"
|
|
||||||
"function GM_deleteValue(name){return GM_deleteValueImpl('%1',name);}"
|
|
||||||
"function GM_listValues(){return GM_listValuesImpl('%1');}"
|
|
||||||
"\n%2\n})();");
|
|
||||||
#endif
|
|
||||||
const QString nspace = QCryptographicHash::hash(fullName().toUtf8(), QCryptographicHash::Md4).toHex();
|
const QString nspace = QCryptographicHash::hash(fullName().toUtf8(), QCryptographicHash::Md4).toHex();
|
||||||
const QString gmValues = m_manager->valuesScript().arg(nspace);
|
const QString gmValues = m_manager->valuesScript().arg(nspace);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user