Skip to content

Hide some news feed items, increase visibility of starred repos - #55

Merged
sindresorhus merged 1 commit into
masterfrom
refine-news-feed
Mar 6, 2016
Merged

sindresorhus merged 1 commit into
masterfrom
refine-news-feed

Conversation

@paulmolluzzo

Copy link
Copy Markdown
Contributor

This is fixes #44 with CSS and no additions to the UI.

The update does the following:

  • Hides news feed items for pushing to a branch, deleting a branch, creating a branch. These seem like pretty pointless updates to me, and while they're using the .simple class and very small, I never read them.
  • Increase the visibility of items relating to a user starring a repo. This is a good discovery tool for me, and it's the main reason I follow another GH user. It should be easier to see.

Here is a screenshot that has a PR, starred repo, and comment in order:
screenshot-starred-news-visibility

Here is the same section of my feed without the plugin (you can see a pushed commit that was hidden by the extension):
without-extension

…ting a branch; increase visibility of items relating to a user starring a repo
sindresorhus added a commit that referenced this pull request Mar 6, 2016
Hide some news feed items, increase visibility of starred repos
@sindresorhus
sindresorhus merged commit 5b741ab into master Mar 6, 2016
@sindresorhus
sindresorhus deleted the refine-news-feed branch March 6, 2016 06:30
@sindresorhus

Copy link
Copy Markdown
Member

👍 Looks good :)

@hkdobrev hkdobrev mentioned this pull request Mar 7, 2016
@hkdobrev hkdobrev mentioned this pull request Mar 30, 2016
@paulmolluzzo paulmolluzzo mentioned this pull request May 4, 2016
@dmytro-y-dev

dmytro-y-dev commented Jul 28, 2017 •

Copy link
Copy Markdown

@paulmolluzzo, @sindresorhus I like your plugins for GitHub enhancement, but had to uninstall them, because of exactly this PR.

Hides news feed items for pushing to a branch, deleting a branch, creating a branch.

I have project that consists of something like 30 repositories. Usually I push to multiple repos at same time through PHPStorm. Due to notification about pushing I could see list of all new branches for which I want to open PRs. If there would be an option to not filter out notifications about recent pushes, this would be helpful.

@fregante

Copy link
Copy Markdown
Member

You can use Stylish to undo these changes:

/* show news items when people pushed to a branch */
.news .alert.push {
	display: block !important;
}
 
/* show news items when people create a branch */
.news .alert.create.simple {
	display: block !important;
}
 
/* show news items when people delete a branch */
.news .alert.delete.simple {
	display: block !important;
}

@dmytro-y-dev

dmytro-y-dev commented Jul 28, 2017 •

Copy link
Copy Markdown

@bfred-it Thanks, works like a charm.

Selector should be #dashboard .news .alert.push, because github-refined already uses !important for .news .alert.push and considered to have more priority (at least in my FF).

Final code for Stylish is

@namespace url(http://www.w3.org/1999/xhtml);

@-moz-document domain("github.com") {
}

/* show news items when people pushed to a branch */
#dashboard .news .alert.push {
	display: block !important;
}

/* show news items when people create a branch */
#dashboard .news .alert.create.simple {
	display: block !important;
}
 
/* show news items when people delete a branch */
#dashboard .news .alert.delete.simple {
	display: block !important;
}

@fregante

Copy link
Copy Markdown
Member

Update: this can now be disabled in the options with hide-useless-events

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

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Filter for the news feed

4 participants