mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2024-11-10 09:07:45 +01:00
Changed order of popup. Also fixed discord link.
Resolves https://github.com/ajayyy/SponsorBlock/issues/156.
This commit is contained in:
parent
9cb3da4a7f
commit
600f9e4b85
3 changed files with 67 additions and 67 deletions
|
@ -268,5 +268,9 @@
|
||||||
},
|
},
|
||||||
"enableSkipping": {
|
"enableSkipping": {
|
||||||
"message": "Enable SponsorBlock"
|
"message": "Enable SponsorBlock"
|
||||||
|
},
|
||||||
|
"yourWork": {
|
||||||
|
"message": "Your Work",
|
||||||
|
"description": "Used to describe the section that will show you the statistics from your submissions."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
116
popup.html
116
popup.html
|
@ -27,9 +27,62 @@
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<br/>
|
<p class="popupElement">
|
||||||
|
__MSG_recordTimesDescription__
|
||||||
|
</p>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
|
<button id="sponsorStart" class="greenButton popupElement">__MSG_sponsorStart__</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<sub class="popupElement">__MSG_popupHint__</sub>
|
||||||
|
|
||||||
|
<div id="submissionSection" class="popupElement" style="display: none">
|
||||||
|
<h3 class="popupElement">__MSG_lastTimes__</h3>
|
||||||
|
<b>
|
||||||
|
<div id="sponsorMessageTimes" class="popupElement">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</b>
|
||||||
|
|
||||||
|
<br/>
|
||||||
|
|
||||||
|
<button id="clearTimes" class="smallButton popupElement">__MSG_clearTimesButton__</button>
|
||||||
|
|
||||||
|
<div id="submitTimesContainer" class="popupElement" style="display: none">
|
||||||
|
|
||||||
|
<br/>
|
||||||
|
<br/>
|
||||||
|
|
||||||
|
<button id="submitTimes" class="smallButton popupElement">__MSG_submitTimesButton__</button>
|
||||||
|
|
||||||
|
<div id="submitTimesInfoMessageContainer" class="popupElement" style="display: none">
|
||||||
|
<h3 id="submitTimesInfoMessage" class="popupElement">
|
||||||
|
|
||||||
|
</h3>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="discordButtonContainer" class="popupElement" style="display: none">
|
||||||
|
<br/>
|
||||||
|
|
||||||
|
<a href="https://discord.gg/QnmVMpU" class="popupElement" target="_blank"><img src="https://www.logolynx.com/images/logolynx/1b/1bcc0f0aefe71b2c8ce66ffe8645d365.png" height="32px"/></a>
|
||||||
|
|
||||||
|
<br/>
|
||||||
|
|
||||||
|
__MSG_discordAdvert__
|
||||||
|
|
||||||
|
<br/>
|
||||||
|
|
||||||
|
<span id="hideDiscordButton" class="smallLink popupElement">__MSG_hideThis__</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<br/>
|
||||||
|
|
||||||
<button id="whitelistChannel" class="whitelistButton popupElement">__MSG_whitelistChannel__</button>
|
<button id="whitelistChannel" class="whitelistButton popupElement">__MSG_whitelistChannel__</button>
|
||||||
<button id="unwhitelistChannel" class="whitelistButton popupElement" style="display: none">__MSG_removeFromWhitelist__</button>
|
<button id="unwhitelistChannel" class="whitelistButton popupElement" style="display: none">__MSG_removeFromWhitelist__</button>
|
||||||
</div>
|
</div>
|
||||||
|
@ -55,7 +108,7 @@
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<h2 class="recordingSubtitle popupElement">__MSG_recordTimes__</h2>
|
<h2 class="recordingSubtitle popupElement">__MSG_yourWork__</h2>
|
||||||
|
|
||||||
<p class="popupElement">
|
<p class="popupElement">
|
||||||
<span id=sponsorTimesContributionsContainer class="popupElement" style="display: none">
|
<span id=sponsorTimesContributionsContainer class="popupElement" style="display: none">
|
||||||
|
@ -84,47 +137,7 @@
|
||||||
</div>
|
</div>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p class="popupElement">
|
|
||||||
__MSG_recordTimesDescription__
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<div>
|
|
||||||
<button id="sponsorStart" class="greenButton popupElement">__MSG_sponsorStart__</button>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<sub class="popupElement">__MSG_popupHint__</sub>
|
|
||||||
|
|
||||||
<div id="submissionSection" class="popupElement" style="display: none">
|
|
||||||
<h3 class="popupElement">__MSG_lastTimes__</h3>
|
|
||||||
<b>
|
|
||||||
<div id="sponsorMessageTimes" class="popupElement">
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</b>
|
|
||||||
|
|
||||||
<br/>
|
|
||||||
|
|
||||||
<button id="clearTimes" class="smallButton popupElement">__MSG_clearTimesButton__</button>
|
|
||||||
|
|
||||||
<br/>
|
|
||||||
<br/>
|
|
||||||
|
|
||||||
<div id="submitTimesContainer" class="popupElement" style="display: none">
|
|
||||||
<button id="submitTimes" class="smallButton popupElement">__MSG_submitTimesButton__</button>
|
|
||||||
|
|
||||||
<div id="submitTimesInfoMessageContainer" class="popupElement" style="display: none">
|
|
||||||
<h3 id="submitTimesInfoMessage" class="popupElement">
|
|
||||||
|
|
||||||
</h3>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div id="setUsernameContainer" class="popupElement">
|
<div id="setUsernameContainer" class="popupElement">
|
||||||
<br/>
|
|
||||||
<br/>
|
|
||||||
|
|
||||||
<button id="setUsernameButton" class="warningButton popupElement">__MSG_setUsername__</button>
|
<button id="setUsernameButton" class="warningButton popupElement">__MSG_setUsername__</button>
|
||||||
<br/>
|
<br/>
|
||||||
|
@ -134,35 +147,18 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="setUsername" class="popupElement" style="display: none">
|
<div id="setUsername" class="popupElement" style="display: none">
|
||||||
<br/>
|
|
||||||
|
|
||||||
<h3>__MSG_setUsername__</h3>
|
<h3>__MSG_setUsername__</h3>
|
||||||
|
|
||||||
<div id="setUsernameStatusContainer" style="display: none">
|
<div id="setUsernameStatusContainer" style="display: none">
|
||||||
<h2 id="setUsernameStatus"></h2>
|
<h2 id="setUsernameStatus"></h2>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<input id="usernameInput" hint="Username"></input>
|
<input id="usernameInput" hint="Username"></input>
|
||||||
|
|
||||||
<br/>
|
<br/>
|
||||||
<br/>
|
<br/>
|
||||||
|
|
||||||
<button id="submitUsername" class="warningButton popupElement">Submit Username</button>
|
<button id="submitUsername" class="warningButton popupElement">__MSG_setUsername__</button>
|
||||||
</div>
|
|
||||||
|
|
||||||
<div id="discordButtonContainer" class="popupElement" style="display: none">
|
|
||||||
<br/>
|
|
||||||
|
|
||||||
<a href="https://discord.gg/QnmVMpU" class="popupElement" target="_blank"><img src="https://www.logolynx.com/images/logolynx/1b/1bcc0f0aefe71b2c8ce66ffe8645d365.png" height="32px"/></a>
|
|
||||||
|
|
||||||
<br/>
|
|
||||||
|
|
||||||
__MSG_discordAdvert__
|
|
||||||
|
|
||||||
<br/>
|
|
||||||
|
|
||||||
<span id="hideDiscordButton" class="smallLink popupElement">__MSG_hideThis__</span>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="optionsButtonContainer" class="popupElement">
|
<div id="optionsButtonContainer" class="popupElement">
|
||||||
|
|
8
popup.js
8
popup.js
|
@ -126,15 +126,15 @@ function runThePopup() {
|
||||||
if (hideDiscordLink == undefined || !hideDiscordLink) {
|
if (hideDiscordLink == undefined || !hideDiscordLink) {
|
||||||
chrome.storage.sync.get(["hideDiscordLaunches"], function(result) {
|
chrome.storage.sync.get(["hideDiscordLaunches"], function(result) {
|
||||||
let hideDiscordLaunches = result.hideDiscordLaunches;
|
let hideDiscordLaunches = result.hideDiscordLaunches;
|
||||||
//only if less than 5 launches
|
//only if less than 10 launches
|
||||||
if (hideDiscordLaunches == undefined || hideDiscordLaunches < 10) {
|
if (hideDiscordLaunches == undefined || hideDiscordLaunches < 10) {
|
||||||
SB.discordButtonContainer.style.display = null;
|
SB.discordButtonContainer.style.display = null;
|
||||||
|
|
||||||
if (hideDiscordLaunches == undefined) {
|
if (hideDiscordLaunches == undefined) {
|
||||||
hideDiscordButton = 1;
|
hideDiscordLaunches = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
chrome.storage.sync.set({"hideDiscordLaunches": hideDiscordButton + 1});
|
chrome.storage.sync.set({"hideDiscordLaunches": hideDiscordLaunches + 1});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -1150,7 +1150,7 @@ function runThePopup() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function hideDiscordButton() {
|
function hideDiscordButton() {
|
||||||
chrome.storage.sync.set({"hideDiscordLink": false});
|
chrome.storage.sync.set({"hideDiscordLink": true});
|
||||||
|
|
||||||
SB.discordButtonContainer.style.display = "none";
|
SB.discordButtonContainer.style.display = "none";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue