Commit graph

3376 commits

Author SHA1 Message Date
Oliver Blanthorn 94e2d12daa
Switch to MutationObserver for iframe reinsertion 2024-10-11 14:33:15 +02:00
Oliver Blanthorn 6085a924a3
Prove concept of iframe reinsertion for bad websites 2024-09-19 14:02:51 +02:00
Oliver Blanthorn ed0e7efd1e
Fix inactive shadowroot recursion
Some checks failed
e2e / test (firefox, ubuntu) (push) Has been cancelled
e2e / test (firefox, windows) (push) Has been cancelled
e2e / test (firefoxesr, ubuntu) (push) Has been cancelled
lint / lint (lint) (push) Has been cancelled
lint / lint (mozilla) (push) Has been cancelled
lint / lint (unit) (push) Has been cancelled
Website / build (push) Has been cancelled
Website / deploy (push) Has been cancelled
2024-09-14 13:58:09 +02:00
Oliver Blanthorn e26ad8b314
Add :pin [index] and completions
Some checks failed
e2e / test (firefox, ubuntu) (push) Has been cancelled
e2e / test (firefox, windows) (push) Has been cancelled
e2e / test (firefoxesr, ubuntu) (push) Has been cancelled
lint / lint (lint) (push) Has been cancelled
lint / lint (mozilla) (push) Has been cancelled
lint / lint (unit) (push) Has been cancelled
Website / build (push) Has been cancelled
Website / deploy (push) Has been cancelled
2024-09-10 15:27:30 +02:00
glacambre 79c3e8942b
Fix #5039: update guard for JS hints
Some checks are pending
e2e / test (firefox, ubuntu) (push) Waiting to run
e2e / test (firefox, windows) (push) Waiting to run
e2e / test (firefoxesr, ubuntu) (push) Waiting to run
lint / lint (lint) (push) Waiting to run
lint / lint (mozilla) (push) Waiting to run
lint / lint (unit) (push) Waiting to run
Website / build (push) Waiting to run
Website / deploy (push) Blocked by required conditions
2024-09-08 13:31:44 +02:00
Oliver Blanthorn 0a73fe22a3
Revert "Swap to MinimalElement"
This reverts commit dbf3ba9af9de0a992265d517a3233a38234632c8.
2024-09-08 13:31:44 +02:00
Oliver Blanthorn b8555d08a2
Swap to MinimalElement
I think this is a bad idea because it's maintenance-intensive and
it breaks the country slider on DDG
2024-09-08 13:31:43 +02:00
Oliver Blanthorn 83e5bf4e24
Merge pull request #5025 from GHolk/focusinput-inside-shadow-dom
Some checks failed
e2e / test (firefox, ubuntu) (push) Has been cancelled
e2e / test (firefox, windows) (push) Has been cancelled
e2e / test (firefoxesr, ubuntu) (push) Has been cancelled
lint / lint (lint) (push) Has been cancelled
lint / lint (mozilla) (push) Has been cancelled
lint / lint (unit) (push) Has been cancelled
Website / build (push) Has been cancelled
Website / deploy (push) Has been cancelled
allow focusinput focus node in shadow-root
2024-08-20 12:05:16 +00:00
bennyyip f789440b77 Make followpage search all <a> tags 2024-08-20 04:43:56 +08:00
gholk 0cda170f4d allow focusinput focus node in shadow-root
It seem that document.contains is to check whether
the node is removed, but not to consider about the
shadow root.

