mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-31 21:59:49 +03:00
Added text to the report button.
This commit is contained in:
@@ -48,6 +48,12 @@
|
|||||||
"noticeClosingMessage": {
|
"noticeClosingMessage": {
|
||||||
"message": "closes in 7s"
|
"message": "closes in 7s"
|
||||||
},
|
},
|
||||||
|
"reportButtonTitle": {
|
||||||
|
"message": "Report"
|
||||||
|
},
|
||||||
|
"reportButtonInfo": {
|
||||||
|
"message": "Report this sponsor submission as incorrect."
|
||||||
|
},
|
||||||
"Dismiss": {
|
"Dismiss": {
|
||||||
"message": "Dismiss"
|
"message": "Dismiss"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -178,7 +178,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.voteButton {
|
.voteButton {
|
||||||
height: 18px;
|
height: 17px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
.voteButton:hover {
|
.voteButton:hover {
|
||||||
|
|||||||
11
content.js
11
content.js
@@ -929,13 +929,22 @@ function openSkipNotice(UUID){
|
|||||||
let voteButtonsContainer = document.createElement("td");
|
let voteButtonsContainer = document.createElement("td");
|
||||||
voteButtonsContainer.id = "sponsorTimesVoteButtonsContainer" + UUID;
|
voteButtonsContainer.id = "sponsorTimesVoteButtonsContainer" + UUID;
|
||||||
|
|
||||||
|
let reportText = document.createElement("span");
|
||||||
|
reportText.id = "sponsorTimesReportText" + UUID;
|
||||||
|
reportText.className = "sponsorTimesInfoMessage sponsorTimesVoteButtonMessage";
|
||||||
|
reportText.innerText = chrome.i18n.getMessage("reportButtonTitle");
|
||||||
|
reportText.style.marginRight = "5px";
|
||||||
|
reportText.setAttribute("title", chrome.i18n.getMessage("reportButtonInfo"));
|
||||||
|
|
||||||
let downvoteButton = document.createElement("img");
|
let downvoteButton = document.createElement("img");
|
||||||
downvoteButton.id = "sponsorTimesDownvoteButtonsContainer" + UUID;
|
downvoteButton.id = "sponsorTimesDownvoteButtonsContainer" + UUID;
|
||||||
downvoteButton.className = "sponsorSkipObject voteButton";
|
downvoteButton.className = "sponsorSkipObject voteButton";
|
||||||
downvoteButton.src = chrome.extension.getURL("icons/report.png");
|
downvoteButton.src = chrome.extension.getURL("icons/report.png");
|
||||||
downvoteButton.addEventListener("click", () => vote(0, UUID));
|
downvoteButton.addEventListener("click", () => vote(0, UUID));
|
||||||
|
downvoteButton.setAttribute("title", chrome.i18n.getMessage("reportButtonInfo"));
|
||||||
|
|
||||||
//add thumbs up and down buttons to the container
|
//add downvote and report text to container
|
||||||
|
voteButtonsContainer.appendChild(reportText);
|
||||||
voteButtonsContainer.appendChild(downvoteButton);
|
voteButtonsContainer.appendChild(downvoteButton);
|
||||||
|
|
||||||
//add unskip button
|
//add unskip button
|
||||||
|
|||||||
Reference in New Issue
Block a user