Skip to content

Add extension option for whether to hide other users starring/forking your repos - #506

Merged
sindresorhus merged 4 commits into
masterfrom
options-omg
Jun 19, 2017
Merged

sindresorhus merged 4 commits into
masterfrom
options-omg

Conversation

@fregante

@fregante fregante commented Jun 18, 2017 •

Copy link
Copy Markdown
Member

Oh boy.

I tried to keep it as contained as possible. Options are automatically saved.

Fixes #193 (Also #344 #174 #131 #75)

@fregante
fregante requested a review from sindresorhus June 18, 2017 08:02
@fregante fregante changed the title Options omg Options omg (just one) Jun 18, 2017
Comment thread src/content.js Outdated
@@ -1,4 +1,5 @@
import 'webext-dynamic-content-scripts';
import OptSync from 'webext-options-sync';

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome module!

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Glad you like it! It's open to suggestions :)

Comment thread src/options/index.js Outdated
@@ -1,9 +1,16 @@
import OptSync from 'webext-options-sync';

@sindresorhus sindresorhus Jun 18, 2017 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Super nitpick, but OptionsSync would be more readable, and more consistent with the package name.

Comment thread src/options/index.js Outdated
@@ -1,9 +1,16 @@
import OptSync from 'webext-options-sync';

new OptSync().syncForm(document.querySelector('#options-form'));

@sindresorhus sindresorhus Jun 18, 2017 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you think about syncForm accepting a CSS selector string for convenience?

@sindresorhus

Copy link
Copy Markdown
Member

Can you also add a note to the readme about us having some options and where to set them, so the user would know about it.

@fregante

fregante commented Jun 19, 2017 •

Copy link
Copy Markdown
Member Author

Done. Merge as you please.

Hide other users starring/forking your repos option

@sindresorhus sindresorhus changed the title Options omg (just one) Add extension option for whether to hide other users starring/forking your repos Jun 19, 2017
@sindresorhus
sindresorhus merged commit 73d77e4 into master Jun 19, 2017
@sindresorhus
sindresorhus deleted the options-omg branch June 19, 2017 10:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants