Skip to content

Instantly share code, notes, and snippets.

@lbmaian
lbmaian / youtube-redirect-shorts.user.js
Last active October 26, 2024 20:46
YouTube - Redirect /shorts/ and /live/
// ==UserScript==
// @name YouTube - Redirect /shorts/ and /live/
// @namespace https://gist.github.com/lbmaian/c53f48e04a3303d059c042f779a82604
// @downloadURL https://gist.github.com/lbmaian/c53f48e04a3303d059c042f779a82604/raw/youtube-redirect-shorts.user.js
// @updateURL https://gist.github.com/lbmaian/c53f48e04a3303d059c042f779a82604/raw/youtube-redirect-shorts.user.js
// @version 0.4
// @description Redirects YouTube "/shorts/" and "/live/" URLs to "/watch?v=" URLs
// @author lbmaian
// @match https://*.youtube.com/*
// @grant window.onurlchange
@OkoyaUsman
OkoyaUsman / Office_kms
Created July 4, 2019 05:36 — forked from CHEF-KOCH/KMS_office.cmd
KMS server Windows
cd\Program Files\Microsoft Office\Office16
cd\Program Files (x86)\Microsoft Office\Office16
cscript OSPP.VBS /sethst:kms.digiboy.ir
cscript OSPP.VBS /actcscript OSPP.VBS /dstatus
slmgr.vbs /ckms
@primaryobjects
primaryobjects / m3u8.md
Last active April 24, 2025 16:19
How to download m3u8 and ts video movie streams.

m3u8 Downloading

  1. Open Chrome Developer tools and click the Network tab.
  2. Navigate to the page with the video and get it to start playing.
  3. Filter the list of files to "m3u8".
  4. Find master.m3u8 or index.m3u8 and click on it.
  5. Save the file to disk and look inside it.
  6. If the file contains a single m3u8 master url, copy that one instead.
  7. Run the program m3u8x.
  8. Paste the same m3u8 url in both textboxes (URL and Quality URL) and click "Headers" and set the referral url and user-agent from the request as found in Chrome.