1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-16 12:02:10 +01:00
falkonOfficial/src/plugins/GreaseMonkey/data
Philipp Wiesemann 0e47899791 GreaseMonkey: Fix GM_listValues() listing nothing
The function GM_listValues() got broken when the source file "values.js"
was minimized into "values.min.js" because the optimizing tool was not
aware that the string containing the placeholder (%1) is not final and
will be changed later. It optimized away the expression which gets the
length of the string and replaced it with its static value (2). This was
a problem because not the length of the placeholder (%1) but the length
of the current script id is needed to extract prefixes from the keys in
the local storage. Failing to correctly extract the prefixes prevented
finding the entries for the current script. This was fixed by comparing
prefixes without extracting new strings. It works around the need to get
the length of the id string and therefore the breaking optimization.

An unrelated and redundant variable declaration was also removed.
2015-10-23 22:45:21 +02:00
..
bootstrap.js GreaseMonkey: Implement GM_ functions for userscripts 2015-05-25 11:47:32 +02:00
bootstrap.min.js GreaseMonkey: Implement GM_ functions for userscripts 2015-05-25 11:47:32 +02:00
icon.png Optimization of png icons for plugins 2013-05-04 23:21:38 +02:00
icon16.png [GreaseMonkey, AdBlock] Use 16x16 icons in statusbar 2013-06-03 15:50:57 +02:00
icon18.png [GreaseMonkey] Added icon to statusbar. 2013-06-02 19:09:41 +02:00
script.png Added GreaseMonkey + PIM plugins 2012-07-11 18:30:00 +02:00
values.js GreaseMonkey: Fix GM_listValues() listing nothing 2015-10-23 22:45:21 +02:00
values.min.js GreaseMonkey: Fix GM_listValues() listing nothing 2015-10-23 22:45:21 +02:00