Coursera layout optimization

Move the transcript under the video to the right of the video.

当前为 2023-02-17 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

/* ==UserStyle==
@name         Coursera layout optimization
@version      20230217.13.34
@namespace    userstyles.world/user/happiness
@description  Move the transcript under the video to the right of the video.
@author       happiness
@license      No License
==/UserStyle== */

@-moz-document domain("www.coursera.org") {
/* content: video title + notes + video + transcript */
.ItemPageLayout_content_body {
	padding: unset;
}
#main {
	padding-bottom: 0;
}


.ItemLecture_Video_Title,
.ItemLecture_Video_Notes_Navigation {
    flex-basis: 100%;
	margin-top: 0;
}
/* video */
#main > div:first-child > div > div:nth-child(3) {
    flex-basis: 60%;
}
/* transcript */
#main > div:first-child > div > div:nth-child(4) {
    flex-basis: 39%;
}
/* feedback */
.rc-ItemFeedback, .rc-ShareButtonWithModal {
	margin-top: 0 !important;
}


/* transcript */
div[data-testid="ItemLecture_Video_Transcript"] {
	margin-left: auto;
	overflow-y: scroll;
	padding: unset;
	/*
	global header: 65.8px;
	page header: 40+8+16px;
	video title: 48px;
	line under video title: 48px;
	feedback: 36px;
	*/
	--offset: calc(65.8px + 40px + 8px + 16px + 48px + 48px + 36px);
	max-height: calc(100vh - var(--offset));
}
.css-xl5mb3 .timestamp {
	margin-left: unset;
	padding: unset;
}
.rc-Phrase>span {
	font-size: 0.9rem;
}
.rc-Paragraph {
	padding: 0 0 0;
}

/* Hide pause button logo at the begining of the video */
.rc-PlayButton button {
	opacity: 0;
}

/* "Save note" button after clicking on the transcript */
.rc-TranscriptHighlightButton {
	left: 200px;
}
}