Commit graph

3088 commits

Author SHA1 Message Date
Oliver Blanthorn
a1ee126746
Fix #4234: document superignore in more places 2022-05-15 14:42:36 +02:00
gholk
ceb5b71697
[PATCH] Fix this binding in WIP cheaper URI change event
Bind the pushState and replaceState to history
so they will not lost their this.
Except the this binding problem, I'm not sure whether
this URI change event code will work.
2022-05-10 18:42:50 +02:00
Oliver Blanthorn
6f96435428
Merge branch 'feat/proxy' 2022-05-06 12:23:56 +02:00
Oliver Blanthorn
d9471cbc65
Merge pull request #4036 from pvs/feat/proxy
Add proxy support
2022-05-06 12:23:17 +02:00
Oliver Blanthorn
a37a2a06af
Minor improvements to help messages 2022-05-06 12:22:53 +02:00
Oliver Blanthorn
fc32cc8e33
Clarify where mark help messages come from 2022-05-06 11:36:36 +02:00
Oliver Blanthorn
d1f662a6b7
Fix #4193: add jsurls 2022-04-27 11:08:35 +02:00
Oliver Blanthorn
ab5e069fae
Merge pull request #4194 from rsekman/search-slicing
add array slicing to searchurls
2022-04-27 10:48:52 +02:00
Oliver Blanthorn
84385d25c3
Update help for searchurl array slicing 2022-04-27 10:48:28 +02:00
Oliver Blanthorn
3d5b558799
Merge pull request #4126 from gsbabil/gsbabil/fix-saveas-illegal-character
Add illegal character sanitisation in filename
2022-04-26 15:58:32 +02:00
Oliver Blanthorn
14aa92856b
Use platform specific defaults and rename settings 2022-04-25 11:45:00 +02:00
Robin Ekman
782b93db5f add array slicing to searchurls
see #4193
2022-04-12 18:54:24 +02:00
gholk
9ce96267e2 Fix bookmarklet eval string escape
In javascript double quote string,
both `"` and `\` should be escaped.
2022-04-10 20:17:03 +08:00
gholk
9cc069f372 Fix #4158: bookmarklet execution bug
In original implementation, a script tag will leave in html,
and the bookmarklet in URL Encoding will not work.
Moreover, if bookmarklet return a string after evaluation,
the string should replace current page's html content.

One can execute bookmarklet by assign it to `window.location.href`,
but it does not work in add-on's context,
so I assign it with `window.eval()`.
2022-04-10 20:03:06 +08:00
Oliver Blanthorn
2f19842820
Fix #4168: make current tab appear at bottom 2022-04-04 18:21:29 +02:00
Oliver Blanthorn
56d4427418
Expose sendNativeMsg for advanced users 2022-04-01 22:28:09 +02:00
Oliver Blanthorn
e95b5222c9
Fix drawingstop alias bug 2022-03-25 15:25:26 +01:00
Oliver Blanthorn
21b7546baf
release 1.22.1 2022-03-23 15:52:04 +01:00
Colin Caine
05e8163a8a
Fix header line-height on new tab page 2022-03-17 16:51:43 +00:00
Oliver Blanthorn
ee24c8c807
Bikeshed with prettier 2022-03-03 12:26:53 +01:00
Oliver Blanthorn
5feae9489a
Minor changes for eslint 2022-03-03 12:26:34 +01:00
Icelk
0179fbc445
Fix #453: hide mode indicator on printed pages 2022-03-01 15:17:21 +01:00
David Scotson
710d566285 fix #4005 newtab changelog background color tweak 2022-02-27 20:20:51 +00:00
Babil G. Sarwar
24b684330d
Add illegal character sanitisation in filename
Firefox's download API [0] currently does not support invalid characters
in the "saveAs" value, and the following error is thrown if download
filename contains illegal character(s). The issue has been reported to
the Firefox team, and currently it is in "WONTFIX" status [1].

  "filename must not contain illegal characters"

The issue prevents Tridactyl from downloading files from URLs with
certain "illegal" characters, e.g. ":" (colon), that are valid for URLs,
but are rejected in the filenames by the underlying OS's file system.

The default behaviour for operating systems like Mac is to replace the
invalid character(s) with "space" when saving the file to the disk.

The patches here implement basic filename sanitisation support by
introducing the following three configuration parameters in config.ts:

  - illegalfilenamechars
  - illegalwindowsfilenames
  - illegalfilenamereplacement

Essentially, if the "illegalfilenamechars" are found in the downloaded
filename, these characters are replaced by the
"illegalfilenamereplacement" value. The same logic is applied to each of
the comma-separated "illegalwindowsfilenames" values; if any of these
names matches the "saveAs" file-name, the file-name is suffixed with the
"illegalfilenamereplacement" value.

[0] https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/downloads/download
[1] https://bugzilla.mozilla.org/show_bug.cgi?id=1390473
2022-02-27 15:38:28 +11:00
Oliver Blanthorn
b292731ab7
Merge pull request #4115 from davidscotson/auto_dark_new_tab
Fix tridactyl#2510 use auto instead of default.css for content pages
2022-02-25 11:41:52 +00:00
Oliver Blanthorn
d71b4de58e
Merge pull request #4114 from mhijazi1/tabpush-exclude-current-window
Exclude current window from tabpush list
2022-02-24 13:44:39 +00:00
Oliver Blanthorn
e4b1dab9e2
Merge pull request #4116 from tridactyl/implement_goto
implement goto
2022-02-24 13:31:15 +00:00
glacambre
44ee294af1 Implement :goto
This command lets you jump to an arbitrary selector. It has completions
that give you a list of elements you may jump to. This list defaults to
heading elements but is configurable through the 'gotoselector'
configuration option.
2022-02-21 08:08:29 +01:00
David Scotson
59cd337143 Fix tridactyl#2510 use auto instead of default.css 2022-02-19 09:27:32 +00:00
Mo Hijazi
f332425194 exclude current window from tabpush list 2022-02-18 20:29:01 -05:00
Mo
7ba37bd162 exclude current window from list when tabgrab is used 2022-02-16 02:19:15 +00:00
pvs
bf85ed783e autocontain: add support for firefox-default/none as a container name 2022-02-01 00:14:52 -08:00
pvs
44dba9c482 config: add a setting to disable proxy settings 2022-02-01 00:14:51 -08:00
pvs
5daede1333 docs: address review comments 2022-02-01 00:14:50 -08:00
pvs
1446179169 Check if proxy exists when assigning, setting default proxy 2022-02-01 00:14:49 -08:00
pvs
3abeaaceaa Improve docstring 2022-02-01 00:14:47 -08:00
pvs
8dcc709b98 Add setting to set a default proxy for all URLs 2022-02-01 00:14:46 -08:00
Oliver Blanthorn
3966eaa3b8 Bump min FF version to 91.1.0
This is required for the proxy permission. FF ESR has been
at this version since September 2020 so we're probably safe
to increment it without too much drama.

(Hat-tip to the mozilla linter for pointing this out.)
2022-02-01 00:14:42 -08:00
pvs
672858bbb8 Add proxy support 2022-02-01 00:14:38 -08:00
Mariusz Kaczmarczyk
d4a3834327 Add a tutor page for marks and fix the comment for markadd 2022-01-31 00:06:12 +01:00
Oliver Blanthorn
a72b2b4a3e
Document new proxy permission request 2022-01-27 16:14:52 +01:00
Oliver Blanthorn
47df219945
Fix #4069: keep track of killed elements again
This line of code disappeared in 689a649624
2022-01-12 16:37:20 +01:00
Oliver Blanthorn
46045b56ae
Add wintitle: #4049 2022-01-11 12:58:01 +01:00
Oliver Blanthorn
1a1a0fab94
Make prettier happy 2022-01-11 12:58:00 +01:00
Oliver Blanthorn
71793d19fd
Merge pull request #4024 from pvs/fix-3915
Fix #3915
2022-01-10 18:42:00 +00:00
Oliver Blanthorn
6957bfd26e
Merge pull request #4029 from pvs/fix-3545
aucon: sort filtered matches to get the longest match
2022-01-02 15:14:19 +00:00
Oliver Blanthorn
258cc39e3b
Explain behaviour of multiple aucon matches 2022-01-02 16:13:45 +01:00
Calvin T. Nesbitt
47487b31e2
Allow mode change to restore mode indicator.
Issue #2690
Rather than delete the statusIndicator span, apply the TridactylInvisible class. This class includes pointer-events:none, which prevents conditional overlap with the statusIndicator EventListener "mouseenter".
2021-12-29 16:02:01 -05:00
Mariusz Kaczmarczyk
38edfc1adb Make markadd background to allow checking for incognito 2021-12-23 16:41:41 +01:00
Mariusz Kaczmarczyk
7f426f84b2 Merge branch 'master' into local-and-global-marks 2021-12-23 16:21:00 +01:00