Auto Remove Line-through Text Corrections On Lang-8 - https://greasyfork.org/en/users/3656-kaiko
当前为
// ==UserScript==
// @name Lang-8 - Remove Line-Through Text
// @namespace Lang8LTR
// @description Auto Remove Line-through Text Corrections On Lang-8 - https://greasyfork.org/en/users/3656-kaiko
// @include http://lang-8.com/*/journals/*
// @include https://lang-8.com/*/journals/*
// @version 1
// @grant none
// ==/UserScript==
document.getElementById("showAll").onclick = function showallexecuteLineThroughRemoval() {
//Remove "All Corrections" line-through
var b = document.getElementsByTagName("span");
for (i = 0; i < b.length; ++i) {
if (b[i].style.textDecorationLine){
b[i].innerHTML = "";
}
}
};
window.onload = function onloadexecuteLineThroughRemoval(){
//Remove correction posts' themselves' line-through
var a = document.getElementsByClassName("sline");
for (i = 0; i < a.length; ++i) {
a[i].innerHTML='';
}
}