테스트 사이트 - 개발 중인 베타 버전입니다

답변글 Re: 삭제하기

· 12개월 전 · 898 · 16

 

https://sir.kr/qa/546670 를 보고 만들어본 코드입니다.

 

----------

 

원래 답변글은 아래 그림과 같습니다.

 

3717943588_1731131808.4552.png

 

----------

 

Re: 를 삭제합니다. 아래의 자바스크립트를 그누순정 베이직이나 갤러리 기본pc 스킨에서

list.skin.php 의 가장 하단에 넣어주세요.

 

[code]

<script>
for (re_text of document.querySelectorAll(".bo_tit a")) re_text.innerHTML = re_text.innerHTML.replace("Re:", "");
</script>

[/code]

 

3717943588_1731131991.9911.png

 

----------

 

Re: 를 다른 문자열로 대체합니다.

 

[code]

<script>
for (re_text of document.querySelectorAll(".bo_tit a")) re_text.innerHTML = re_text.innerHTML.replace("Re:", "<span style='color:#ff0000'>[ 답변 ]</span>");
</script>

[/code]

 

3717943588_1731132071.9809.png

 

----------

 

화살표 이미지를 지우고 싶다면 아래처럼요.

 

[code]

<script>
for (re_text of document.querySelectorAll(".bo_tit a")) re_text.innerHTML = re_text.innerHTML.replace("Re:", "<span style='color:#ff0000'>[ 답변 ]</span>");
for (re_icon of document.querySelectorAll(".bo_tit a img[src*='icon_reply.gif']")) re_icon.remove();
</script>

[/code]

 

3717943588_1731132160.669.png

 

----------

 

왼쪽 간격을 없애고 싶다면?

 

[code]

<script>
for (re_text of document.querySelectorAll(".bo_tit a")) re_text.innerHTML = re_text.innerHTML.replace("Re:", "<span style='color:#ff0000'>[ 답변 ]</span>");
for (re_icon of document.querySelectorAll(".bo_tit a img[src*='icon_reply.gif']")) re_icon.remove();
for (re_padding of document.querySelectorAll(".td_subject")) re_padding.style.paddingLeft = "0px";
</script>

[/code]

 

3717943588_1731132251.6773.png

 

----------

 

모바일의 경우입니다. pc 코드를 보고 응용해 보세요.

 

[code]

<script>
for (re_text of document.querySelectorAll(".bo_subject")) re_text.innerHTML = re_text.innerHTML.replace("Re:", "<span style='color:#ff0000'>[ 답변 ]</span>");
for (re_icon of document.querySelectorAll(".bo_subject img[src*='icon_reply.gif']")) re_icon.remove();
</script>

[/code]

댓글 작성

댓글을 작성하시려면 로그인이 필요합니다.

로그인하기

댓글 16개

11개월 전

감사합니다 ^^

11개월 전

@민트다이어리 감사합니다 

11개월 전

감사합니다 

11개월 전

@너나잘해 감사합니다 

11개월 전

좋은 자료 감사합니다.^^

11개월 전

@GREENnBLUE 감사합니다 

게시글 목록

번호 제목
23254
23244
23241
23236
23200
23199
23179
23174
23138
23128
23125
23116
23109
23099
23092
23083
23079
23063
23050
23036
23029
23007
23003
22983
22959
22943
22939
22934
22905
22897