The isConnected property mean whether the node is
connect to a document or a shadow root that
connected to the root document.
It is enough to check whether the document is
removed.
2024-07-22 19:39:47 +08:00
Maxim Pavlenko bffbd36bff Fix: #5018: Change limits on zoom from 300% to 500% 2024-07-10 15:38:20 +02:00
Oliver Blanthorn de5a1a414f
Fix #5015: add magic none proxy as override for autocontain
Some checks failed
e2e / test (firefox, ubuntu) (push) Has been cancelled
e2e / test (firefox, windows) (push) Has been cancelled
e2e / test (firefoxesr, ubuntu) (push) Has been cancelled
lint / lint (lint) (push) Has been cancelled
lint / lint (mozilla) (push) Has been cancelled
lint / lint (unit) (push) Has been cancelled
Website / build (push) Has been cancelled
Website / deploy (push) Has been cancelled
2024-06-30 19:04:02 +02:00
pvs 482081b5fe Add a flag to open a pinned tab 2024-06-08 09:27:19 -07:00
Alan Pearce 59b81195d4 interpret addresses ending with / as URLs
related to #1002
2024-06-06 19:44:25 +02:00
zorzem32 6ec36de909
Update config.ts 2024-06-05 13:16:20 +00:00
George Gemousakakis 389c2d28b4 added support for the colemak layout 2024-06-05 14:15:05 +03:00
Oliver Blanthorn d30d6d9df4
Make D error if used with a count 2024-06-01 12:57:45 +02:00
Oliver Blanthorn 4a4c9c7306
Fix ;r TTS not hinting all text 2024-05-23 12:30:24 +02:00
Oliver Blanthorn 43bca3791e
Remove most searchurls 2024-05-17 14:13:04 +02:00
Oliver Blanthorn bd23136c14
release 1.24.1 2024-04-07 17:10:48 +02:00
Mathieu Ablasou 371cc2ee71 Allow merging windows containing pinned tabs
Closes: https://github.com/tridactyl/tridactyl/issues/4952
2024-03-28 11:53:13 +01:00
Oliver Blanthorn f49e1c94bc
Fix #4946: make markjump notifcation optional 2024-03-14 16:29:20 +01:00
Oliver Blanthorn e0318feb69
Merge pull request #4930 from hejops/idemreader
prevent reader from being called more than once
2024-02-26 11:19:39 +00:00
Oliver Blanthorn b59b221f60
Cheer up linter 2024-02-24 18:56:36 +01:00
Oliver Blanthorn 41dbf29e0f
Fix #1454: add ;c context and ;: hover-with-mouse binds for Linux 2024-02-24 17:59:39 +01:00
Oliver Blanthorn d2c1ff847c
Fix #2127: make --tridactyl-font-size the base for more font sizes
This way users can edit it with Stylus or userContent.css
2024-02-24 17:56:48 +01:00
Oliver Blanthorn 80355eebbe
Merge pull request #4467 from GHolk/fillcmdline-focus-no-close
Do not hide ex cmdline after fillcmdline_tmp if it is focus
2024-02-24 16:14:35 +00:00
Oliver Blanthorn e92308e5ac
Merge pull request #4910 from GHolk/text2qr-expose
Expose node-qrcode as global variable in text2qr command page
2024-02-24 16:07:33 +00:00
Oliver Blanthorn ec0f793545
Merge pull request #4924 from dzhu/better-short-hintnames
Make short hint name generation more precise
2024-02-24 16:06:22 +00:00
Oliver Blanthorn c16d3c3353
Make :reader into a fake toggle 2024-02-24 17:01:20 +01:00
Oliver Blanthorn 18f9a8f47c
Merge pull request #4913 from roeyfuchs/issue_4901
closes #4901
2024-02-24 15:55:43 +00:00
Oliver Blanthorn e4ce4ddc95
Reword Christmas donation drive message 2024-02-24 16:55:24 +01:00
Joseph be381b2e42 prevent reader from being called more than once
fixes #4920
2024-02-22 19:24:04 +00:00
Valentin Boettcher f957ee2d56
add workman keymap 2024-02-21 13:00:10 -05:00
Danny Zhu 7d661df86b Make short hint name generation more precise
The previous method skipped too many or too few hint names in some
cases; the new one should skip the optimal number in all cases.

