TheLowKing
Really Really Experienced
Tired of seeing authors posting stories you're just not interested in? Maybe you just don't like the way they write, or the fetishes they write about just aren't for you? Then this script is for you! Just fill in the author names near the top of the script, and you're good to go.
To use this, you need to install Greasemonkey for Firefox, Tampermonkey for Firefox, or Tampermonkey for Chrome, then choose 'New user script' (or equivalent option) and copy-paste the above code into the window that opens. Don't forget to enter the names of the authors whose stories you want to hide, or it won't do anything!
Code:
// ==UserScript==
// @name CHYOA: Hide stories by certain authors
// @version 1
// @author [email protected]
// @grant none
// @match https://chyoa.com/search?*
// @match https://chyoa.com/recently-updated-sex-stories*
// @match https://chyoa.com/new-sex-stories*
// @match https://chyoa.com/category/*
// ==/UserScript==
const ignored_authors = [
"Put-Author-Names",
"HereLikeThis",
"Don't forget the commas!",
];
if (!document.querySelector('style.tlk.ignore_authors')) {
document.querySelectorAll('.item-header > small > a').forEach(function(a) {
const author = a.href.replace(/^https:\/\/chyoa\.com\/user\//,
'').toLowerCase();
const lower_cased_ignored_authors = ignored_authors.map(function(a) {
return a.toLowerCase();
});
if (lower_cased_ignored_authors .indexOf(author) >= 0) {
const story_card = a.parentNode.parentNode.parentNode.parentNode;
story_card.classList.add('tlk',
'ignored_author');
}
});
const style = document.createElement('style');
style.classList.add('tlk',
'ignore_authors');
style.innerHTML = `
.tlk.ignored_author {
display: none !important;
`;
document.head.appendChild(style);
}
To use this, you need to install Greasemonkey for Firefox, Tampermonkey for Firefox, or Tampermonkey for Chrome, then choose 'New user script' (or equivalent option) and copy-paste the above code into the window that opens. Don't forget to enter the names of the authors whose stories you want to hide, or it won't do anything!
Last edited: