aboutsummaryrefslogtreecommitdiffstats
path: root/content_scripts
AgeCommit message (Collapse)Author
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
2015-05-11Move the HUD to its own filemrmr1993
2015-05-11Use css @import rather than XMLHttpRequest for shadow DOM external stylemrmr1993
2015-05-10Fallback to raw element instead of shadow DOM for PhantomJSmrmr1993
2015-05-10Use classes for border flashes, in a shadow DOM to avoid CSS collisionsmrmr1993
2015-05-05Possible re-working of #1627.Stephen Blott
2015-05-05Merge remote-tracking branch 'mrmr1993/fix-insert-mode-for-shadow-dom'Stephen Blott
2015-05-01Merge pull request #1622 from mrmr1993/reenable-grabBackFocus-on-js-transitionsStephen Blott
Make GrabBackFocus work for javascript page transitions from links
2015-05-01Enter insert mode if an input inside a shadow DOM is focusedmrmr1993
This fixes issue #853.
2015-05-01Don't try and enter GrabBackFocus mode if the last click introduced focusmrmr1993
2015-05-01Add extra information to GrabBackFocus' pushState helpermrmr1993
2015-05-01Rename UIComponent class to match the one used in the stylesheetmrmr1993
2015-04-30Make GrabBackFocus work for javascript page transitions from linksmrmr1993
2015-04-29Revert "Enable grab-back-focus after web navigation."Stephen Blott
This reverts commit 061e99f895e5655d351ad1585af028a12abf3ec0.
2015-04-29Revert "Only grab focus after link transition."Stephen Blott
This reverts commit f1e46d8145c834a712f6be7c1e5bd590c72da749.
2015-04-29Merge pull request #1614 from mrmr1993/shadowDom-UIComponentsStephen Blott
Use a shadowDom for the Vomnibar (and all UIComponents)
2015-04-29Use innerHTML instead of contentText.Stephen Blott
If we use contentText, then it is possible for a child and its to have exactly the same content text, in which case it is arbitrary as to which is sorted first, hence which we choose (where we should be choosing the child). Using innerHTML instead, we guess that even if the contentText lengths are the same, the innerHTML of the parent will be longer (since it contains that of the child).
2015-04-29Fix text matching/exclusion; repair tests.Stephen Blott
2015-04-29Fix text matching/exclusion for text link hints.Stephen Blott
We need to sort elements by their text length. This allows us to exclude the text of descendants from the hint text generated for their ancestors. Note: Tests not yet fixed.
2015-04-29Ignore keyboard repeats in link hint key handlermrmr1993
2015-04-28Refactor word-movement.Stephen Blott
Since we don't use this huge regexp on most pages, lets just compile it when we need it.