(Github Pull Request From Link) Underlines `:` and marks it · Issue #93 · jerone/UserScripts · GitHub
Skip to content

(Github Pull Request From Link) Underlines : and marks it #93

Closed

Description

@rugk

It's best to show it like this:
underlines
markstext

used #12
Firefox 42.0

Activity

  1. jerone commented on Dec 10, 2015

    @jerone
    Owner

    Underlines :

    I kind of left this intentionally to let users know that's a link now.

    and marks it

    This is somewhat a feature from GitHub. If you disable the userscript it lets you select the whole user+branch, I guess for easy coping. Now that this is a link, GitHub's feature is probably unnecessary.

  2. rugk commented on Dec 10, 2015

    @rugk
    Author

    @jerone commented on 10. Dez. 2015, 21:45 MEZ:

    I kind of left this intentionally to let users know that's a link now.

    But as you can see it is really only the character : (and this character is not in every PR). I mean should not it be either the whole branch name or not be underlined at all?

    This is somewhat a feature from GitHub. If you disable the userscript it lets you select the whole user+branch, I guess for easy coping. Now that this is a link, GitHub's feature is probably unnecessary.

    Ah not really in my test:
    withoutuserscript

    However I also could not reproduce the marking with your userscript anymore after I reenabled this...

  3. jerone commented on Dec 10, 2015

    @jerone
    Owner

    Ah not really in my test:

    You have to click left from the username. It's kind of a bug that this feature doesn't work on children of an .user-select-contain element (probably a left-over from latest site update)...

    $(document).on("click", ".user-select-contain", function() {
            var t, n;
            n = window.getSelection(),
            n.rangeCount && (t = n.getRangeAt(0).commonAncestorContainer,
            e(this, t) || n.selectAllChildren(this))
        }))
    

    However I also could not reproduce the marking with your userscript anymore after I reenabled this...

    After navigating to another page and back the feature is back again (probably also a bug).

  4. added a commit that references this issue on Dec 10, 2015
    0369357
  5. rugk commented on Dec 10, 2015

    @rugk
    Author

    You have to click left from the username.

    Eh, what?
    I clicked everywhere there and it did not worked. (just tried it again)

    However this does not really matter as I do not want to use it anyway. 😃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions