Use MutationObserver instead of pushState listener
sindresorhus opened this issue · comments
Sindre Sorhus commented
You can use https://github.com/octo-linker/injection like I do in refined-github
: https://github.com/sindresorhus/refined-github/blob/f26253482407b006d990695bc7cd6a1c43ea64de/extension/content.js#L268
Henry commented
Wow that's great - and one less permission too!
Henry commented
Added in next branch (Going to test for a bit) https://github.com/hzoo/github-contributor-extension/blob/bea229ea7eb59ccbbd605355725361d8523dc9af/src/content.js#L183-L189