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

답변글 Re: 삭제하기

· 12개월 전 · 901 · 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개

12개월 전

감사합니다 ^^

12개월 전

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

12개월 전

감사합니다 

12개월 전

@너나잘해 감사합니다 

11개월 전

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

11개월 전

@GREENnBLUE 감사합니다 

게시글 목록

번호 제목
22569
22566
22565
22559
22530
22527
22525
22521
22518
22506
22500
22490
22487
22481
22480
22473
22471
22468
22453
22449
22440
22436
22435
22415
22407
22404
22376
22364
22362
22353