Giter VIP home page Giter VIP logo

refined-github's Introduction

Refined GitHub

Browser extension that simplifies the GitHub interface and adds useful features

We use GitHub a lot and notice many annoyances we'd like to fix. So here be dragons.

Our hope is that GitHub will notice and implement some of these much-needed improvements. So if you like any of these improvements, please open a discussion on GitHub feedback or contact GitHub support about doing it.

GitHub Enterprise is also supported: How to enable it.

The GITHUB and REFINED GITHUB trademarks are owned by GitHub, Inc. and used under license.

Install

Chrome and other Chromium browsers

Firefox including Firefox Android

Safari on Mac, iOS and iPadOS

If you love Refined GitHub, consider sponsoring or hiring the maintainer @fregante


Highlights 🔥

Makes whitespace characters visible

Adds one-click merge conflict fixers

Shows how far behind a PR head branch is + tells you its base commit

Lets you hide every event except comments or unresolved comments in issues and PRs

Lets you subscribe to opening/closing events of issues in one click

Adds a link to the default branch on directory listings and files

Adds a button to discard all the changes to a file in a PR

Select notifications by type and status

Repositories

File management

Code

Writing comments

Reading comments

Conversations

Viewing pull requests

Editing pull requests

Commits

Tags and releases

Profiles

Newsfeed

  • Hides other inutile newsfeed events (commits, forks, new followers).
  • Automagically expands the newsfeed when you scroll down.

Notifications

Global

Netiquette

Fixes for GitHub shortcomings

Previously part of Refined GitHub

GitHub took inspiration from Refined GitHub and natively implemented dozens of its features, 🎉 so they've been removed from this extension. You can also see all the past features of Refined GitHub in a single list.

Customization

Most features can be disabled if they are JavaScript-based and you can override our CSS with your own in the extension options.

We're happy to receive suggestions and contributions, but be aware this is a highly opinionated project. There's a high bar for adding features. Users will always disagree with something. That being said, we're open to discussing things.

Links

refined-github's People

Contributors

134130 avatar arnaudvalle avatar artusm avatar ashiknesin avatar bfred-it avatar busches avatar cheap-glitch avatar darkred avatar dertieran avatar drewml avatar floedelmann avatar fregante avatar gamemaker1 avatar hardikmodha avatar hkdobrev avatar jerone avatar jgierer12 avatar katsute avatar kidonng avatar kovsu avatar lukaszklis avatar nickytonline avatar notlmn avatar paulmolluzzo avatar sharkykh avatar shinenelson avatar shroudedcode avatar sindresorhus avatar tanmayrajani avatar yakov116 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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

refined-github's Issues

hover over avatar in top bar disappears when on homepage.

Noticed if you're on your activity on the homepage, and you hover over your avatar on the topbar, the dropdown disappears if you hover try to access any links because of what I assume is z-index issues with the account switcher being moved.

Easy copy paste of branches and filenames in PR's

When reviewing a PR from a colleague, I often want to check it out on my local machine. I often do this by copying the branch name from the PR into a shell. More often than not, I don't quite get it right first time and for some reason find it difficult to copy the branch name.

The same applies if I want to look at a specific file (doubly more annoying because of truncated file names in Pull Requests)

The copy button next to sha's in the commits file is handy, so why not add it next to branches too?

E.g.:

screenshot 2016-03-11 at 23 16 40

and

screenshot 2016-03-11 at 23 20 38

Add a button next to Raw to copy file contents

I sometimes want to quickly copy everything in a file on GitHub and paste in my text editor.
cmd (ctrl) + A partially works, but it would select everything on the page.

Ideally if there was a hotkey to select current highlighted block it would be great. EG: highlight a comment box and select the whole comment, then hit "R" to reply.

[Idea] Add remove fork button to pull requests

Once a pull request has been merged I get the option to delete the branch from my fork. It would also be nice if I'd the possibility to delete the entire fork. Right now I have to go the the fork and then click on the settings tab where I find the delete button. What do you think? Is it even possible?

Add options page for selection features

A simple options/preferences page that allows you to opt-out from some of the features. It might be a lot of work to put those preferences toggles in the code but I believe it worths it.

Org switcher disappears

Not sure if I'm doing something wrong, but the organization switcher seems to have disappeared after enabling.

screen shot 2016-02-15 at 11 37 37

Add link to a user's twitter profile

Original Tweet:

screen shot 2016-02-29 at 8 38 23 am

I feel like there are services that try to collect accounts for a person on multiple platforms... Maybe we could find and use one of these?

Or a user could opt-in to something... But yeah... Thinking this is best as a built-in feature of GitHub for it to really work.

Solve the problem of truncated file names

Some repositories have longer file names that GitHub truncates:

In order to view the full file name, you have to hover your cursor over the truncated file name.

