Lang-8 - Remove Line-Through Text

Auto Remove Line-through Text Corrections On Lang-8 - https://gf.qytechs.cn/en/users/3656-kaiko

目前为 2015-07-24 提交的版本。查看 最新版本

// ==UserScript==
// @name        Lang-8 - Remove Line-Through Text
// @namespace   Lang8LTR
// @description Auto Remove Line-through Text Corrections On Lang-8 - https://gf.qytechs.cn/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='';
	}
}

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址