Updated to work with Fansly and OnlyFans

This commit is contained in:
Nicholas Phillips 2024-08-02 10:48:39 -04:00
parent a53a117652
commit bf621c0c00

View file

@ -20,9 +20,45 @@
handlers: {
onlyfans: () => {
console.log("[🦜] onlyfans called");
// https://onlyfans.com/belledelphine
let parsed = new URL(location.href);
let id = parsed.pathname.split("/")[1];
let dd = figureDomain();
let dCreators = config.creators[dd[1]];
for (const key in dCreators) {
if (Object.hasOwnProperty.call(dCreators, key)) {
const creator = dCreators[key];
if (creator.id === id) {
clearInterval(looper);
let dest = locationGen(dd[0], dd[1], id);
if (confirm("Redirecting to " + dest)) {
location.href = dest;
}
break;
}
}
}
},
fansly: () => {
console.log("[🦜] fansly called");
// https://fansly.com/Morgpie
let parsed = new URL(location.href);
let id = parsed.pathname.split("/")[1];
let dd = figureDomain();
let dCreators = config.creators[dd[1]];
for (const key in dCreators) {
if (Object.hasOwnProperty.call(dCreators, key)) {
const creator = dCreators[key];
if (creator.name === id) {
clearInterval(looper);
let dest = locationGen(dd[0], dd[1], creator.id);
if (confirm("Redirecting to " + dest)) {
location.href = dest;
}
break;
}
}
}
},
candfans: () => {
console.log("[🦜] candfans called");