I think it would be nicer if refined-github would allow the user to dynamically resize the file name column with their mouse, sort-of like how Excel does:

Another (less ambitious) option would be to word wrap long file names.

What do you think?

Improve upvote / downvote comment handling

Since PR #17 there is basic detection for upvote and downvote comments. It can definitely be improved I think:

  • Smarter detection, like:
    • , e.g. 👍 💯
    • , e.g. 👍 yes!
  • Count one vote per user. In a PR, a user can first down vote, but after some changes up vote. Only the up vote should count in this scenario.
  • If the upvote / downvote is followed by some text, don't remove the comment but let it count.

extension requires very new version of Chrome

Extension currently requires Chrome 48. After downgrading the requirement to Chrome 45 in the manifest, I tested several features and it seems to work. I assume most of this extension is just rewriting site content anyway, so in theory, there's no reason why it wouldn't work on even very old Chrome versions.

Update checks based on URL

  • GitHub changed some thinks in https://github.com/blog/2123-more-code-review-tools.
    • They are now showing the commit view in the Files changed tab of a PR if there's only one view.
    • They have URLs such as <owner>/<repo>/pull/<id>/commits/<sha>. We should update our commit checks.
    • I think they've changed how they load content in PR tabs, not sure if this affects the extension in any way.
  • We should make our URL checks more dynamic and consistent as per 1., 2. and 4. in #67 (comment)

Prompt user to confirm when writing a comment and hit Cancel

See isaacs/github#14

I think GitHub fixed the problem with Esc, but it still deletes what you've written when you hit Cancel without a confirmation prompt. You might click it accidentally instead of the other button. And I'm sure for heavy users of GitHub, clicking the Cancel button would be a rare occasion, so the prompt won't be an issue.

Add repository size

Wouldn't it be nice to see how large a repository is just by visiting the repos main page?

screen shot 2016-03-04 at 9 24 12 am

Is it even possible?

giphy integration

I don't use refined-github yet, but I think that if there were giphy integration it might finally push me over the edge.

I'm thinking that putting something by textareas that I can click on and search for a giphy gif that I could insert into my comment, that'd be terrific. Something like what twitter has:

screen shot 2016-03-10 at 7 39 51 am

Collapse buttons are not added to new files changed view

After recent changes to pull requests from GitHub, the maximise/minimise buttons are still added on single commit page and the compare page, but not on the PR files changed page which is now used when looking at a commit in a PR as well.

The collapsing still works though.

Admittedly there is no much space to put them and I don't find them so useful anyway. If you think they are needed we can move them in the dropdown for diff options where they've moved the split/unified diff buttons. Keep in mind GitHub has kept the old split/unified buttons like they were before on compare and commit pages.

Minimize/Maximize mouse cursors for PR show in non PR areas

I was casually using the unpacked extension today and noticed the cursor showing up in file headers that don't belong to the PR. Incidentally, we should probably add the behavior to commit review areas now that I think about it but for now, we can nix this bug until we decide to incorporate that behavior.

Account switcher closes itself immediately after click

  1. Open https://github.com in a new tab.
  2. Click the account switcher quickly.

Expected: The account switcher opens and it stays open.
Actual: The account switcher opens and closes itself immediately. It fixes itself after you hold down your mouse for longer when clicking or after a few times of clicking it.

I'm on Chrome dev channel on Mac OS.
Chrome Version 50.0.2652.0 dev (64-bit)

Add minimize/maximize buttons to PR blocks

I've done this in my own extension but I figure it might help some other people if I contribute it to yours (assuming you're interested).

I used jQuery for mine but it can easily be made in plain JS: https://github.com/tdlm/tdlm-github-tools/blob/master/background.js

Essentially this lets you minimize/maximize PR blocks by clicking on individual blocks or by clicking buttons at the top, like so:

Minimize/Maximize Blocks

Either way, it wouldn't be tough to add but it's something I use every day.

Add diff and patch links on commit pages

Many people don't know that, but GitHub offers diff and patch pages for every commit on GitHub. Just append .diff or .patch to the commit URL.

E.g. for f5544ca, go to:

I personally find the patch URLs useful to get the email address which was used configured in Git for that commit. The diffs and patches could also be used to pass to some CLI tools which don't work with Git, but work with these formats which pre-date Git. I think some people not knowing that, but who need the patch, would actually clone the repo to get them, only because they don't know GitHub serves them on the web.

I don't want to type .patch every time in the URL when I need this and a link would help me. But it would also help other people to teach them these links exist.

I suggest the position of the links to be on the right of the full commit hash in the commit header.

github-commit-hash-position

Add list of voters to vote counter

Now that there is that simple vote count, it'd be nice to be able to see who voted in a simple way. (In particular I want to see if the owner or regular contributors voted yes or no.) My first thought is to see a list of usernames when hovering, but maybe there's a better idea? Would it be cool to have a "block" of user avatars in each section like GitHub participants?

