parent
9dccc57409
commit
478ead7d4d
|
@ -1,3 +1,7 @@
|
||||||
.lang-english {
|
.original-english {
|
||||||
display: none !important;
|
display: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.original-english-debug {
|
||||||
|
border-bottom: 1px dashed red;
|
||||||
|
}
|
||||||
|
|
|
@ -4,7 +4,11 @@
|
||||||
if (isTranslationResult(node)) {
|
if (isTranslationResult(node)) {
|
||||||
var prevNode = node.previousElementSibling;
|
var prevNode = node.previousElementSibling;
|
||||||
if (prevNode && isOriginalEnglish(prevNode.innerText) && !prevNode.classList.contains('nav-list-item')) {
|
if (prevNode && isOriginalEnglish(prevNode.innerText) && !prevNode.classList.contains('nav-list-item')) {
|
||||||
prevNode.classList.add('lang-english');
|
if (location.hostname === 'localhost') {
|
||||||
|
prevNode.classList.add('original-english-debug');
|
||||||
|
} else {
|
||||||
|
prevNode.classList.add('original-english');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
node.title = prevNode.innerText;
|
node.title = prevNode.innerText;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue