feat: anti ai art hehe
This commit is contained in:
parent
d99a64a2fc
commit
75760a5b16
22
userscripts/pixiv-ai-notifier.user.js
Normal file
22
userscripts/pixiv-ai-notifier.user.js
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
// ==UserScript==
|
||||||
|
// @name AI notifier for Pixiv
|
||||||
|
// @description Notify you when an AI artwork is detected (through tags) on Pixiv
|
||||||
|
// @namespace tretrauit-dev
|
||||||
|
// @match *://www.pixiv.net/*/artworks/*
|
||||||
|
// @icon https://upload.wikimedia.org/wikipedia/commons/7/7e/Pixiv_Icon.svg
|
||||||
|
// @grant none
|
||||||
|
// @version 1.0.0
|
||||||
|
// @author tretrauit
|
||||||
|
// @run-at document-idle
|
||||||
|
// @homepageURL https://gitlab.com/tretrauit/scripts
|
||||||
|
// @supportURL https://gitlab.com/tretrauit/scripts/-/issues
|
||||||
|
// @downloadURL https://git.tretrauit.me/tretrauit/scripts/raw/branch/main/userscripts/pixiv-ai-notifier.user.js
|
||||||
|
// ==/UserScript==
|
||||||
|
|
||||||
|
const tagElms = document.querySelectorAll(".gtm-new-work-tag-event-click");
|
||||||
|
for (const elm of tagElms) {
|
||||||
|
if (elm.parentElement.parentElement.textContent.toLowerCase().includes("ai")) {
|
||||||
|
alert("AI artwork detected :(");
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user