aboutsummaryrefslogtreecommitdiffstats
path: root/content_scripts
AgeCommit message (Collapse)Author
2015-04-25Track tab URL even if frame's URL changes.Stephen Blott
We track the URL of the active frame in each tab so that we can correctly populate the rules in the page popup. Previously, we tracked URL changes only on focus events. This commit moves that to isEnabledForURL, which is also called when the URL changes as a result of web navigation.
2015-04-25Remove requirement for Chrome 41.Stephen Blott
2015-04-25Merge branch 'exclusion-rules-pushState-and-hash' of ↵Stephen Blott
https://github.com/mrmr1993/vimium into mrmr1993-exclusion-rules-pushState-and-hash Conflicts: content_scripts/vimium_frontend.coffee
2015-04-25Merge remote-tracking branch 'origin/focus-main-frame' into ↵Stephen Blott
focus-main-frame-merge Conflicts: content_scripts/vimium_frontend.coffee Also rework to remove dependency on Chrome 41+ sendMessage API (specifically, relating to optional target frameId argument).
2015-04-25Merge branch 'vomnibar-in-main-window' into vomnibar-in-main-window-mergeStephen Blott
Conflicts: background_scripts/main.coffee content_scripts/vimium_frontend.coffee
2015-04-24Always initialise event listeners earlymrmr1993
The event listeners were registered late, potentially allowing the page to get priority over us for key events, etc., when: * the original URL was disabled by an exclusion rule * the URL was changed - without a page load (by history.pushState or modifying location.hash), and - the new URL isn't (completely) disabled by any exclusion rules. This forces the event listeners to be registered even when the current URL is disabled, to avoid this problem.
2015-04-24Re-check enabled state after history.pushState/location.hash is changedmrmr1993
This uses the chrome.webRequest API to detect changes to page URL which *do not* cause the content script to refresh.
2015-04-24Get incognto state directly from chrome.extensions.inIncognitoContextmrmr1993
2015-04-23Activate vomnibar in window.top; no flicker and tidy up.Stephen Blott
1. Rework event handling to eliminate frame flicker (a la #1485). 2. Tidy up logic. Which should make this more robust.
2015-04-22Tidy up.Stephen Blott
Remove reference to unused setting "vomnibarInTopFrame".
2015-04-22Also filter for HREF in incognito mode.Stephen Blott
2015-04-22Filter out non-HREF elements for "yf".Stephen Blott
If the element does not have an HREF, then we shouldn't be offering to copy it's link.
2015-04-22For "yf", handle case where link.href isn't defined.Stephen Blott
Note: We probably shouldn't be offering these links at all.
2015-04-22Show yanked text in HUD for "yf".Stephen Blott
2015-04-21mainFrame; simplify logic.Stephen Blott
2015-04-21Implement mainFrame command.Stephen Blott
Fixes #426.
2015-04-19Remove logging code accidentally committed.Stephen Blott
2015-04-19Fix merge oversight.Stephen Blott
2015-04-19Merge branch 'remove-badges'Stephen Blott
Conflicts: content_scripts/vimium_frontend.coffee
2015-04-19Activate vomnibar in window.top; fix logic error.Stephen Blott
2015-04-19Activate vomnibar in window.top; handle Vomnibar even if disabled.Stephen Blott
Vomnibar commands are handled in a frame even is isEnabledForUrl is false.
2015-04-18Mode indicator: fix insert mode within edit mode.Stephen Blott
2015-04-18Activate vomnibar in window.top; add "labs" option.Stephen Blott
2015-04-18Mode indicator: more fix HUD messages for caret mode.Stephen Blott
2015-04-18Merge pull request #1572 from smblott-github/return-to-viewportStephen Blott
Return to the original viewport (when no find matches)
2015-04-18Mode indicator: more fix for link hints.Stephen Blott
2015-04-18Mode indicator: fix for link hints.Stephen Blott
2015-04-18Only return to viewport from visual mode.Stephen Blott
When there is no find-mode match, return to the original viewport. This is a better UX in visual mode, because the text the user is searching for is often on within the viewport. (This is also more vim like. We could consider *always* working this way.)
2015-04-18Selection handling on exiting visual mode.Stephen Blott
Previously, we removed the selection on exiting visual mode. This collapses the selection instead. My own experience with visual mode suggests that this is better. In particular, if we remove the selection, then when the user re-enters visual mode, they're dropped into caret mode. It is unlikely that the default caret position selected by caret mode is better than the last text selected by the user in either caret mode or visual mode.
2015-04-18Fix #1569.Stephen Blott
2015-04-18Mode indicator: initial move to HUD.Stephen Blott
2015-04-18Mode indicator: strip all references to badges.Stephen Blott
2015-04-05Note scrolling issue #1549.Stephen Blott
2015-04-03Merge branch 'upgrade-notification'Stephen Blott
2015-03-25Check isEnabledForURL on hash change.Stephen Blott
If an exclusion rule depends on the hash/anchor, then we're not picking it up. Here's a concrete example of this: - https?://ca*.computing.dcu.ie/[0-9]*-*#* (which matches slides prepared via "slidy"). The initial URL does not include the anchor/hash, so we miss the exclusion rule. The page is bounced immediately to an anchor/hash for which the rule should apply, and we miss it. (There may be other ways in which the URL can change (WebNavigation?), we need to look into this.)
2015-03-22Use chrome.notifications for upgrade notifications.Stephen Blott
2015-03-17Activate vomnibar in window.top; fix dropped line.Stephen Blott
2015-03-17Activate vomnibar in window.top; yet more clean up.Stephen Blott
2015-03-17Activate vomnibar in window.top; more clean up.Stephen Blott
Clean up, and fixes following code review from @mrmr1993.
2015-03-17Activate vomnibar in window.top; fix race condition on close.Stephen Blott
2015-03-17Activate vomnibar in window.top; more clean up.Stephen Blott
2015-03-17Activate vomnibar in window.top; hide on focus, fixed.Stephen Blott
2015-03-17Activate vomnibar in window.top; hide on focus.Stephen Blott
2015-03-17Merge branch 'rework-exclusion-rules'Stephen Blott
Conflicts: content_scripts/vimium_frontend.coffee
2015-03-17Activate vomnibar in window.top; simplify messaging.Stephen Blott
2015-03-17Activate vomnibar in window.top; minor clean up.Stephen Blott
2015-03-17Activate vomnibar in window.top; refocus original frame.Stephen Blott
2015-03-16Activate vomnibar in window.top.Stephen Blott
This changes vomnibar commands to activate not in the current frame, but in window.top. Consequently, the vomnibar always appears in the same position, and we don't get odd looking vomnibars in small frames. Apart from the better UX, this seems to be the right thing to do. Vomnibar commands apply to tabs (not frames). Currently incomplete: - On exit, the focus is not returned to the frame which originally had the focus. (It's returned to window.top). - The vomnibar can lose the focus and not hide itself for various frame/click combinations.
2015-03-15Tidy up exclusion rules/propagation.Stephen Blott
2015-03-15Rework page icon handling.Stephen Blott
Setting the page icon is now driven from the corrently-active frame. - Eliminates a race condition. - Icon matches actual frame state (not tab URL state). - Exclusion-rule changes propagate to all frames.