PC/모바일
공감 목록 단체 차단 스크립트
조회 8,039 · 공감 4 · 댓글 5
글이나 댓글은 차단이 가능한데, 공감목록에서는 차단이 불가능하여 만들어보았습니다.
필요한 프로그램: 크롬+Tampermonkey (사용법을 안다면 다른 유저스크립트도 무방합니다.)
https://chrome.google.com/webstore/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo
[설치하는 법]
1. 탬퍼몽키 설치 후 아이콘 클릭

2. '새 스크립트 만들기' 선택

3. 다음 스크립트를 붙여넣어 전체 내용을 대체하기
// ==UserScript==
// @name Clien Liker Chain Block
// @version 0.4
// @match https://*.clien.net/service/popup/like/*
// @connect clien.net
// ==/UserScript==
(function() {
'use strict';
var header = $('h3').text();
$('h3').html(header+' 차단 <- 클릭');
$('h3').click(function() {
var $this = $(this);
$this.html(header+' 차단 중...');
var pathname = window.location.pathname;
var article_num = pathname.split('popup/like/')[1];
var params = {
note: article_num,
blockMessageYn: true,
blockArticleYn: true
};
$('.nickname').each(function(index) {
var onclick = $(this).attr('onclick');
var id = onclick.split('userInfoPopup(')[1].split(',')[1].split("'")[1];
console.log(id);
var url = API_HOST + '/mypage/memo/block/' + id;
$.ajax({
url: url,
type: 'POST',
async: false,
data: {
myUserMemo: JSON.stringify(params)
},
success: function(result) {
if(result){
var userId = $('#userId').val();
storage.storageUpdatePopup(userId);
console.log(userId + ' blocked');
}
},
error: function(result) {
util.log(result);
var res = JSON.parse(result.responseText);
alert(res.message);
}
});
});
$this.html(header+' 차단 완료!');
});
})();
4. 디스켓 버튼 눌러 저장

[사용하는 법]
1. 보고싶지 않은 글 찾기

2. 본문 하단의 공감 수 클릭

3. '이 글을 공감한 사람들 차단' 글씨를 클릭

4. 기다리기... (끝나면 완료라고 뜹니다.)
5. 차단 목록에 가서 확인
댓글 5