gh-participants

Firefox port

Though the future of extension system of Firefox isn't clear, but I guess with advent of WebExtensions it would be fairly easy to port the extension for Nightlies.


See #403 for progress on this.

Instability while switching between accounts.

So, whenever the GitHub dashboard is reloaded, this kind of glitch happens:

2016-02-22_13-39-28

It may not be clear in the gif, but the dropdown doesn't stays open when clicked a first few times, or may be its due to something else. Does this happen to anybody else, or is it just me?

Note: I have the Octotree, GitHub Menu Back and an extension for GitHub tab resize. (Although, I don't think they may be causing any problems)

Change default issues/PRs sort to "Recently updated"

The Newest sort option in the issue tracker is rarely useful and not at all what I expect as the default sort. I want to see where the activity is. That's likely what needs my attention most. An update to an old issue and the addition of a new issue should have the same weight. Otherwise, old issues with recent activity stay buried.

I propose modifying the URL of the main Issues tab so the issues are sorted by Recently updated (in descending order) instead of Newest. That can be accomplished by adding the following query string:

?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc

Add link to releases on every repository page

At the moment you can click to go to the releases page only when you're on the Code tab in a repository.

As I use the releases page quite often, I'd suggest to place a link to releases on every tab of the repo. Perhaps as another tab?

I hope others would find this useful as well.

Disable certain refinements

I'd like to disable the "hide comment box toolbar" refinement. Would be nice if there was a checkbox of each refinement to trigger whether it's enabled or disabled.

Timestamps instead of relative time

@fregante added:

There is an UserScript for this available from the wonderful Mottie: GitHub Static Time.

Originally posted by @jerone in #47 (comment)


Just an idea, but it's more useful to me to see the actual date and time when something occurred. The home feed simplifying it to "2 hours ago" might as well say "two episodes of House ago"-- I'm an adult, I want the real time!

Maybe it can be relative up until an hour?

Am I alone on this one?

Display collaborator reactions more prominently

Previously, when we did :+1: as comments, I could quickly see which collaborators that 👍'd something. Now it's intermixed with all other users reactions.

We could maybe show the avatar of collaborators inside the relevant reaction. Open to other suggestions though.

screen shot 2016-03-22 at 22 51 03

[BUG] Big icons in feed?

Some of the icons in the feed on the startpage has become huge. Is this intentional or is this a bug?
screen shot 2016-03-07 at 10 02 35

`Blame parent` link in blame view

Often when I blame something there are useless noise commits obscuring what I'm actually looking for, which means I need to go one commit back from that commit that made the noise, and then blame again to get what I'm actually after. Would be useful to have a link to go one commit back in the blame view.

Navigate from current repository to overview

Could be that this is something only bugging me, but perhaps others find it also annoying:
after I've looked at a repository and wanted to know what other projects the creator has (by clicking on the link with his name), I will be navigated to his profile overview. Although it contains information about his contributions, it unfortunately doesn't provide a good overview about the stuff he created. So what do you think about changing this link towards the repository overview by default ?

Contributions Repositories
github-user-contributions github-user-repositories

Breaks reaction user list

It seems that the newly added github reactions are slightly broken by this plugin.

They appear as expected, however without the plugin I can hover the reaction and get a list of users who added it. With the plugin enabled this list doesn't display.

Example screenshot of working functionality:
screenshot 2016-03-21 14 04 50

Improve profile page

From #87.

Personally I'd like to see the Contributions graph gone as it's completely useless and even inaccurate as it only shows commits, but I guess that would be too controversial as many people think they need it, but they don't.

Another idea would be to fetch some of the items from the Activity tab and show them there. I often go to the Activity tab to see what the author worked on last. We could either fetch it or do an iframe.

Any other ideas? What would be useful to have on a profile landing page? What could we remove?

All dropdowns close automatically

I've noticed that the dashboard context switcher closes automatically for about 5 seconds after the page has loaded. After that time, it opens and closes as expected.

Feature Toggle

Hi 👋. I like so many things about this extension, but there are also a couple of things I'd rather disable. For instance, it makes a lot of sense for someone like you, @sindresorhus, to "hide other users starring/forking your repos from the newsfeed", but I would rather see that info in my newsfeed.

Would you consider adding or accepting a pull request for a feature toggle interface?

Edit readme link is visible on top of delete button on certain pages

screen shot 2016-03-08 at 02 41 39

The added edit button which was meant for the readme on the front page of a repository is on top of the delete file button when looking at certain files.

E.g.

It is not visible when looking at a specific commit reference like https://github.com/sindresorhus/pageres/blob/511d29f6c5a9b5438bd85cefe15ec6fa8074e227/contributing.md

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.