mNo edit summary |
m new site domain |
||
Line 1: | Line 1: | ||
console.log("User:One-Six/fullpagename.js is loaded"); | console.log("User:One-Six/fullpagename.js is loaded"); | ||
const hrefFullPageNamee = () => { | const hrefFullPageNamee = () => { | ||
let fullPageNamee = window.location.href.replace(/http(s|):\/\/en.moegirl.org\//,""); | let fullPageNamee = window.location.href.replace(/http(s|)\:\/\/en\.moegirl\.org(|\.cn)\//,""); | ||
if(/index\.php/g.test(fullPageNamee)) { | if(/index\.php/g.test(fullPageNamee)) { | ||
let array = [...fullPageNamee.matchAll(/title=(.+?)(?:&|$)/g)]; | let array = [...fullPageNamee.matchAll(/title=(.+?)(?:&|$)/g)]; |
console.log("User:One-Six/fullpagename.js is loaded");
const hrefFullPageNamee = () => {
let fullPageNamee = window.location.href.replace(/http(s|)\:\/\/en\.moegirl\.org(|\.cn)\//,"");
if(/index\.php/g.test(fullPageNamee)) {
let array = [...fullPageNamee.matchAll(/title=(.+?)(?:&|$)/g)];
fullPageNamee = array[array.length - 1][1];
}
return fullPageNamee.replace(/#.+$/,"");
//console.log("FULLPAGENAME:"+fullPageNamee);
};