Code Monkey home page Code Monkey logo

back-to-backspace's People

Contributors

harryovers avatar izy521 avatar j-delaney avatar juliannorton avatar kliu128 avatar maximbaz avatar nloomans avatar oslego avatar tplk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

back-to-backspace's Issues

Facebook chat incompatability

Whenever Facebook Messenger's chat box is active, if backspace is pressed it will attempt to go back a page despite a text box being active.

YouTube Comments

I've only just noticed this so not sure if it's because of an update via yourself or YouTube, or maybe even localised to me, but using backspace whilst focused in the comment form input sends you back a page rather than deleting text. Pressing backspace in text input here on GitHub works as normal.

Win10 64bit / Chrome Version 52.0.2743.82 m

Add shift backspace

Hi, Chrome also used to have the Shift-Backspace functionality. Would you be able to implement this as well?

It just goes forward instead of backward.

Feature request: Blacklist.

Hello!

Love the extension. Just one request: there should be a blacklist for pages that you don't want for the extension to be activated on.

Thanks!

Throws js exception

With the developer tools open and "pause on exceptions" ticked, every web page throws an exception upon load

ftp sites

Please add support for ftp sites.

Activating backspace on event bubbling instead of capture

Currently, the scripts checks the focused elements upon the page then performs the navigation against a blacklist.

Except that some sites use wonky ways of detecting keystrokes without using the blacklisted tags, or uses object / embed.

Instead, maybe the backspace handler should be issued on event bubbling on window, and check for isDefaultPrevented. This will make the event handler not interfere with pages which already have scripts intercepting the backspace key.

Additionally, a setTimeout closure could be set with timeout 0 inside the handler to ensure the checking happens strictly after all other handlers have fired.

Error on mobile emulation

When i open devtools and enable the Chrome mobile emulator it gives me this error:

inject.js:13 Uncaught TypeError: Cannot read property '1' of null
at inject.js:13

Doesn't matter what page.

Its the second icon in the devtools toolbar. I'm guessing it has to do with switching to touch input

Telegram web issue

If backspace is pressed in the Telegram Web chat, it will go back to the previous page

Not working inside shadowdom

It doesn't work inside a shadow dom element, because document.activeElement will select the most outer custom element insted of the input.

Googles own "back-to-backspace" uses "var target = event.path[0];" to get the correct element, it works even inside a shadow element.

Another more hack'y way to do it is to check if it is a shadow element, and look inside of it if it is (this code is not fully tested)

function getFocusElement() {
    var focusedElement = document.activeElement;
    var focusShadowDomElement;

    if (focusedElement == null) {
        return false;
    }
    while (focusedElement.shadowRoot !== null) {
        focusShadowDomElement = focusedElement.shadowRoot.activeElement;
        if (focusShadowDomElement == null) {
            break;
        } else {
            focusedElement = focusShadowDomElement;
        }
    }

    return focusedElement;
}

#19 Is related to this issue

Back navigates to empty "new tab"

  1. Open new tab (ctrl+t)
  2. Type any website address, hit enter

AR: Observe Back button on the browser's top left corner - it's enabled (and navigates to to that empty "new tab" as well as Backspase click).
ER: Empty "new tab" should not be considered as an item of page back stack

Microsoft Outlook Live

(Or whatever Hotmail is called nowadays.) When writing an email, the email textbox doesn't seem to register and pressing backspace takes you back a page rather than deleting text.

Textbox inside embed (Flash) element

When I try to use the backspace button to delete some text inside a Flash app, it goes back to the previous page.

Adding 'embed' into the tagBlacklist would work but it could possibly create new problems with different embed elements.

I found this issue on http://www.shooter-bubble.fr/bubble-shooter.html. A textbox appears to enter my name at the end of the game.

Thanks for this useful extension, without it my Chrome would have been already uninstalled

Youtube backspace issue

When using the backspace in Youtube comments, the entire block of text disappears, rather than 1 character. Is very counter intuitive, and is specific to Youtube comments.

Latest Chrome browser (Version 74.0.3729.169 (Official Build) (32-bit))

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.