Skip to content

Don't add the link if it already exists#63

Merged
jerone merged 2 commits intojerone:masterfrom
Efreak:master
Jul 7, 2015
Merged

Don't add the link if it already exists#63
jerone merged 2 commits intojerone:masterfrom
Efreak:master

Conversation

@Efreak
Copy link
Contributor

@Efreak Efreak commented Jun 30, 2015

When I use browser history to to back/forward on github, every time I see the main repo page, it creates a new link below the others. This fixes that--it switches to using an id instead of a class, and it'll only make an element if there isn't one already.

I'm using chrome with tampermonkey if that makes a difference.

When I use browser history to to back/forward on github, every time I see the main repo page, it creates a new link below the others. This fixes that--it switches to using an id instead of a class, and it'll only make an element if there isn't one already.

I'm using chrome with tampermonkey if that makes a difference.
Copy link
Owner

Choose a reason for hiding this comment

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

Can you use double quotes ", like the rest of the code.

@jerone
Copy link
Owner

jerone commented Jul 6, 2015

Thanks for this great PR. I encountered this issue many times myself (double links), but never got around to fix it.

I gave some minor style feedback; if you fix those I'll merge and release as soon as I can.

@jerone jerone added bug and removed Needs changes labels Jul 7, 2015
jerone added a commit that referenced this pull request Jul 7, 2015
🐛 Don't add the link if it already exists;
@jerone jerone merged commit 9daa05d into jerone:master Jul 7, 2015
@jerone
Copy link
Owner

jerone commented Jul 7, 2015

Awesome thanks! 🎉 🚢

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants