Skip to content

Instantly share code, notes, and snippets.

View mkato77's full-sized avatar

Minori Kato mkato77

  • Japan
  • 19:28 (UTC +09:00)
View GitHub Profile
@haxibami
haxibami / gdrive-dl.md
Created April 18, 2022 10:53
GoogleDriveで閲覧できる任意の動画をダウンロードする

Google Drive で閲覧できる任意の動画をダウンロードする

概要

youtube-dl のフォークであるyt-dlpには、ブラウザの Cookie を抽出してアクセスに使用する機能(--cookies-from-browser)が付加されている。これを使うと、Google Drive で自らのアカウントが閲覧できる任意の動画を(設定の如何にかかわらず)ダウンロードできる。この意味するところは各自考えられたし。1

必要なもの

Footnotes

  1. というかこんなものを使わなくても、手の込んだ JS やら DRM やらがない時点で <video> 要素から引っ張り放題ではある。

@tsukumijima
tsukumijima / TwitterRevertColoring.user.css
Last active May 7, 2024 12:08
Twitter の UI の配色を元に戻すユーザースタイル
/* ==UserStyle==
@name TwitterRevertColoring
@description Twitter の UI の配色を元に戻すユーザースタイル
@namespace https://gist.github.com/tsukumijima
@updateURL https://gist.github.com/tsukumijima/931905c4ed3f181ce926730463a29d80/raw/TwitterRevertColoring.user.css
@author tsukumi
@version 1.3.9
@license MIT
==/UserStyle== */
@atenni
atenni / README.md
Last active September 14, 2024 02:04
How to permalink to a gist's raw file

Problem: When linking to the raw version of a gist, the link changes with each revision.

Solution:

To return the first file from a gist: https://gist.github.com/[gist_user]/[gist_id]/raw/

To get a file from multi–file gist: https://gist.github.com/[gist_user]/[gist_id]/raw/[file_name]