1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-16 03:52:10 +01:00
Commit Graph

206 Commits

Author SHA1 Message Date
David Rosca
f93ea0e199 Fix use of deprecated QStyleOptions 2016-04-24 10:49:54 +02:00
David Rosca
56399c0fab Fix use of deprecated QStyleOptions 2016-04-24 10:17:13 +02:00
David Rosca
6c0f363eca Update translations
Closes #1938
2016-04-13 09:59:47 +02:00
David Rosca
e40f0a366c Update empty.ts translation files 2016-04-03 11:21:03 +02:00
David Rosca
7b48b34f8c Pull translations from Transifex 2016-04-03 11:19:13 +02:00
David Rosca
fc17444438 GM: Don't try to install userscripts from XHR
See #1903
2016-03-30 13:23:19 +02:00
David Rosca
a66e179b40 Misc fixes
Correctly initialize QJsonParserError
2016-03-30 11:53:41 +02:00
David Rosca
385f10e345 GM: Only download scripts when user clicks on link
Closes #1903
2016-03-30 08:40:00 +02:00
David Rosca
11792ee778 GM_Downloader: Fix missing emit error()
@trnkava1
2016-03-20 20:02:15 +01:00
David Rosca
6eb0693e7d Remove FollowRedirectReply
QNetworkAccessManager now supports redirects, so there is
no need for it anymore.
2016-03-20 19:59:52 +01:00
David Rosca
2f91f81089 GM Settings: Fix redrawing items when script updating state changes 2016-03-20 19:22:26 +01:00
trnkava1
b0b2820180 Greasemonkey: add script updating
- Fixed parsing @updateURL/@downloadURL
- Updating is only manual
- User have to click on update button located in Greasemonkey settings
- Update works just like download
- New version is not being checked, original script is replaced
- Fixed coding style issues

Closes #1653
2016-03-20 19:05:26 +01:00
David Rosca
46e0b9d807 GreaseMonkey: Implement include/exclude matching
Somehow I was under false impression that QtWebEngineScript
takes care of the metadata parsing. It does not, so we must
run the script only on correct sites.
2016-02-29 17:18:45 +01:00
David Rosca
4f5d3193ae GreaseMonkey: Remove GM_UrlMatcher 2016-02-28 18:29:23 +01:00
David Rosca
a37fadd8dc Don't use C++11 for with Qt containers 2016-02-27 22:13:33 +01:00
David Rosca
c2b5b479a4 GreaseMonkey: Don't assume metadata block is at the start of script
See #1869
2016-02-27 17:59:27 +01:00
David Rosca
0da388f206 GreaseMonkey: Add support for run-at: document-idle 2016-02-27 17:31:01 +01:00
David Rosca
7ac45b75d7 GreaseMonkey: Remove old url from plugin description
Closes #1869
2016-02-27 17:14:03 +01:00
David Rosca
6e10e6ac92 Update translations 2016-02-15 10:10:03 +01:00
David Rosca
4a8d8fde59 Fix build with latest Qt 5.6 snapshot
Closes #1797
2015-12-09 19:33:54 +01:00
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
David Rosca
cefe1bce54 Remove remaining Qt 4 code 2015-10-15 17:57:03 +02:00
David Rosca
d0f662d599 GreaseMonkey: Use url interceptor for downloading scripts 2015-10-08 23:32:18 +02:00
David Rosca
db058ff194 Remove use of QNetworkRequest in LoadRequest 2015-10-06 09:46:23 +02:00
David Rosca
74e02dd1e3 Revert "Bring back AutoScroll plugin"
This reverts commit fa2779e6b9.
2015-10-02 14:48:25 +02:00
David Rosca
fa2779e6b9 Bring back AutoScroll plugin 2015-08-30 21:15:18 +02:00
David Rosca
a745e4776f Fix build with Qt 5.5rc 2015-06-24 10:46:57 +02:00
David Rosca
878ed65753 GreaseMonkey: Show script dialog when creating new user script 2015-05-28 10:08:58 +02:00
David Rosca
146fdc953f GreaseMonkey: Allow userscripts with empty body (just metadata header) 2015-05-28 10:06:41 +02:00
David Rosca
26f0912845 GM_Settings: Add button to create new user script 2015-05-28 10:03:33 +02:00
David Rosca
1c6e9fd036 GM_Script: Parse @updateURL metadata entry 2015-05-28 08:44:16 +02:00
David Rosca
fc606e2019 GreaseMonkey: Don't parse pattern in GM_UrlMatcher
Url matching is now done by QtWebEngine
2015-05-28 08:39:33 +02:00
David Rosca
9c7bfb1c94 GreaseMonkey: Fix removing/updating userscripts 2015-05-27 19:48:40 +02:00
David Rosca
ad86572fff 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.
2015-05-25 11:48:38 +02:00
David Rosca
038e4f5014 GreaseMonkey: Implement GM_ functions for userscripts 2015-05-25 11:47:32 +02:00
David Rosca
f95d46953f GreaseMonkey: Disable building JSObject 2015-05-25 10:46:30 +02:00
David Rosca
e825f0268b Bring back GreaseMonkey
Everything seems to work just fine. The only thing that doesn't
work now are GM_setValue and GM_getValue functions.
2015-05-24 23:16:01 +02:00
S. Razi Alavizadeh
94afd29d67 Windows,Qt5: Fixed compile issue.
- It fixes: error: C2308: concatenating mismatched strings Concatenating wide
- See: http://blog.qt.digia.com/blog/2014/06/13/qt-weekly-13-qstringliteral/
2014-12-24 23:38:38 +03:30
David Rosca
478b5ddb84 Use open() instead of exec() in all dialogs
Avoid blocking exec().

