mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-23 20:54:48 -04:00
geniee split test
This commit is contained in:
parent
4a2bbfee81
commit
021973d6e5
@ -21,6 +21,9 @@ declare global {
|
|||||||
cmd: any[];
|
cmd: any[];
|
||||||
forceInternalRequest: () => void;
|
forceInternalRequest: () => void;
|
||||||
};
|
};
|
||||||
|
adpushup: {
|
||||||
|
que: any[];
|
||||||
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -104,18 +107,42 @@ const loadAds = async (): Promise<void> => {
|
|||||||
window.gnshbrequest.forceInternalRequest();
|
window.gnshbrequest.forceInternalRequest();
|
||||||
});
|
});
|
||||||
|
|
||||||
await loadScript(
|
const splitProbability = Math.floor(Math.random() * 100);
|
||||||
'gpt',
|
if (splitProbability < 50) {
|
||||||
'https://securepubads.g.doubleclick.net/tag/js/gpt.js',
|
const s1 = document.createElement("script");
|
||||||
undefined,
|
s1.async = true;
|
||||||
'head',
|
const element =
|
||||||
);
|
document.getElementsByTagName("head")[0] ||
|
||||||
await loadScript(
|
document.getElementsByTagName("body")[0];
|
||||||
'geniee',
|
s1.src = "https://cdn.fuseplatform.net/publift/tags/2/3329/fuse.js";
|
||||||
'https://cpt.geniee.jp/hb/v1/222988/2860/wrapper.min.js',
|
element.appendChild(s1);
|
||||||
undefined,
|
} else {
|
||||||
'head',
|
(function (w, d) {
|
||||||
);
|
const s = d.createElement("script");
|
||||||
|
s.src = "//cdn.adpushup.com/47589/adpushup.js";
|
||||||
|
s.crossOrigin = "anonymous";
|
||||||
|
s.type = "text/javascript";
|
||||||
|
s.async = true;
|
||||||
|
(
|
||||||
|
d.getElementsByTagName("head")[0] ||
|
||||||
|
d.getElementsByTagName("body")[0]
|
||||||
|
).appendChild(s);
|
||||||
|
w.adpushup = w.adpushup || { que: [] };
|
||||||
|
})(window, document);
|
||||||
|
}
|
||||||
|
|
||||||
|
// await loadScript(
|
||||||
|
// 'gpt',
|
||||||
|
// 'https://securepubads.g.doubleclick.net/tag/js/gpt.js',
|
||||||
|
// undefined,
|
||||||
|
// 'head',
|
||||||
|
// );
|
||||||
|
// await loadScript(
|
||||||
|
// 'geniee',
|
||||||
|
// 'https://cpt.geniee.jp/hb/v1/222988/2860/wrapper.min.js',
|
||||||
|
// undefined,
|
||||||
|
// 'head',
|
||||||
|
// );
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
if (error instanceof LoadScriptError) {
|
if (error instanceof LoadScriptError) {
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user