If the number of hints was equal to the number of hint characters, then
a hint name would be skipped unnecessarily. (In a way, that wasn't so
bad: the skipped hint name would be the first hint character and the
extra last hint name would then be the same character doubled, so typing
the first character once would select it. But if the hint character was
also a valid Tridactyl binding, then the full two-character hint name
would also trigger that binding.)

There were also (infinitely) many cases where too few hint names would
be skipped, leading to prefixes among the hint names. For example, if
the hint characters were "abc" and there were 8 hints, the previous
method would skip only 2 hint names, leading to "c" and "ca" both being
generated as hint names.

The new method correctly skips 0 and 3 hint names in those cases.
2024-02-15 21:58:16 -07:00
RoeyFuchs bbee5c65b3 closes #4901 - additional emoji 2024-02-04 19:37:13 +02:00
RoeyFuchs 112408db53 closes #4901 2024-02-03 23:46:15 +02:00
gholk 4dbd251d64 Expose the node-qrcode as global variable in qrcode page
so user can do whatever they want with node-qrcode
2024-02-01 23:08:01 +08:00
glacambre ee540db193 Enable accessing background window from content script with tri.bg 2024-01-26 20:31:51 +01:00
glacambre 1522b0e2dc lib/tabs.ts: enable accessing all tabs through tri.tabs 2024-01-26 18:56:17 +01:00
glacambre a0e4060a94 excmds.ts: document new tri.tabs object enabling access to tab windows 2024-01-24 08:04:53 +01:00
glacambre 37d841df2c Enable accessorless access to tab processes
This commit enables accessing content script values directly, like this:

(await tri.tabs[3].document.location.href)
tri.tabs[6].document.title = "New title!"
tri.tabs[9].tri.excmds.js("document.getElementById('blah').textContent").then(console.log)

Note that setting values, as shown in the above document.title example
above, cannot be synchronously, i.e. there is no way to wait for the
value to have been written is the content process before the background
process moves on to the next instruction. This is considered okay as
writing to the content process synchronously can be done with
(await tri.excmds.js("document.title = 'New title!'")) instead.

At the moment, accessing all tabs by not specifying an index in tri.tabs
is still not supported.
2024-01-24 07:49:57 +01:00
glacambre 3806445d85 Implement basic proxy providing easy access to tabs from background
This commit implements a basic proxy enabling access to arbitrary
values/functions in tabs from the background script, like this:

tri.tabs[3].document.title.get().then(console.log)
tri.tabs[3].document.title.set("New title!").then(console.log)
tri.tabs[9].alert.apply("Hello world!")
tri.tabs[12].tri.excmds.js.apply("alert('Hello world!')")

Ease of implementation was chosen above ease of use. Enabling reading,
writing and calling directly through property accesses instead of
forcing the use of .get()/.set()/.apply() will be attempted in another
commit.
2024-01-24 07:49:57 +01:00
Oliver Blanthorn 61c302e0c0
Fix lint issues 2024-01-23 19:57:53 +01:00
Oliver Blanthorn dd535a4e32
Merge pull request #4791 from petoncle/fix-wrong-behavior-of-tabopen-with-containers
Fix wrong behavior of :tabopen with containers
2023-12-16 19:20:30 +00:00
Oliver Blanthorn 159d1ec0c0
Merge pull request #4844 from jumper047/feature/next-prev-line
Add functions to move cursor up and down in text areas
2023-12-16 19:18:18 +00:00
Oliver Blanthorn ec342c4839
Merge pull request #4809 from petoncle/attempt-to-buffer-keyboard-events-until-commandline-opened
Reduce likelihood of losing characters while command line is opening
2023-12-16 19:01:00 +00:00
petoncle ac7d7e577b Buffer page keys only for commands that open and focus the cmdline 2023-12-16 18:41:15 +01:00
Oliver Blanthorn 304e5941bb
Cheer up linter 2023-12-12 19:32:07 +01:00
Oliver Blanthorn 72dfbddf3f
release 1.24.0 2023-12-12 19:17:17 +01:00