mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-06 03:27:03 +03:00
Compare commits
2 Commits
7a605b8a2c
...
590281f8eb
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
590281f8eb | ||
|
|
df21d085e5 |
@@ -98,6 +98,7 @@ export function CategoryChooserComponent() {
|
||||
id="configurationName"
|
||||
value={configurationName}
|
||||
placeholder={chrome.i18n.getMessage("ConfigurationName")}
|
||||
style={{width: document.getElementById("channelProfiles")?.clientWidth ?? null}}
|
||||
onChange={(e) => {
|
||||
const newName = e.target.value;
|
||||
getConfig(selectedConfigurationID)!.name = newName;
|
||||
|
||||
@@ -2063,9 +2063,11 @@ function updateEditButtonsOnPlayer(): void {
|
||||
function getRealCurrentTime(): number {
|
||||
// Used to check if replay button
|
||||
const playButtonSVGData = document.querySelector(".ytp-play-button")?.querySelector(".ytp-svg-fill")?.getAttribute("d");
|
||||
const playButtonSVGDataNew = document.querySelector(".ytp-play-button")?.querySelector("path")?.getAttribute("d");
|
||||
const replaceSVGData = "M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z";
|
||||
const replaceSVGDataNew = "M11.29 2.92C14.85 1.33 18.87 1.06 22";
|
||||
|
||||
if (playButtonSVGData === replaceSVGData) {
|
||||
if (playButtonSVGData === replaceSVGData || playButtonSVGDataNew.startsWith(replaceSVGDataNew)) {
|
||||
// At the end of the video
|
||||
return getVideoDuration();
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user