Closes #1515
2014-11-07 18:08:12 +01:00
David Rosca
dc29f6bde5 QzTools: Add function to obtain url of QWebFrame
QWebFrame::url() may be empty, and in that case QWebFrame::baseUrl()
should be used

The issue with empty frame url caused AutoFill to not complete
such frames.

Closes #1465
2014-09-29 16:14:49 +02:00
David Rosca
016b2f118c Pulled translations from Transifex
[ci-skip]
2014-09-25 18:15:14 +02:00
David Rosca
795bb04acc GreaseMonkey: Fix scripts sometimes not running in frames
Check for document.readyState and if it is "complete", run
the script immediately instead of adding event listener for
DOMContentLoaded that already fired
2014-09-17 09:14:04 +02:00
David Rosca
cf43bc3269 GreaseMonkey: Add GM_setClipboard function available to scripts
Also update GM_openInTab to return created window object
2014-09-16 20:30:04 +02:00
David Rosca
f86d1b8f2d GreaseMonkey: Run scripts on DOMContentLoaded event capture
Fixes second part of  #1457 (not working on settings, identities, ..
pages)
2014-09-16 17:18:13 +02:00
David Rosca
171267cfb0 GreaseMonkey: Correctly run scripts in frames
Closes #1457
2014-09-16 16:58:36 +02:00
David Rosca
0eef26f843 GreaseMonkey: Use openuserjs.org instead of dead userscripts.org 2014-09-16 15:56:55 +02:00
David Rosca
464f05962e Plugins: Use settings path without trailing slash 2014-09-16 15:20:09 +02:00
David Rosca
e7646f1fbe Pulled translations from Transifex 2014-05-04 21:02:20 +02:00
David Rosca
6bf9ae104f Updated translation strings
[ci skip]
2014-05-04 20:56:01 +02:00
David Rosca
5f8ac0b70a [GreaseMonkey] Fix coding style 2014-05-02 13:38:54 +02:00
David Rosca
6ac5b913e0 [Translations] Removed sr@Ijekavian translations (with capital I)
[ci skip]
2014-04-26 16:21:31 +02:00
David Rosca
445747155f [GreaseMonkey] Fixed downloading scripts to correct directory 2014-04-26 13:21:39 +02:00
David Rosca
2bbde2a3a8 [Translations] Pulled translations from Transifex 2014-04-26 13:03:47 +02:00
David Rosca
535cc3e73a [QzCommon] Move constants initialization into source file (.cpp)
Plugins are now checking for a match of version that were built with
in Plugin::testPlugin() function.
2014-04-17 15:20:54 +02:00
nowrep
463fa96e04 [Build] Fixed building with Qt5 2014-04-06 13:50:09 +02:00
nowrep
b73751f497 [GreaseMonkey] Cleanup of GM_Downloader code 2014-03-31 12:37:24 +02:00
nowrep
9c67d874e7 [Translations] Updated plugins translations 2014-03-29 15:47:38 +01:00
nowrep
3d23f3eb02 [WebTab] Move more code into WebTab, instead of handling in TabWidget/TabBar
This also fixes showing tab icon after detaching tab
2014-03-18 20:00:34 +01:00
nowrep
fe0b03fdb7 Include QDebug in qzcommon.h
It's annoying to always include it just to remove a moment after...
2014-03-16 13:22:41 +01:00
nowrep
34cb20e82a Updated translations 2014-03-10 20:55:31 +01:00
Mladen Pejaković
ecfc987b4f [Translations] Update Serbian language 2014-03-10 19:47:27 +01:00
nowrep
2e9ce1ba90 [CodeCleanup] Major cleanup in MainApplication class 2014-03-10 00:47:07 +01:00
nowrep
214279e3bb [DataPaths] Added new class DataPaths
This class holds all paths now (instead of MainApplication)
Renamed ProfileUpdater -> ProfileManager
ProfileManager is now responsible for all operations with profiles
2014-03-09 21:51:42 +01:00
nowrep
edbb87bd1f [CodeCleanup] IconProvider now have static methods for getting icons 2014-03-07 18:03:42 +01:00
nowrep
74883f8af4 [Building] Use QZ_DESTDIR variable for $SRC/bin directory
Should fix problems with shadow builds.
Closes #1252
2014-03-04 15:14:19 +01:00
nowrep
404fa68a1b [Cleanup] Renamed QupZilla class to BrowserWindow 2014-02-19 22:07:21 +01:00
nowrep
a4541da935 [Plugins] Updated translations 2014-02-18 17:23:14 +01:00
nowrep
a22b40db9d Updated translations from Transifex 2014-02-13 17:06:15 +01:00
nowrep
260447e414 [coverity] Fixes for issues found by scan.coverity.com 2014-02-01 19:21:49 +01:00
Mladen Pejaković
77d10dbec7 [Translations] Serbian files update 2014-01-27 15:27:33 +01:00
nowrep
585da812dd Development version 1.7.0 2014-01-26 19:12:34 +01:00
nowrep
80e4575517 [Translations] Updated translations from Transifex
Also removed incomplete (less than 60%) translations
2014-01-26 18:46:45 +01:00
Jonathan Hooverman
d917f43cf0 Updated copyright year to 2014 2014-01-11 16:11:42 +01:00
nowrep
4e4e653f9f Version 1.6.0 2014-01-01 20:55:33 +01:00
nowrep
da15e5868d [CodingStyle] Don't use references when assigning to local variable
Let the compiler do the optimization
2013-12-30 13:43:48 +01:00
nowrep
efe1d4d125 [Translations] Pulled plugins translations from Transifex 2013-12-06 22:32:58 +01:00
Mladen Pejaković
1fcef58e8b Serbian translations update 2013-09-20 23:48:00 +02:00
nowrep
f527a837db Added Arabic translation to project files (.pro) 2013-09-19 12:02:53 +02:00
Muhammad Fawwaz Orabi
a6466bbe15 Updated Arabic translations 2013-09-18 09:20:10 +03:00
Muhammad Fawwaz Orabi
740c8d7f4e Added complete Arabic translations for the main application and plugins, the coordinator on transifex does not seem to be active. 2013-09-18 09:04:36 +03:00
nowrep
567d6c74f4 GreaseMonkey: Run usercscripts in all frames on page 2013-07-29 17:55:35 +02:00
nowrep
324ea1ec66 Updated translations from transifex 2013-07-28 20:51:45 +02:00
S. Razi Alavizadeh
b472bd2021 [GreaseMonkey] set list of userscripts as LTR widget.
-its contents are in LTR regardless of interface language.
-Closes #967
2013-07-08 14:04:19 +04:30
S. Razi Alavizadeh
eac8af1b51 [Windows] Fixed compile issue. 2013-06-17 03:46:50 +04:30
nowrep
d64a86ab7e Added new translations into project and resource files 2013-06-16 23:45:27 +02:00
nowrep
19f8c13c65 Pulled new translations (with 60+ % completed) from Transifex 2013-06-16 23:09:02 +02:00
nowrep
61ce1cb904 Updated translations from Transifex 2013-06-16 23:04:10 +02:00
nowrep
f4315304f7 [GreaseMonkey] Fixed buttons in script list with RTL layout. 2013-06-10 23:06:17 +02:00
nowrep
8e9ea139db Make GnomeKeyring and KWallet plugins translatable. 2013-06-08 21:04:58 +02:00
nowrep
0e478a56d8 [Building] Use DEPENDPATH to correctly generate dependencies. 2013-06-04 23:18:55 +02:00
nowrep
58c0c77479 [GreaseMonkey, AdBlock] Use 16x16 icons in statusbar 2013-06-03 15:50:57 +02:00
nowrep
48528b36bf [GreaseMonkey] Correctly remove icons from statusbar on unload. 2013-06-03 15:42:14 +02:00
nowrep
7b736ed9df [GreaseMonkey] Added icon to statusbar.
Closes #741
2013-06-02 19:09:41 +02:00
nowrep
4b0552e3ef [GreaseMonkey] Added "Edit in text editor" button to script info. 2013-06-02 18:25:25 +02:00
nowrep
8934c3842d [GreaseMonkey] Cleanup project file. 2013-05-25 00:29:05 +02:00
nowrep
5ee5d66e18 [GreaseMonkey] Fixed loading userscripts when first enabling plugin. 2013-05-24 14:57:33 +02:00
nowrep
a172327992 [Plugins] Added InitState to plugin's init() function 2013-05-24 11:03:16 +02:00
nowrep
0fe79f3f71 Updated translations 2013-05-17 15:57:17 +02:00
Mladen Pejaković
39e6e1a0f1 Optimization of png icons for plugins 2013-05-04 23:21:38 +02:00
nowrep
faeba013bc Fixed building with Qt 5 2013-04-03 21:14:06 +02:00