question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

GitHub remove diff signs: not all files get their signs removed

See original GitHub issue

Hello, I just found the “GitHub remove diff signs” userscript, thanks for making it.

But it seems to have a bug, the + and - signs doesn’t get removed from all files in the “Files changed” tab of some pull requests.

Here’s an example with 6 files: https://github.com/Mottie/tablesorter/pull/195/files the signs have been removed from the first 5 files, but they are still shown in the last file: js/jquery.tablesorter.js.

And here’s another example with 17 files: https://github.com/Mottie/tablesorter/pull/1293/files the signs have been removed from the first 3 files, but they are still there from the 4th file: js/widgets/widget-filter-formatter-html5.js down.

Here’s an example with 4 files. The first two files are hidden until one clicks on them: https://github.com/Mottie/Keyboard/pull/363/files the first one says:

“Load diff Large diffs are not rendered by default.”

and the second file says:

“Load diff Some generated files are not rendered by default. Learn more.”

The signs on the last 2 files are shown. When one clicks on the first 2 files to show their diffs, then the signs are still visible on them as well.

The script seems to work fine on the pull requests I’ve seen with only 1 or 2 files.

System info

Windows 10 1607 (OS Build 14393.953) Google Chrome 56.0.2924.87 (Official Build) (32-bit) Tampermonkey v4.2.7 GitHub Remove Diff Signs 1.0.2

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:19 (15 by maintainers)

github_iconTop GitHub Comments

4reactions
Mottiecommented, Apr 20, 2017

I just added a How to wiki page with my current take on how I deal with GitHub and progressively loaded content. Let me know what you guys think.

2reactions
jeronecommented, Mar 25, 2017

All examples on this page are working for me too now 🎉

Read more comments on GitHub >

github_iconTop Results From Across the Web

GitHub remove diff signs · Mottie/GitHub-userscripts Wiki
GitHub stopped adding the diff signs inline some time before July 2018; this userscript is no longer required!
Read more >
Enable disabling the "+" and "-" signs when looking at a diff #294
The "+" and "-" signs are only adding visual noise when reviewing code. It would be great to have a user setting to...
Read more >
remove-diff-signs is not working · Issue #1447 - GitHub
Yep, looks like GitHub implemented this feature natively. I added remove-diff-signs to my disabled features list and everything works fine.
Read more >
sindrets/diffview.nvim - GitHub
Single tabpage interface for easily cycling through diffs for all modified files for any git rev. - GitHub - sindrets/diffview.nvim: Single tabpage ...
Read more >
remove-diff-signs not active inside markdown #2569 - GitHub
I'm not sure if this is the expected behaviour, but the diff (+-) signs are shown inside markdown, for example inside README's or...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found