aboutsummaryrefslogtreecommitdiffstats
path: root/background_scripts
AgeCommit message (Collapse)Author
2018-08-17togglePinTab command should take a count prefix.Stephen Blott
2018-08-17Refactor...Stephen Blott
Refactor code for selecting the tabs to which a tab command with a count prefic should apply.
2018-02-18allow javascript: URLs for custom search engines.Stephen Blott
For example, search the current site: cd: javascript:location='http://www.google.com/search?num=100&q=site:'+escape(location.hostname)+'+%s' Apparently an example like this has been on the Wiki for four years, but it has not been supported. However, the change is so trivial that it's worth doing anyway. Fixes #2956.
2018-02-16Remove "focused: true" from winConfig.Stephen Blott
According to: - https://bugzilla.mozilla.org/show_bug.cgi?id=1253129 and #2896, this: 1. causes Firefox to crash, and 2. isn't actually necessary. So just remove it. H/t @ris58h in #2896.
2018-02-13Make the reload command accept a count.Stephen Blott
Move the `reload` command to the background page and make it accept a count prefix. Fixes #674. Althought the demand for this is low and the use cases limited, it is a very vim-ish extension to the existing command.
2018-02-07tabConfig -> winConfig in openUrlInNewWindowAlliedEnvy
tabConfig doesn't exist in this scope.
2017-12-15Treat all mapping commands as lower case.Stephen Blott
On the options page, treat all user-defined mapping commands as lower case. Why? - `unmapAll` is not very vim-ish, and is inconsistent with `mapkey`. - If we were to introduce `vmap` for visual mode, then we would get `vUnmapAll`, which is hideous capitalisation. Possible down side? - I guess somebody might have disabled a `map` by capitalising it.
2017-12-14Fix createTab.Stephen Blott
Specifically, fix createTab with multiple URLs specified. Fixes #2868.
2017-12-02Only send link hints messages to frames which have registeredmrmr1993
This puts link hints frame behaviour back to matching fb00eaa6bd4ee8889d10a9ef9d976fefd3be7879 In particular, we go back to not sending link hints messages to frames that are too small (according to DomUtils.windowIsTooSmall).
2017-12-02Ensure that a port can only unregister its frameId if it's associatedmrmr1993
This is a more complete fix for issue #2125.
2017-12-02Fix link hints.Stephen Blott
43c7390f987fea063e7a97cd8b37c7b61d45f615 inadvertently broke link hints. Mention @mrmr1993.
2017-12-02Use portsForTab to decide whether Vimium can access a tab or notmrmr1993
2017-12-02Register ports for all frames that open themmrmr1993
2017-11-25Merge pull request #2711 from pyarmak/masterStephen Blott
Added UpToDate autocompletion engine
2017-11-25Remove background-page Clipboard operations.Stephen Blott
These are no longer needed following #2601. @mrmr1993... If these are ever needed again, then we can just revert this commit (and make them background commands again).
2017-11-25Use mkRepeatCommand in main.coffee.Stephen Blott
Tweak of #2601.
2017-11-25Merge pull request #2601 from mrmr1993/ff-copy-pasteStephen Blott
Enable Firefox clipboard commands
2017-11-24Add window and incognito options for createTab.Stephen Blott
Examples: # Just create new windows map X createTab window map X createTab incognito # Create windows with URLs map X createTab window https://developer.chrome.com/home https://github.com/philc/vimium map X createTab window URL1 URL2 URL3 `2X` creates two new windows, each with all of the indicated URLs. Fixes #2825.
2017-11-18FF: Use HUD frame for openCopiedUrlIn{Current,New}Tabmrmr1993
2017-11-02Fix typosmrmr1993
This should have no user-facing impact.
2017-10-19(FF android) Guard against undefined chrome.browserAction.setIconmrmr1993
2017-10-19(FF android) Guard against undefined chrome.windowsmrmr1993
2017-10-14Allow <c-[> to be mapped as a regular command.Stephen Blott
If map <c-[> someCommand is configured, then the hardwired `<c-[>` meaning `Escape` behaviour is disabled. Users who want to map `<c-[>` probably *never* use it as `Escape`. Fixes #2722.
2017-10-07Added UpToDate autocompletion enginePavel Yarmak
2017-09-30Merge branch 'curipha-search-compl-amazon-co-jp'Stephen Blott
2017-09-30Use Japan instead of Jp.Stephen Blott
2017-09-30Merge pull request #2665 from curipha/search-compl-google-co-jpStephen Blott
Search completion; add support for Google.co.jp completion
2017-09-30Merge pull request #2683 from mrmr1993/inject-css-for-framesStephen Blott
Inject user css into all frames
2017-09-29Inject custom user styles into all framesmrmr1993
This fixes #2594.
2017-09-29Use openerTabId in chrome.tabs.create when possiblemrmr1993
2017-09-23Search completion; add support for Google.co.jp completionTaichi
2017-09-23Search completion; add support for Amazon.co.jp completionTaichi
2017-09-21Add openUrlInNewWindow commandmrmr1993
2017-09-21FF: Simulate default action for clicking links with link hintsmrmr1993
2017-09-12Use browser.runtime.getBrowserInfo to identify Firefoxmrmr1993
2017-09-12Add Utils.isFirefoxmrmr1993
This also stops the content scripts from being injected into each frame on reload (in Firefox only). They do not successfully connect to the background page, and it causes considerable lag, so we lose nothing by doing this.
2017-08-31Update URLs to HTTPS in code, pages and docsDavid Beitey
Updating URLs to use HTTPS provides greater privacy and reduces the potential of having content modified whilst in transit (as it happening more and more by ISPs, networks, state actors etc). These URLs themselves have been tested and confirmed to work over HTTPS.
2017-08-15Fix search completion (Firefox).Stephen Blott
The problem is that Firefox balks at function properties within the response sent via `postMessage` (whereas Chrome does not). A concise and safe way to sanitize the response is to convert it to JSON and back. Fixes #2576.
2017-05-01FF - Fix updates from the exclusions popupmrmr1993
This stops |Exclusions| from holding a reference to the |value| parameter passed to |Settings.set|. In Firefox, this object is garbage collected when the owning context (the exclusions popup) is closed. The fix for all such cases in the future is to switch to using |Settings.get|, which implicitly does |JSON.parse JSON.stringify value| and thus returns an object in the same context as |Settings|. We could fix this generally by doing this for the |Settings.performPostUpdateHook| call in |Settings.set| instead. However, I'm not convinced that it warrants the overhead of a |JSON.parse| for every |Settings.set| call.
2017-04-21Firefox: Fix createTab.Stephen Blott
Firefox baulks at "about:newtab" in createTab (but seems happy with no URL specified). Chrome is also happy with no URL specified. (Does this mean that we don't need "about:newtab" ANYWHERE in the code base? Could Settings.defaults.newTabUrl just be ""?) Mention @mrmr1993.
2017-04-20Firefox: some history entries have no title.Stephen Blott
This causes `o`/`O` to crash (producing no suggestions). As a workaround, set any such title to "".
2017-04-18Merge pull request #2476 from mrmr1993/firefoxStephen Blott
Improve firefox support
2017-04-17Regenerate help page data when key bindings are updatedmrmr1993
2017-04-16Workaround type error for unsupported openerTabId in FFmrmr1993
2017-04-16Fallback to storage.local if storage.sync is not availablemrmr1993
2017-02-08Stop using deprecated key 'selected' of tabs; switch to 'active'mrmr1993
The documentation suggests that 'highlighted' is equivalent to 'selected'. However, multiple tabs can be highlighted in a window -- in fact, everywhere 'selected' was used, we wanted the unique active tab.
2017-02-08Stop using deprecated tabs.getAllInWindow; switch to tabs.querymrmr1993
2017-02-08Stop using deprecated tabs.getSelected; switch to tabs.querymrmr1993
2016-12-11Better wording fo command description.Stephen Blott
2016-12-11Documentation for updates.Stephen Blott