Fix [l=c] link created by RES.
当前为
// ==UserScript==
// @name lecFix
// @namespace lecFix
// @version 0.1.2
// @description Fix [l=c] link created by RES.
// @author kusotool
// @include http://*.reddit.com/*
// @include https://*.reddit.com/*
// @grant none
// ==/UserScript==
var e = document.getElementsByTagName("span");
for(var i = 0; i < e.length; i++){
if(e[i].innerHTML === "[l=c]"){
e[i].setAttribute("thisComments", decodeURI(e[i].getAttribute("thisComments")));
}
}