summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--readme.md1
-rw-r--r--source/features/show-followers-you-know.tsx66
-rw-r--r--source/refined-github.ts1
3 files changed, 0 insertions, 68 deletions
diff --git a/readme.md b/readme.md
index 28c9d18a..755792cf 100644
--- a/readme.md
+++ b/readme.md
@@ -292,7 +292,6 @@ Thanks for contributing! 🦋🙌
### Profiles
-- [](# "show-followers-you-know") [Shows the followers you have in common.](https://user-images.githubusercontent.com/2906365/42009293-b1503f62-7a57-11e8-88f5-9c2fb3651a14.png)
- [](# "user-profile-follower-badge") [Tells you whether the user follows you.](https://user-images.githubusercontent.com/3723666/45190460-03ecc380-b20c-11e8-832b-839959ee2c99.gif)
- [](# "profile-gists-link") [Adds a link to the user’s public gists.](https://user-images.githubusercontent.com/11544418/34268306-1c974fd2-e678-11e7-9e82-861dfe7add22.png)
- [](# "mark-private-orgs") [Marks private organizations on your own profile.](https://user-images.githubusercontent.com/6775216/44633467-d5dcc900-a959-11e8-9116-e6b0ffef66af.png)
diff --git a/source/features/show-followers-you-know.tsx b/source/features/show-followers-you-know.tsx
deleted file mode 100644
index 336097e4..00000000
--- a/source/features/show-followers-you-know.tsx
+++ /dev/null
@@ -1,66 +0,0 @@
-import React from 'dom-chef';
-import select from 'select-dom';
-import * as pageDetect from 'github-url-detection';
-
-import features from '.';
-import fetchDom from '../helpers/fetch-dom';
-import {getCleanPathname} from '../github-helpers';
-
-const fetchStargazers = async (): Promise<HTMLImageElement[]> => {
- const url = `/${getCleanPathname()}/followers/you_know`;
- const dom = await fetchDom(url);
- return select.all<HTMLImageElement>('.follow-list-item .avatar', dom);
-};
-
-const avatarSize = 35;
-function renderAvatar(image: HTMLImageElement): HTMLElement {
- const imageUrl = new URL(image.src);
- imageUrl.searchParams.set('s', String(avatarSize * window.devicePixelRatio));
- image.src = String(imageUrl);
- image.width = avatarSize;
- image.height = avatarSize;
-
- return (
- <a
- href={(image.parentElement as HTMLAnchorElement).href}
- aria-label={image.alt.slice(1)}
- className="tooltipped tooltipped-n avatar-group-item mr-1"
- >
- {image}
- </a>
- );
-}
-
-async function init(): Promise<false | void> {
- const container = select('[itemtype="http://schema.org/Person"]');
- if (!container) {
- return false;
- }
-
- const stargazers = await fetchStargazers();
- if (stargazers.length === 0) {
- return false;
- }
-
- container.append(
- <div className="border-top pt-3 mt-3 clearfix hide-sm hide-md">
- <h2 className="mb-2 h4">Followers you know</h2>
- {stargazers.map(renderAvatar)}
- </div>
- );
-}
-
-void features.add({
- id: __filebasename,
- disabled: '#3345',
- description: 'Followers you know are shown on profile pages.',
- screenshot: 'https://user-images.githubusercontent.com/2906365/42009293-b1503f62-7a57-11e8-88f5-9c2fb3651a14.png'
-}, {
- include: [
- pageDetect.isUserProfile
- ],
- exclude: [
- pageDetect.isOwnUserProfile
- ],
- init
-});
diff --git a/source/refined-github.ts b/source/refined-github.ts
index dfbd9284..091dd03e 100644
--- a/source/refined-github.ts
+++ b/source/refined-github.ts
@@ -96,7 +96,6 @@ import './features/previous-next-commit-buttons';
import './features/preserve-whitespace-option-in-nav';
import './features/extend-diff-expander';
import './features/profile-gists-link';
-import './features/show-followers-you-know';
import './features/show-user-top-repositories';
import './features/set-default-repositories-type-to-sources';
import './features/user-profile-follower-badge';