Add sponsor

This commit is contained in:
Mariam Maarouf 2021-02-15 18:50:30 +01:00
parent bef8b7f186
commit ce0057a2d9
5 changed files with 48 additions and 5 deletions

View File

@ -3,7 +3,7 @@
"manifest_version": 2,
"name": "InteractiveFics",
"author": "mariamrf",
"version": "5.2.0",
"version": "5.2.1",
"description": "Replaces Y/N & other variables in Reader Insert/second person fics with words of your choice.",
"browser_action": {
"default_title": "InteractiveFics",
@ -34,5 +34,8 @@
"background": {
"page": "popup.html"
},
"homepage_url": "https://interactivefics.tumblr.com"
"homepage_url": "https://interactivefics.tumblr.com",
"web_accessible_resources": [
"toucan-banner.png"
]
}

View File

@ -1,10 +1,35 @@
body {
background-color: white;
color: #2C3531;
width: 270px;
padding:10px;
width: 332px;
font-family: 'Rubik', sans-serif;
margin: 0px;
}
#body-without-toucan {
padding:10px;
margin: 8px;
}
#toucan {
width: 100%;
}
#toucan a {
text-decoration: none;
font-weight: 800;
}
#toucan hr {
opacity: 0.3;
}
#toucan h4 {
margin: 10px;
text-transform: uppercase;
text-align: center;
}
h1 {
font-size: 16px;
}

View File

@ -2,11 +2,12 @@
<meta charset="UTF-8">
<html>
<head>
<link href="https://fonts.googleapis.com/css?family=Rubik&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Rubik:wght@300;500;800&display=swap" rel="stylesheet">
<link href='popup.css' rel='stylesheet' type='text/css'>
<script src="popup.js" type="text/javascript"></script>
</head>
<body>
<div id="body-without-toucan">
<div class="fade-when-deactivate">
<h1>Enter the name here:</h1>
<form id="change-name-form">
@ -63,5 +64,12 @@
<div id="src-code">
🤖 <a href="https://github.com/interactivefics/interactive-fics" target="_blank">source code</a> 🤖
</div>
</div>
<div id="toucan">
<hr>
<a id="toucan-link" href="https://jointoucan.com/partners/interactivefics" target="_blank" title="Please install Toucan via this link to support InteractiveFics!">
<h4><b>Sponsored by</b></h4>
</a>
</div>
</body>
</html>

View File

@ -17,6 +17,7 @@ document.addEventListener('DOMContentLoaded', function () {
setDeactivateKey()
setMutationObserverKey()
setPauseDomainKey()
addToucanBanner()
});
@ -233,3 +234,9 @@ const togglePauseDomain = () => {
})
})
}
const addToucanBanner = () => {
const img = document.createElement('img')
img.src = chrome.extension.getURL('toucan-banner.png')
document.getElementById('toucan-link').appendChild(img)
}

BIN
toucan-banner.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.1 KiB