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.
remotes/origin/falkon
David Rosca 11 years ago
parent 038e4f5014
commit ad86572fff
  1. 2
      src/plugins/GreaseMonkey/gm_plugin.cpp
  2. 8
      src/plugins/GreaseMonkey/gm_script.cpp

@ -41,7 +41,7 @@ PluginSpec GM_Plugin::pluginSpec()
spec.name = "GreaseMonkey";
spec.info = "Userscripts for QupZilla";
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.icon = QPixmap(":gm/data/icon.png");
spec.hasSettings = true;

@ -281,14 +281,6 @@ void GM_Script::parseScript()
const QString script = fileData.mid(index).trimmed();
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 gmValues = m_manager->valuesScript().arg(nspace);

Loading…
Cancel
Save