Skip to content

Instantly share code, notes, and snippets.

@krisu5
Last active April 21, 2021 12:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save krisu5/7bd54d2e0a07a00630370c14d62563b2 to your computer and use it in GitHub Desktop.
Save krisu5/7bd54d2e0a07a00630370c14d62563b2 to your computer and use it in GitHub Desktop.
AniList - Anti-Social (Extras)
/* ==UserStyle==
@name AniList - Anti-Social (Extras)
@author krisu (https://github.com/krisu5)
@namespace github.com/krisu5/userstyles
@homepageURL https://github.com/krisu5/userstyles/tree/master/AniList%20-%20Anti-Social
@version 1.0.0
@license unlicense
@preprocessor default
==/UserStyle== */
@-moz-document domain("anilist.co") {
#nav a[href^="/forum/"], /* <-- "Forum" link at top navigation */
.recent-threads, /* <-- "Forum Activity" section at frontpage */
.recent-reviews, /* <-- "Recent Reviews" section at frontpage */
.media .recommendations + .grid-section-wrap /* <-- "Threads" & "Reviews" at bottom of anime / manga pages */
{ display: none !important; }
}
// ==UserScript==
// @name AniList - Anti-Social (Extras)
// @author krisu (https://github.com/krisu5)
// @namespace github.com/krisu5/userstyles
// @homepageURL https://github.com/krisu5/userstyles/tree/master/AniList%20-%20Anti-Social
// @version 1.0.0
// @license unlicense
// @grant GM_addStyle
// @run-at document-start
// @include http://anilist.co/*
// @include https://anilist.co/*
// @include http://*.anilist.co/*
// @include https://*.anilist.co/*
// ==/UserScript==
(function() {
let css = `
#nav a[href^="/forum/"], /* <-- "Forum" link at top navigation */
.recent-threads, /* <-- "Forum Activity" section at frontpage */
.recent-reviews, /* <-- "Recent Reviews" section at frontpage */
.media .recommendations + .grid-section-wrap /* <-- "Threads" & "Reviews" at bottom of anime / manga pages */
{ display: none !important; }
`;
if (typeof GM_addStyle !== "undefined") {
GM_addStyle(css);
} else {
let styleNode = document.createElement("style");
styleNode.appendChild(document.createTextNode(css));
(document.querySelector("head") || document.documentElement).appendChild(styleNode);
}
})();
@krisu5
Copy link
Author

krisu5 commented Feb 13, 2021

Extra blocks for AniList - Anti-Social.

Blocks reviews and forum related stuff.

By request, only minimal support given (updating only when issues related to extras are claimed).

@krisu5
Copy link
Author

krisu5 commented Apr 21, 2021

Possible issues:

  • If anime / manga page doesn't have "Recommendations" section, then "Threads" and "Reviews" sections can't be blocked. But this should be rare.

False positives:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment