Skip to content

Commit

Permalink
Prompt to accept youtube.com permission if video info fails to load
Browse files Browse the repository at this point in the history
Should fix #698, #687, #611 and #635
  • Loading branch information
ajayyy committed Mar 25, 2021
1 parent cc93562 commit 3ff5fdb
Show file tree
Hide file tree
Showing 9 changed files with 483 additions and 21 deletions.
15 changes: 15 additions & 0 deletions public/_locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -594,9 +594,24 @@
"adblockerIssue": {
"message": "It seems that something is blocking SponsorBlock's ability to get video data. This is probably your ad blocker. Please check https://github.com/ajayyy/SponsorBlock/wiki/Fix-Ad-Blocker-Blocking-SponsorBlock's-Requests"
},
"youtubePermissionRequest": {
"message": "It seems that SponsorBlock is unable to reach the YouTube API. To fix this, accept the permission prompt that will appear next, wait a few seconds, and then reload the page."
},
"acceptPermission": {
"message": "Accept permission"
},
"permissionRequestSuccess": {
"message": "Permission success succeeded!"
},
"permissionRequestFailed": {
"message": "Permission request failed, did you click deny?"
},
"adblockerIssueUnlistedVideosInfo": {
"message": "If you are unable to resolve this, then disable the setting 'Ignore unlisted/private videos', as SponsorBlock is unable to retrieve the visibility information for this video"
},
"adblockerIssueWhitelist": {
"message": "If you are unable to resolve this, then disable the setting 'Force Channel Check Before Skipping', as SponsorBlock is unable to retrieve the visibility information for this video"
},
"itCouldBeAdblockerIssue": {
"message": "If this keeps occuring, it could be caused by your ad blocker. Please check https://github.com/ajayyy/SponsorBlock/wiki/Fix-Ad-Blocker-Blocking-SponsorBlock's-Requests"
},
Expand Down
28 changes: 28 additions & 0 deletions public/permissions/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<!DOCTYPE html>

<head>
<title>Permissions - SponsorBlock</title>
<meta charset="utf-8">

<link href="styles.css" rel="stylesheet"/>

<script src="../js/vendor.js"></script>
<script src="../js/permissions.js"></script>
</head>

<body class="sponsorBlockPageBody">

<div id="title" class="titleBar">
<img src="../icons/LogoSponsorBlocker256px.png" height="80" class="profilepic"/>
SponsorBlock
</div>

<br/>

<div class="center">
<div id="acceptPermissionButton" class="option-button inline">
__MSG_acceptPermission__
</div>
</div>

</body>
Loading

0 comments on commit 3ff5fdb

Please sign in to comment.