aboutsummaryrefslogtreecommitdiffstats
path: root/content_scripts
AgeCommit message (Collapse)Author
2015-06-03Modes, better comments.Stephen Blott
2015-06-03Add mark commands to README, more simple refactoring.Stephen Blott
2015-06-03Add mark commands to README, simple refactoring.Stephen Blott
2015-06-03Refactor (to setPreviousPosition) to clarify Marks logic.Stephen Blott
2015-06-03Also set previous position for before global mark movement.Stephen Blott
2015-06-03Re-implement Marks, incl `` binding.Stephen Blott
2015-06-03Fix tests for #1713...Stephen Blott
... which is weird, because the tests are passing here. Let's see what Travis makes of this.
2015-06-03Refactor to avoid having to cover all keyboard event cases.Stephen Blott
It's pretty common that we want to suppress all keyboard events, so let's support that in modes.coffee, thereby simplifying handlers elsewhere.
2015-06-03Fix marks (incl. global marks)...Stephen Blott
Fixes #1712: - Make global marks work. - Add mode indicator. - Don't fail for global marks on background page if mark is not set. - Give HUD warning for global marks if global mark is not set. (The diff is big but, which the exception of infrastructure refactoring, the main change is to not exit on <Shift>, thereby fixing #1712).
2015-06-01Merge branch 'unified-settings-implementation'Stephen Blott
2015-06-01Remove LinkHints.init()...Stephen Blott
LinkHints.init() isn't doing anything.
2015-06-01Re-work unified settings.Stephen Blott
This is a minor re-working of #1705 from @mrmr1993. The main changes are: - Simplify initialisation logic. - Always initialise Settings immediately and automatically (ie. don't initialise Settings separately and manually in the background, content scripts, options and tests). - Get rid of addEventListener (it's only being used for on "load"). - Add Settings.use() in its place.
2015-05-31Update the comment by the settings object in the frontendmrmr1993
2015-05-31Remove all remaining references to frontend settingsmrmr1993
2015-05-31Init Settings directly instead of via settings.load, and only do it oncemrmr1993
2015-05-31Replace settings.addEventListener with Settings.addEventListener in the frontendmrmr1993
2015-05-31Replace settings.set with Settings.set in the frontendmrmr1993
2015-05-31Replace settings.get with Settings.get in the frontendmrmr1993
2015-05-31Rewrite settings as a tight wrapper around Settings, tweaks for testsmrmr1993
2015-05-31Fix options page error.Stephen Blott
"setIcon" should be in the list of messages delivered to the options page (and for which there is no handler).
2015-05-31Merge pull request #1697 from smblott-github/vomnibar-map-with-prepopulated-textStephen Blott
Direct keyboard access to custom-search engines via keyword flag
2015-05-31Merge pull request #1699 from smblott-github/add-link-to-wiki-to-help-pageStephen Blott
Add a link to the wiki on the help page.
2015-05-30When showing the help dialog, simulate-click it.Stephen Blott
On smaller screens (and with the advanced options unfolded), the help page can need scrolling. Currently, you have to click it to give it the focus. Here, we simulate-click it, so that "j" and "k" scrolling is active immediately.
2015-05-30Add a link to the wiki to the help page.Stephen Blott
Ass suggested in by @LarryBattle in #1643.
2015-05-30Use the term "options" instead of "flags" for command options.Stephen Blott
"Flags" implies binary toggles. The term "options" seems more consistent with what's actually going on here.
2015-05-29Verify keyword for custom search-engine activation.Stephen Blott
For ... map s Vomnibar.activate keyword=g ... we verify that "g" is indeed a custom search-engine keyword before setting it. If it is not, we output a console.log message and launch a vanilla vomnibar. (An alternative would be to bail.)
2015-05-29Prepopulate @customSearchMode in vomnibar.Stephen Blott
This avoids a flicker whereby the keyword is first inserted into the input, then removed.
2015-05-29Disable Tween on XML pagesmrmr1993
2015-05-29Also disable all externally-used functions for XML.Stephen Blott
2015-05-29Disable UIComponent for XML documentsmrmr1993
If the page is an XML document, nothing we do works: * <style> elements show their contents inline, * <iframe> elements don't load any content, * document.createElement generates elements that - have Element.style == null, and - ignore CSS. This commit stops us from injecting anything into the DOM from UIComponent, fixing #1640.
2015-05-29Implement pre-population of custom-search keywords.Stephen Blott
Now, a mapping of the form: map s vomnibar.activate keyword=g makes the vomnibar open (on "s") with the Google custom-search engine activated immediately (assuming it's configured). The corresponding custom search-engine configuration would be: g: http://www.google.com/search?q=%s Google
2015-05-29Pass the command's registry entry to vomnibar commands.Stephen Blott
2015-05-29Pass command's registry entry to content script.Stephen Blott
2015-05-29Merge pull request #1610 from smblott-github/word-movement-non-englishStephen Blott
Fix word movement for non-English characters.
2015-05-26Refactor to avoid potential race condition (cont).Stephen Blott
2015-05-26Refactor to avoid potential race condition.Stephen Blott
I haven't seen this happen, but... It could be possible for the iframe's contents to load before this callback is called (on nextTick), in which case the "load" callback wouldn't be called. So we delay setting the iframe's source until nextTick has elapsed.
2015-05-26Add comment noting why we need AsyncDataFetcher.Stephen Blott
2015-05-25Fix UI Component race condition on start up.Stephen Blott
Approach: Re-use the existing AsynDataFetcher class to "fetch" and use the iframe message port. Messages are queued until the iframe's contents have loaded and the message port is open. Fixes #1679.
2015-05-20Only modify find mode regexps if it's a flag we want to matchmrmr1993
2015-05-20Ensure that slashes are grouped in pairs in order for find mode queriesmrmr1993
This ensures that \\\r is interpreted as {escaped-\}{escaped-r} rather than \{escaped-\}r.
2015-05-20Only replace double-slashes in find mode if they precede our flagsmrmr1993
This fixes #1673
2015-05-18Fix vomnibar stuck open.Stephen Blott
See #1671. The problem was that we were making the vomnibar visible in the frontend, even if the vomnibar initialisation was not yet complete, and the iframe port was not yet available. (Also, @activate() is never being called without options, so we can drop that test.) Fixes #1671.
2015-05-13Minor fixes for #1658.Stephen Blott
- Mis-named: "handler" -> "name". - We need to reset the HUD's innerHTML on hide to avoid a flicker when HUD later becomes visible again (but with new text). - There is no longer a need to hide the HUD in order to avoid mathing the text in the HUD itself.
2015-05-13Remove unused styles for the HUDmrmr1993
2015-05-13Move the HUD to an iframe, managed by UIComponentmrmr1993
2015-05-12Fix HUD on options page (temporary fix, v2).Stephen Blott
Alternative to 7004420e178416cc680416091a23dd804fb9370c.
2015-05-12Fix HUD on options page (temporary fix).Stephen Blott
Following on from #1652, vimium was failing to initialize correctly on the options page. Specifically, installListeners() was running before initializeOnDomReady(), hence before HUD.init(). installListeners() runs new GrabBackFocus(), which hides the HUD, which is not yet initialized - so it fails. This is a temporary fix. Could you take a look, @mrmr1993? Perhaps there is a race condition which only arises on the options page. It may be enough to just have HUD.hide() silently pass if @tween is not yet set.
2015-05-11Move all HUD .style declarations into vimium.cssmrmr1993
2015-05-11Make HUD less intertwined with Tween, rewrite Tween as more genericmrmr1993
2015-05-11Change HUD. to @ for improved readabilitymrmr1993