You've already forked AstralRinth
forked from didirus/AstralRinth
revert ads changes
This commit is contained in:
@@ -13,7 +13,7 @@
|
|||||||
<div
|
<div
|
||||||
class="absolute top-0 flex items-center justify-center overflow-hidden rounded-2xl bg-bg-raised"
|
class="absolute top-0 flex items-center justify-center overflow-hidden rounded-2xl bg-bg-raised"
|
||||||
>
|
>
|
||||||
<div data-ad="project-rail" />
|
<div id="modrinth-rail-1" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -23,12 +23,33 @@ import { ChevronRightIcon } from "@modrinth/assets";
|
|||||||
useHead({
|
useHead({
|
||||||
script: [
|
script: [
|
||||||
{
|
{
|
||||||
type: "module",
|
src: "https://dn0qt3r0xannq.cloudfront.net/modrinth-7JfmkEIXEp/modrinth-longform/prebid-load.js",
|
||||||
src: "//js.rev.iq",
|
async: true,
|
||||||
"data-domain": "modrinth.com",
|
},
|
||||||
|
{
|
||||||
|
src: "/inmobi.js",
|
||||||
async: true,
|
async: true,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
link: [
|
||||||
|
{
|
||||||
|
rel: "preload",
|
||||||
|
as: "script",
|
||||||
|
href: "https://www.googletagservices.com/tag/js/gpt.js",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
});
|
||||||
|
|
||||||
|
onMounted(() => {
|
||||||
|
window.tude = window.tude || { cmd: [] };
|
||||||
|
tude.cmd.push(function () {
|
||||||
|
tude.refreshAdsViaDivMappings([
|
||||||
|
{
|
||||||
|
divId: "modrinth-rail-1",
|
||||||
|
baseDivId: "pb-slot-square-2",
|
||||||
|
},
|
||||||
|
]);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
<style>
|
<style>
|
||||||
@@ -37,6 +58,58 @@ iframe[id^="google_ads_iframe"] {
|
|||||||
background: transparent;
|
background: transparent;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#qc-cmp2-ui {
|
||||||
|
background: var(--color-raised-bg);
|
||||||
|
border-radius: var(--radius-lg);
|
||||||
|
color: var(--color-base);
|
||||||
|
}
|
||||||
|
|
||||||
|
#qc-cmp2-ui::before {
|
||||||
|
background: var(--color-raised-bg);
|
||||||
|
}
|
||||||
|
|
||||||
|
#qc-cmp2-ui::after {
|
||||||
|
background: var(--color-raised-bg);
|
||||||
|
}
|
||||||
|
|
||||||
|
#qc-cmp2-ui button[mode="primary"] {
|
||||||
|
background: var(--color-brand);
|
||||||
|
color: var(--color-accent-contrast);
|
||||||
|
border-radius: var(--radius-lg);
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
#qc-cmp2-ui button[mode="secondary"] {
|
||||||
|
background: var(--color-button-bg);
|
||||||
|
color: var(--color-base);
|
||||||
|
border-radius: var(--radius-lg);
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
#qc-cmp2-ui button[mode="link"] {
|
||||||
|
color: var(--color-link);
|
||||||
|
}
|
||||||
|
|
||||||
|
#qc-cmp2-ui h2 {
|
||||||
|
color: var(--color-contrast);
|
||||||
|
font-size: 1.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
#qc-cmp2-ui div,
|
||||||
|
#qc-cmp2-ui li,
|
||||||
|
#qc-cmp2-ui strong,
|
||||||
|
#qc-cmp2-ui p,
|
||||||
|
#qc-cmp2-ui .qc-cmp2-list-item-title,
|
||||||
|
#qc-cmp2-ui .qc-cmp2-expandable-info {
|
||||||
|
color: var(--color-base);
|
||||||
|
font-family: var(--font-standard);
|
||||||
|
}
|
||||||
|
|
||||||
|
#qc-cmp2-ui .qc-cmp2-toggle[aria-checked="true"] {
|
||||||
|
background-color: var(--color-brand);
|
||||||
|
border: 1px solid var(--color-brand);
|
||||||
|
}
|
||||||
|
|
||||||
@media (max-width: 1024px) {
|
@media (max-width: 1024px) {
|
||||||
.ad-parent {
|
.ad-parent {
|
||||||
display: none;
|
display: none;
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -1,75 +0,0 @@
|
|||||||
<!doctype html>
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8" />
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
||||||
<title>Modrinth App Ad</title>
|
|
||||||
<script
|
|
||||||
type="module"
|
|
||||||
src="//js.rev.iq"
|
|
||||||
data-domain="modrinth.com"
|
|
||||||
async
|
|
||||||
></script>
|
|
||||||
<style>
|
|
||||||
* {
|
|
||||||
margin: 0;
|
|
||||||
padding: 0;
|
|
||||||
overflow: hidden;
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
|
|
||||||
.ads-container {
|
|
||||||
width: 100vw;
|
|
||||||
height: 100vh;
|
|
||||||
overflow: hidden;
|
|
||||||
position: relative;
|
|
||||||
}
|
|
||||||
|
|
||||||
#plus-link {
|
|
||||||
width: 100vw;
|
|
||||||
height: 100vh;
|
|
||||||
position: absolute;
|
|
||||||
top: 0;
|
|
||||||
left: 0;
|
|
||||||
z-index: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
#modrinth-rail-1 {
|
|
||||||
border-radius: 1rem;
|
|
||||||
position: absolute;
|
|
||||||
left: 0;
|
|
||||||
bottom: 0;
|
|
||||||
z-index: 2;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<div class="ads-container">
|
|
||||||
<a id="plus-link" href="https://modrinth.com/plus" target="_blank"></a>
|
|
||||||
<div id="modrinth-rail-1" data-ad="project-rail"></div>
|
|
||||||
</div>
|
|
||||||
<script>
|
|
||||||
window.addEventListener(
|
|
||||||
"message",
|
|
||||||
(event) => {
|
|
||||||
if (event.data.modrinthOpenUrl && window.__TAURI_INTERNALS__) {
|
|
||||||
window.__TAURI_INTERNALS__.invoke("plugin:shell|open", {
|
|
||||||
path: event.data.modrinthOpenUrl,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
},
|
|
||||||
false,
|
|
||||||
);
|
|
||||||
|
|
||||||
window.addEventListener("mousewheel", (event) => {
|
|
||||||
if (window.__TAURI_INTERNALS__) {
|
|
||||||
window.__TAURI_INTERNALS__.invoke("plugin:ads|scroll_ads_window", {
|
|
||||||
scroll: event.deltaY,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
document.addEventListener("contextmenu", (event) => event.preventDefault());
|
|
||||||
</script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
@@ -1,84 +1,84 @@
|
|||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
<title>Modrinth App Ad</title>
|
<title>Modrinth App Ad</title>
|
||||||
<script
|
<script
|
||||||
src="https://dn0qt3r0xannq.cloudfront.net/modrinth-7JfmkEIXEp/modrinth-longform/prebid-load.js"
|
src="https://dn0qt3r0xannq.cloudfront.net/modrinth-7JfmkEIXEp/modrinth-longform/prebid-load.js"
|
||||||
async
|
async
|
||||||
></script>
|
></script>
|
||||||
<link rel="preload" href="https://www.googletagservices.com/tag/js/gpt.js" as="script" />
|
<link rel="preload" href="https://www.googletagservices.com/tag/js/gpt.js" as="script" />
|
||||||
<style>
|
<style>
|
||||||
* {
|
* {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ads-container {
|
.ads-container {
|
||||||
width: 100vw;
|
width: 100vw;
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
#plus-link {
|
#plus-link {
|
||||||
width: 100vw;
|
width: 100vw;
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
z-index: 0;
|
z-index: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#modrinth-rail-1 {
|
#modrinth-rail-1 {
|
||||||
border-radius: 1rem;
|
border-radius: 1rem;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 0;
|
left: 0;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class="ads-container">
|
||||||
|
<a id="plus-link" href="https://modrinth.com/plus" target="_blank"></a>
|
||||||
|
<div id="modrinth-rail-1" />
|
||||||
|
</div>
|
||||||
|
<script>
|
||||||
|
window.tude = window.tude || { cmd: [] };
|
||||||
|
tude.cmd.push(function () {
|
||||||
|
tude.refreshAdsViaDivMappings([
|
||||||
|
{
|
||||||
|
divId: "modrinth-rail-1",
|
||||||
|
baseDivId: "pb-slot-square-2",
|
||||||
|
},
|
||||||
|
]);
|
||||||
|
});
|
||||||
|
|
||||||
|
window.addEventListener(
|
||||||
|
"message",
|
||||||
|
(event) => {
|
||||||
|
if (event.data.modrinthOpenUrl && window.__TAURI_INTERNALS__) {
|
||||||
|
window.__TAURI_INTERNALS__.invoke("plugin:shell|open", {
|
||||||
|
path: event.data.modrinthOpenUrl,
|
||||||
|
});
|
||||||
}
|
}
|
||||||
</style>
|
},
|
||||||
</head>
|
false,
|
||||||
<body>
|
);
|
||||||
<div class="ads-container">
|
|
||||||
<a id="plus-link" href="https://modrinth.com/plus" target="_blank"></a>
|
window.addEventListener("mousewheel", (event) => {
|
||||||
<div id="modrinth-rail-1" />
|
if (window.__TAURI_INTERNALS__) {
|
||||||
</div>
|
window.__TAURI_INTERNALS__.invoke("plugin:ads|scroll_ads_window", {
|
||||||
<script>
|
scroll: event.deltaY,
|
||||||
window.tude = window.tude || { cmd: [] };
|
|
||||||
tude.cmd.push(function () {
|
|
||||||
tude.refreshAdsViaDivMappings([
|
|
||||||
{
|
|
||||||
divId: "modrinth-rail-1",
|
|
||||||
baseDivId: "pb-slot-square-2",
|
|
||||||
},
|
|
||||||
]);
|
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
window.addEventListener(
|
document.addEventListener("contextmenu", (event) => event.preventDefault());
|
||||||
"message",
|
</script>
|
||||||
(event) => {
|
</body>
|
||||||
if (event.data.modrinthOpenUrl && window.__TAURI_INTERNALS__) {
|
|
||||||
window.__TAURI_INTERNALS__.invoke("plugin:shell|open", {
|
|
||||||
path: event.data.modrinthOpenUrl,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
},
|
|
||||||
false,
|
|
||||||
);
|
|
||||||
|
|
||||||
window.addEventListener("mousewheel", (event) => {
|
|
||||||
if (window.__TAURI_INTERNALS__) {
|
|
||||||
window.__TAURI_INTERNALS__.invoke("plugin:ads|scroll_ads_window", {
|
|
||||||
scroll: event.deltaY,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
document.addEventListener("contextmenu", (event) => event.preventDefault());
|
|
||||||
</script>
|
|
||||||
</body>
|
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Reference in New Issue
Block a user