Refined-github: Cut-off first character of every line in diff file

Created on 30 Jul 2018  ยท  4Comments  ยท  Source: sindresorhus/refined-github

Formatting is lost with console errors:

image

โŒ remove-diff-signs
content.js:1725 
TypeError: Cannot read property 'textContent' of null
    at removeDiffSigns (content.js:2800)
    at MutationObserver.removeDiffSignsAndWatchExpansions (content.js:2818)
    at simplified_element_observer (content.js:1633)
    at remove_diff_signs (content.js:2829)
    at enableFeature (content.js:1721)
enableFeature @ content.js:1725
async function (async)
enableFeature @ content.js:1710
ajaxedPagesHandler @ content.js:4066
safeOnAjaxedPages @ content.js:4038
github_injection_default @ content.js:1706
gitHubInjection @ content.js:362
safeOnAjaxedPages @ content.js:1704
onDomReady @ content.js:4037
async function (async)
onDomReady @ content.js:4016
init @ content.js:4014
async function (async)
init @ content.js:3977
(anonymous) @ content.js:4146
__webpack_require__ @ content.js:12
(anonymous) @ content.js:64
(anonymous) @ content.js:65

content.js:2800 
Uncaught TypeError: Cannot read property 'textContent' of null
    at removeDiffSigns (content.js:2800)
    at MutationObserver.removeDiffSignsAndWatchExpansions (content.js:2818)
removeDiffSigns @ content.js:2800
removeDiffSignsAndWatchExpansions @ content.js:2818
childList (async)
removeSelectableWhiteSpaceFromDiffs @ content.js:2811
removeDiffSignsAndWatchExpansions @ content.js:2817
simplified_element_observer @ content.js:1633
remove_diff_signs @ content.js:2829
enableFeature @ content.js:1721
async function (async)
enableFeature @ content.js:1710
ajaxedPagesHandler @ content.js:4066
safeOnAjaxedPages @ content.js:4038
github_injection_default @ content.js:1706
gitHubInjection @ content.js:362
safeOnAjaxedPages @ content.js:1704
onDomReady @ content.js:4037
async function (async)
onDomReady @ content.js:4016
init @ content.js:4014
async function (async)
init @ content.js:3977
(anonymous) @ content.js:4146
__webpack_require__ @ content.js:12
(anonymous) @ content.js:64
(anonymous) @ content.js:65

Most helpful comment

Thanks! Disabling remove-diff-signs fixed the issue.

All 4 comments

Thanks! Disabling remove-diff-signs fixed the issue.

Ah. Also, dealing with this:
image

Fixed by #1451

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sindresorhus picture sindresorhus  ยท  3Comments

vanniktech picture vanniktech  ยท  3Comments

fregante picture fregante  ยท  3Comments

shivapoudel picture shivapoudel  ยท  3Comments

juliocanares picture juliocanares  ยท  3Comments