Updated to work with Fansly and OnlyFans
This commit is contained in:
parent
a53a117652
commit
bf621c0c00
1 changed files with 36 additions and 0 deletions
|
@ -20,9 +20,45 @@
|
||||||
handlers: {
|
handlers: {
|
||||||
onlyfans: () => {
|
onlyfans: () => {
|
||||||
console.log("[🦜] onlyfans called");
|
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: () => {
|
fansly: () => {
|
||||||
console.log("[🦜] fansly called");
|
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: () => {
|
candfans: () => {
|
||||||
console.log("[🦜] candfans called");
|
console.log("[🦜] candfans called");
|
||||||
|
|
Loading…
Reference in a new issue