아래 사이트에서 테스트 하실 수 있습니다.
https://codepen.io/wdevcode/pen/zWEEJJ
<html>
<head>
<script src="https://cdn.steemjs.com/lib/latest/steem.min.js"></script>
</head>
<body>
<div>누가 날 차단했나 ? (who block me) / made in <a href="https://steemit.com/@wdev">@wdev</a><br>사용방법 : 아래 ACCOUNT에 계정명을 입력한 이후 엔터를 입력하면 됩니다. </div><br>
<div>
ACCOUNT :
<input type="txt" id="inpAccount">
</div>
<div id="divDisp"></div>
</body>
<script>
// 누가 날 차단했는지 확인할 수 있다
// account : 계정
// startFollower : 조회 시작 계정명
// total : 조회된 계정 정보
function whoBlockMe(account, startFollower, total) {
const READ_COUNT = 999; // max read 999
total = total==undefined?[]:total;
// steem.api.getFollowers(following, startFollower, followType, limit, function(err, result)
steem.api.getFollowers(account, startFollower, null, READ_COUNT, function(err, result) {
try{
startFollower = result[result.length - 1].follower;
}catch(e){
alert( account + "는 존재하지 않는 ACCOUNT 입니다.");
}
result.forEach(res => {
if (res.what.length == 1 && res.what[0] == 'ignore') {
total.push(res.follower);
}
});
// 추가 정보가 있는 경우 더 읽어들인다.
if (result.length == READ_COUNT) {
whoBlockMe(account, startFollower, total);
}else{
// console.log("total : " + total);
var html = [];
html.push("total : " + total.length +"<br>");
total.forEach(item => {
html.push( "@"+item +"<br>"+ "<a href='https://steemit.com/@"+item+"' target='_blank'>https://steemit.com/@"+item+"</a><br>");
});
screenLock(false);
document.getElementById("divDisp").innerHTML = html.join("<br/>");
}
});
return total;
}
// 화면을 잠금 처리한다
// flag : 잠금 여부
function screenLock(flag){
if(flag){
document.getElementById("divDisp").innerHTML = "please wait, now loading...";
}
document.getElementById("inpAccount").readOnly = flag;
}
</script>
<script>
document.getElementById("inpAccount").addEventListener('keypress', (e)=>{
var key = e.which || e.keyCode;
if (key === 13) { // 13 is enter
screenLock(true);
const account = document.getElementById("inpAccount").value.replace(/\@/,"");
whoBlockMe( account );
}
});
</script>
</html>
차단 기능이 있을 것 같다는 생각은 했지만, 진짜 있을줄은 몰랐군요...
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
단순하게 차단은 아이디 클릭해서 볼수 있겠지요 ^^
저도 만들고 난 이후 차단 건 사람들을 파고 파고 들어가면 계정의 글들을 봤는데 의외로 잼있는 거 같네요 ...
왜 그들은 차단했을까 ? 라는 ... ( 나중에 기회 되면 분석이후 글 작성해 봐도 의미가 클거 같습니다. )
그럼 행복한 하루 되세요
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
팔로우 하려고 했다가 실수로 차단한것 아닐까요?
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
그럴수도 있지요 ^^
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit