User:Yining Chen/temp.js
注意:保存之后,你必须清除浏览器缓存才能看到做出的更改。Google Chrome、Firefox、Microsoft Edge及Safari:按住⇧ Shift键并单击工具栏的“刷新”按钮。参阅Help:绕过浏览器缓存以获取更多帮助。
document.body.innerHTML = document.body.innerHTML.replace(/<span class="zhwpVoteSupport" style="font-weight:bold;background:lightgreen;color:green;">\(\+\)<\/span>/g, '<img alt="支持" src="//upload.wikimedia.org/wikipedia/commons/thumb/9/94/Symbol_support_vote.svg/15px-Symbol_support_vote.svg.png" decoding="async" title="支持" class="noviewer" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/9/94/Symbol_support_vote.svg/23px-Symbol_support_vote.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/9/94/Symbol_support_vote.svg/30px-Symbol_support_vote.svg.png 2x" data-file-width="180" data-file-height="185" width="15" height="15"> ');
document.body.innerHTML = document.body.innerHTML.replace(/<span style="font-weight:bold;background-color:#EDE275;color:#DB6D00">\(!\)<\/span>/g, '<img alt="Comment" src="//upload.wikimedia.org/wikipedia/commons/thumb/e/e0/Symbol_comment_vote.svg/15px-Symbol_comment_vote.svg.png" decoding="async" title="Comment" class="noviewer" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/e/e0/Symbol_comment_vote.svg/23px-Symbol_comment_vote.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/e/e0/Symbol_comment_vote.svg/30px-Symbol_comment_vote.svg.png 2x" data-file-width="180" data-file-height="185" width="15" height="15"> ');
document.body.innerHTML = document.body.innerHTML.replace(/<span style="font-weight:bold;background-color:#8D608C;color:#FFFFFF">\(&\)<\/span>/g, '<img alt="Comment" src="//upload.wikimedia.org/wikipedia/commons/thumb/e/e0/Symbol_comment_vote.svg/15px-Symbol_comment_vote.svg.png" decoding="async" title="Comment" class="noviewer" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/e/e0/Symbol_comment_vote.svg/23px-Symbol_comment_vote.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/e/e0/Symbol_comment_vote.svg/30px-Symbol_comment_vote.svg.png 2x" data-file-width="180" data-file-height="185" width="15" height="15"> ');
document.body.innerHTML = document.body.innerHTML.replace(/<span class="zhwpVoteOppose" style="font-weight:bold;background:pink;color:red;">\(-\)<\/span>/g, '<img alt="Oppose" src="//upload.wikimedia.org/wikipedia/commons/thumb/7/7f/Symbol_oppose_vote.svg/15px-Symbol_oppose_vote.svg.png" decoding="async" title="Oppose" class="noviewer" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/7/7f/Symbol_oppose_vote.svg/23px-Symbol_oppose_vote.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/7/7f/Symbol_oppose_vote.svg/30px-Symbol_oppose_vote.svg.png 2x" data-file-width="180" data-file-height="185" width="15" height="15"> <style data-mw-deduplicate="TemplateStyles:r20720001">.mw-parser-output .ts-doc-sandbox .mbox-image{padding:.75em 0 .75em .75em}.mw-parser-output .ts-doc-doc{clear:both;background-color:#ecfcf4;border:1px solid #a2a9b1;margin-top:1em;padding:5px}.mw-parser-output .ts-doc-header{padding-bottom:3px;border-bottom:1px solid #a2a9b1;margin-bottom:1ex}.mw-parser-output .ts-doc-header .ts-tlinks-tlinks{display:inline-block;line-height:24px;margin-left:1em}.mw-parser-output .ts-doc-header .ts-tlinks-tlinks a.external{color:#0645ad}.mw-parser-output .ts-doc-header .ts-tlinks-tlinks a.external:visited{color:#0b0080}.mw-parser-output .ts-doc-header .ts-tlinks-tlinks a.external:active{color:#faa700}.mw-parser-output .ts-doc-content:after{content:"";clear:both;display:block}.mw-parser-output .ts-doc-heading{display:inline-block;padding-left:55px;background:center left/50px no-repeat;background-image:url("https://upload.wikimedia.org/wikipedia/commons/thumb/4/43/Test_Template_Info-Icon_-_Version_%282%29.svg/50px-Test_Template_Info-Icon_-_Version_%282%29.svg.png");background-image:url("https://upload.wikimedia.org/wikipedia/commons/4/43/Test_Template_Info-Icon_-_Version_%282%29.svg");font-size:1.5em}.mw-parser-output .ts-doc-content>*:first-child,.mw-parser-output .ts-doc-footer>*:first-child{margin-top:.5em}.mw-parser-output .ts-doc-content>*:last-child,.mw-parser-output .ts-doc-footer>*:last-child{margin-bottom:.5em}.mw-parser-output .ts-doc-footer{background-color:#ecfcf4;border:1px solid #a2a9b1;padding:.25em 1em;margin-top:.2em;font-style:italic}.mw-parser-output .ts-doc-footer small{font-style:normal}.mw-parser-output .ts-doc-sandbox{clear:both}</style>');
document.body.innerHTML = document.body.innerHTML.replace(/<span style="color: #92FF72; background-color: #7F9700;">\(\+\)<\/span>/g, '<img alt="Symbol strong support vote.svg" src="//upload.wikimedia.org/wikipedia/commons/thumb/8/84/Symbol_strong_support_vote.svg/15px-Symbol_strong_support_vote.svg.png" decoding="async" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/8/84/Symbol_strong_support_vote.svg/23px-Symbol_strong_support_vote.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/8/84/Symbol_strong_support_vote.svg/30px-Symbol_strong_support_vote.svg.png 2x" data-file-width="180" data-file-height="185" width="15" height="15"> ');
document.body.innerHTML = document.body.innerHTML.replace(/<span style="font-weight:bold;background:red;color:pink;">\(-\)<\/span>/g, '<img alt="Symbol oppose vote oversat.svg" src="//upload.wikimedia.org/wikipedia/commons/thumb/5/5e/Symbol_oppose_vote_oversat.svg/15px-Symbol_oppose_vote_oversat.svg.png" decoding="async" class="noviewer" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/5/5e/Symbol_oppose_vote_oversat.svg/23px-Symbol_oppose_vote_oversat.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/5/5e/Symbol_oppose_vote_oversat.svg/30px-Symbol_oppose_vote_oversat.svg.png 2x" data-file-width="180" data-file-height="185" width="15" height="15">');
document.body.innerHTML = document.body.innerHTML.replace(/<span style="font-weight:bold;background:#ddee11;color:#22a000;">\(\+\)<\/span>/g, '<img alt="GA candidate.svg" src="//upload.wikimedia.org/wikipedia/commons/thumb/8/8c/GA_candidate.svg/15px-GA_candidate.svg.png" decoding="async" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/8/8c/GA_candidate.svg/23px-GA_candidate.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/8/8c/GA_candidate.svg/30px-GA_candidate.svg.png 2x" data-file-width="183" data-file-height="196" width="15" height="16"></a>');
document.body.innerHTML = document.body.innerHTML.replace(/<span style="font-weight:bold;color:#B93B8F;background:#E6A9EC;">\(-\)<\/span>/g, '<img alt="BA candidate.svg" src="//upload.wikimedia.org/wikipedia/commons/thumb/f/f5/BA_candidate.svg/15px-BA_candidate.svg.png" decoding="async" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/f/f5/BA_candidate.svg/23px-BA_candidate.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/f/f5/BA_candidate.svg/30px-BA_candidate.svg.png 2x" data-file-width="190" data-file-height="200" width="15" height="16"> ');
document.body.innerHTML = document.body.innerHTML.replace(/<span style="font-weight: bold; color: red; background: pink;">\(×\)<\/span>/g, '<img alt="" src="//upload.wikimedia.org/wikipedia/commons/thumb/8/89/Symbol_delete_vote.svg/15px-Symbol_delete_vote.svg.png" decoding="async" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/8/89/Symbol_delete_vote.svg/23px-Symbol_delete_vote.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/8/89/Symbol_delete_vote.svg/30px-Symbol_delete_vote.svg.png 2x" data-file-width="180" data-file-height="185" width="15" height="15"></a> ');
document.body.innerHTML = document.body.innerHTML.replace(/<span style="color: green; background-color: lightgreen;">\(○\)<\/span>/g, '<img alt="" src="//upload.wikimedia.org/wikipedia/commons/thumb/d/d0/Symbol_keep_vote.svg/15px-Symbol_keep_vote.svg.png" decoding="async" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/d/d0/Symbol_keep_vote.svg/23px-Symbol_keep_vote.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/d/d0/Symbol_keep_vote.svg/30px-Symbol_keep_vote.svg.png 2x" data-file-width="180" data-file-height="185" width="15" height="15"></a>');