Unfollow tool for Bluesky

added notices for unfollows

Changed files
+19 -2
src
+1 -1
index.html
···
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<link rel="shortcut icon" type="image/ico" href="/src/assets/favicon.ico" />
-
<title>nofollow-bsky</title>
+
<title>cleanfollow-bsky</title>
</head>
<body>
+18 -1
src/App.tsx
···
import styles from "./App.module.css";
import { BskyAgent } from "@atproto/api";
+
const [unfollow, setUnfollow] = createSignal("");
+
const fetchFollows = async (agent: any) => {
const PAGE_LIMIT = 100;
const fetchPage = async (cursor?: any) => {
···
console.log(
"Unfollowed blocked account: " + followRecords[i + n].value.subject,
" (" + res.data.profiles[i].handle + ")",
+
);
+
setUnfollow(
+
unfollow() +
+
"Unfollowed blocked account: " +
+
followRecords[i + n].value.subject +
+
" (" +
+
res.data.profiles[i].handle +
+
")<br>",
);
}
}
···
console.log(
"Unfollowed deleted account: " + followRecords[i + n].value.subject,
);
+
setUnfollow(
+
unfollow() +
+
"Unfollowed deleted account: " +
+
followRecords[i + n].value.subject +
+
"<br>",
+
);
}
}
}
···
Unfollow
</button>
</form>
+
<div innerHTML={unfollow()}></div>
</div>
);
};
···
const App: Component = () => {
return (
<div class={styles.App}>
-
<h1>nofollow-bsky</h1>
+
<h1>cleanfollow-bsky</h1>
<div class="warning">
<p>
warning: unfollows all deleted accounts and accounts you follow that