- Open Chrome Developer tools and click the Network tab.
- Navigate to the page with the video and get it to start playing.
- Filter the list of files to "m3u8".
- Find master.m3u8 or index.m3u8 and click on it.
- Save the file to disk and look inside it.
- If the file contains a single m3u8 master url, copy that one instead.
- Run the program m3u8x.
- 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Image Proxier YD | |
// @namespace https://github.com/YD/Userscripts | |
// @version 1.2 | |
// @description Replaces images from stack.imgur.com and collates them | |
// @author GrumpyCrouton, YILMAZ DURMAZ | |
// @match *://*.stackoverflow.com/* | |
// @match *://*.stackexchange.com/* | |
// @match *://*.superuser.com/* | |
// @grant GM.xmlHttpRequest |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function (name,url) { | |
if (typeof window[name] === 'undefined') { | |
var s = document.createElement('script'); | |
s.setAttribute('src', url); | |
document.body.appendChild(s); | |
} | |
}("jQuery","https://code.jquery.com/jquery-3.4.1.min.js")); | |
//not possible if CORS(!) or CSP |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Gena { | |
constructor(config) { | |
this.currentGeneration = 0 | |
this.populations = [] | |
this.fitnesses = [] | |
this.mutateProbability = config.mutateProbability || 0.5 // 0 ~ 1 | |
this.generationsSize = config.generationsSize || 100 | |
this.populationSize = config.populationSize || 100 | |
this.doneFitness = config.doneFitness || 1 // 0 ~ 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name _Remove annoying youtube divs | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description these two divs are obfuscating/redacting the videos when in high constrast mode selected, at least for windows 10 | |
// @author yilmazdurmaz | |
// @include | |
// @require https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js | |
// @match http*://*/* | |
// @icon |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// open history page of the browser | |
// open dev tools and get to console | |
// set sleep function and the use for loop | |
// change "getelements..." queries if needed | |
// note that it is not intended to clear thing other than history | |
// sleep function from https://stackoverflow.com/a/951057/9512475 | |
// sleep time expects milliseconds | |
function sleep (time) { | |
return new Promise((resolve) => setTimeout(resolve, time)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import http.server | |
import socketserver | |
PORT = 8000 | |
Handler = http.server.SimpleHTTPRequestHandler | |
Handler.extensions_map.update({ | |
'.wasm': 'application/wasm', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let a=[10,20,30,40] | |
let getit=async(ax,ix,arr)=>{ | |
//console.log(ax,ix,arr) | |
let time=Math.random()*3000; | |
let ret=Math.random()>0.3; | |
console.log(ix,arr[ix],time,ret); | |
return new Promise((res,rej)=>{ | |
setTimeout(()=>{ | |
if (ret) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:: postgresql is extracted into "d:\pgsql\" and data is init at "d:\pgsql\pgdata" | |
:: d:\pgsql\bin\initdb -D d:\pgsql\pgdata -U postgres -W -E UTF8 -A scram-sha-256 | |
:: find postres instances running on our data folder | |
wmic.exe path Win32_Process where name="postgres.exe" get Commandline /format:list | find "d:/pgsql/pgdata" > null | |
:: stop is already running, and start if not | |
if errorlevel 1 (d:\pgsql\bin\pg_ctl -D d:\pgsql\pgdata -l logfile start) else (d:\pgsql\bin\pg_ctl -D d:\pgsql\pgdata -l logfile stop) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let fields= [ "id", "name" ] | |
let data=[ | |
[ 1, 'ali' ], | |
[ 2, 'veli' ], | |
[ 3, 'deli' ] | |
] | |
let res=[] |
OlderNewer