Commit graph

23 commits

Author SHA1 Message Date
Oliver Blanthorn
be36b6c2bd
Rename old setting 2021-07-20 13:00:46 +02:00
Oliver Blanthorn
6c701fd83b
Disable iframe if Tridactyl is disabled 2021-07-04 17:42:49 +02:00
Oliver Blanthorn
239566a2aa
Fix about a third of the sites in #639 2021-01-09 22:40:37 +01:00
Oliver Blanthorn
a3d9f5c942
Switch to no-unused-vars-experimental
`no-unused-vars` doesn't work for types so we had to switch
2020-12-16 16:48:57 +01:00
Oliver Blanthorn
09e19896cf
Grasp the nettle: run prettier on all of src 2020-07-01 18:38:02 +01:00
Oliver Blanthorn
c919209186
Remove outdated comment 2020-06-10 18:01:27 +01:00
Oliver Blanthorn
06683b2bcf
Only hide hoverlink on first display of commandline 2020-06-10 17:57:41 +01:00
Oliver Blanthorn
854b0f0e93
Try to mitigate keys being stolen from commandline 2020-06-10 17:21:26 +01:00
Oliver Blanthorn
5dd5b620a8
Prevent scrolling to pretend link
Also remove the hash as it was ugly and served no purpose.
2020-06-10 16:54:40 +01:00
Oliver Blanthorn
17d9161e18
Hide hoverlink on command line open
Inspired by VVimpulation - 53065d015d

Currently scrolls page to the bottom; should fix that before merging.
2020-06-10 16:44:23 +01:00
Saul Reynolds-Haertle
031883e85c browser.extension.getURL -> browser.runtime.getURL
Function is deprecated:
https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/extension/getURL

Replacement has essentially identical functionality:
https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/runtime/getURL

I'm sure that there's _some_ difference between the "path in install
directory" and "path relative to manifest.json", but I don't think
that we're going to be the ones running into it.
2019-05-26 22:03:34 -07:00
glacambre
2b11d1d464
TSLint: re-enable prefer-const rule 2019-04-14 08:01:26 +02:00
glacambre
ff8f313aa5
Turn double-equals into triple-equals
See https://github.com/tridactyl/tridactyl/pull/1451
2019-04-10 12:28:47 +02:00
glacambre
8f77bdc0fe
TSLint: re-enable no-try-promise rule 2019-04-04 06:41:25 +02:00
glacambre
c259283e96
excmds.ts: Move hidecmdline to content script 2018-12-20 07:47:54 +01:00
glacambre
12669411b0
commandline_content.ts: Don't instantiate multiple command lines
https://github.com/tridactyl/tridactyl/issues/1237 is caused by multiple
command lines being instantiated in the tab. All command lines receive
the "fillcmdline tabopen" message, only one receives the key events
generated by typing stuff in the command line and then they all receive
the "ex.accept_line" message.

There can be two causes ; either Firefox loads multiple Tridactyls
(unlikely) or we load multiple commandlines (more likely). Moving
command line creation out of init() should fix this as the worst that
can happen now when init() is called twice is that the command line is
re-inserted in the document (before that we could have created multiple
command lines).
2018-12-15 22:25:48 +01:00
glacambre
2b44d73ac9
Turn noiframeon setting into a site-specific setting
As discussed on riot, turning noiframeon into a site-specific setting
is a good thing for consistency. This commit also adds a deprecation
warning when users try to `:set noiframeon` and updates the
troubleshooting guide.
2018-11-28 07:58:46 +01:00
glacambre
3f6dee0342
commandline_content.ts: Move try/catch out of init() function
The try/catch in init() prevents errors from bubbling up and thus
also prevents the document.addEventListener("DOMContentLoaded", init)
call from being performed. We fix this by removing the try/catch from
init() and adding a new one in the document.addEventListener call.
2018-11-28 07:07:41 +01:00
glacambre
2ad7d4a9fb
commandline_content.ts: Fix cmdline not being inserted in non-html pages
This commit fixes the command line not appearing on
https://www.haiku-os.org/docs/HIG/index.xml. The problem was that
document.createElement uses the namespace of the current document, which
for the haiku-os page was a docbook namespace. This caused the created
iframe to have default docbook attributes and none of the regular html
ones (e.g. contentWindow).

Closes https://github.com/tridactyl/tridactyl/issues/1165 .
2018-11-18 14:28:33 +01:00
Saul Reynolds-Haertle
987bf32976 move src/styling.ts into src/content 2018-09-29 18:03:36 -07:00
Saul Reynolds-Haertle
3160137c57 move src/messaging.ts to src/lib/ 2018-09-29 18:03:36 -07:00
Saul Reynolds-Haertle
c531aa5481 Move src/config.ts to src/lib/ 2018-09-29 18:03:36 -07:00
Saul Reynolds-Haertle
539fcb18c1 Move src/commandline_content.ts to src/content/ 2018-09-29 18:03:36 -07:00
Renamed from src/commandline_content.ts (Browse further)