FanzaFilterUtil

filtering util on Fanza doujin

Від 08.08.2023. Дивіться остання версія.

Цей скрипт не слід встановлювати безпосередньо. Це - бібліотека для інших скриптів для включення в мета директиву // @require https://update.sleazyfork.org/scripts/471066/1232537/FanzaFilterUtil.js

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(У мене вже є менеджер скриптів, дайте мені встановити його!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         FanzaFilterUtil
// @description  filtering util on Fanza doujin
// @author       RamisAmuki
// @license      MIT
// ==/UserScript==

// ignore list
const is_bookmark_page = location.pathname === "/dc/doujin/-/bookmark/";
const ignore_querys = [
  "span.u-common__ico--basketDone",
  "span.listPurchased__btn",
];
const ignore_genres_exp = /ボイス|AI/;
const ignore_authors_exp = new RegExp(
  [
    "TGA",
    "聖華快楽書店",
    "ブルースカイ",
    "産婆",
    "マサヂロー",
    "私立 七つ星中",
    "100日後に絵が上手",
    "デジタルワイフPro",
    "ブリーフアワー",
    "なでしこさん",
    "塩屋",
    "アオキアカ",
    "アオイ",
    "ルーマニー",
    "クリームソーダ",
    "あいどるたいむ",
    "魔の王野口営業二課",
    "たまねぎ",
    "勇者チキン",
    "ラビットバナナ",
    "AgeRatum",
  ].join("|")
);
const ignore_titles_exp = new RegExp(
  [
    "体験版",
    "無料版",
    "ぼうけんのしょ",
    "君との夏休み〜",
    "催●カノジョ",
    "巨乳地味子はその",
  ].join("|")
);

// query
const querys = !is_bookmark_page
  ? {
      lists: "ul.fn-productList > li.productList__item",
      genre: "div.listGenreIco__ico",
      author: "div.tileListTtl__txt--author",
      title: "div.tileListTtl__txt",
      rate: "span.c_icon_priceStatus",
      price: "p.c_txt_price",
      button_parent: "div.pageNation__item",
    }
  : {
      lists: "ul.basket-list-tile > li.basket-listItem-tile",
      genre: "span.c_icon_genre",
      author: "p.basket-circle-tile",
      title: "b.basket-name-tile",
      rate: "span.c_icon_priceStatus",
      price: "p.c_txt_price",
      button_parent: "div.basket-btnAreaCol1",
    };

const checker = (liqs) => {
  const auhtor = liqs(querys.author).innerText.trim();
  const title = liqs(querys.title).innerText;
  if (liqs(querys.rate) === null) return true;
  // checking
  return [
    check_rate_price(liqs, querys),
    ignore_querys.some((query) => liqs(query) !== null),
    ignore_genres_exp.test(liqs(querys.genre).innerText),
    checkboxEnable("author") ? ignore_authors_exp.test(auhtor) : false,
    ignore_titles_exp.test(title),
  ].some((b) => b);
};