This file contains 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 sub_seek_two(dir) | |
if dir == 1 then | |
target = mp.get_property_number("sub-end") | |
if target then | |
mp.commandv("seek", target-0.03, "absolute+exact") | |
end | |
else | |
target = mp.get_property_number("sub-start") | |
if target then | |
mp.commandv("seek", target+0.01, "absolute+exact") |
This file contains 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 sub_seek_two(dir) | |
if dir == 1 then | |
target = mp.get_property_number("sub-end") | |
if target then | |
mp.commandv("seek", target-0.03, "absolute+exact") | |
end | |
else | |
target = mp.get_property_number("sub-start") | |
if target then | |
mp.commandv("seek", target+0.01, "absolute+exact") |
This file contains 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
-- This script automatically loads playlist entries before and after the | |
-- the currently played file. It does so by scanning the directory a file is | |
-- located in when starting playback. It sorts the directory entries | |
-- alphabetically, and adds entries before and after the current file to | |
-- the internal playlist. (It stops if it would add an already existing | |
-- playlist entry at the same position - this makes it "stable".) | |
-- Add at most 5000 * 2 files when starting a file (before + after). | |
--[[ | |
To configure this script use file autoload.conf in directory script-opts (the "script-opts" |
This file contains 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
import vapoursynth as vs | |
import math | |
core = vs.get_core() | |
def nice_round(x, base=2): | |
return base * round(x / base) | |
def resizeroo(clip, max_width, max_height, func): | |
ratio = min(max_width / clip.width, max_height / clip.height) | |
clip = func(clip, nice_round(clip.width * ratio), nice_round(clip.height * ratio)) |
This file contains 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 Eva's universal torrent gallery | |
// @namespace https://github.com/po5 | |
// @version 0.1.303 | |
// @description Gallery view for trackers | |
// @author Eva | |
// @homepage https://gist.github.com/po5 | |
// @icon https://ptpimg.me/9rmox4.png | |
// @updateURL https://gist.github.com/po5/c27eeed4412c64d7befb37feb868511e/raw/universal-torrent-gallery.user.js | |
// @downloadURL https://gist.github.com/po5/c27eeed4412c64d7befb37feb868511e/raw/universal-torrent-gallery.user.js |
This file contains 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 Collage direct links | |
// @namespace https://github.com/ewasion | |
// @version 0.1.10 | |
// @description Lets you directly access torrent groups in collages | |
// @author Eva | |
// @homepage https://animebytes.tv/forums.php?action=viewthread&threadid=24213 | |
// @icon https://ptpimg.me/868r51.png | |
// @updateURL https://gist.github.com/po5/1d5ca39ea14aa9de904f80c5fcf5684d/raw/collage-direct-links.user.js | |
// @downloadURL https://gist.github.com/po5/1d5ca39ea14aa9de904f80c5fcf5684d/raw/collage-direct-links.user.js |
This file contains 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 AB search autocomplete | |
// @namespace https://github.com/po5 | |
// @version 0.2.0 | |
// @description :cool: | |
// @author Eva | |
// @homepage https://animebytes.tv/forums.php?action=viewthread&threadid=24689 | |
// @icon https://animebytes.tv/favicon.ico | |
// @updateURL https://gist.github.com/po5/a56f53567eca72f2f32f2545e0236d39/raw/ab-search-autocomplete.user.js | |
// @downloadURL https://gist.github.com/po5/a56f53567eca72f2f32f2545e0236d39/raw/ab-search-autocomplete.user.js |