- 可以选择一个或多个文件
- Actions->Upload to Imgur,上传成功之后自动在浏览器中打开direct link
- Actions->Upload to Imgur - Detail Page,上传成功之后自动在浏览器中打开带post options的link
- Actions->Upload to Imgur - Album,上传成功之后自动在浏览器中打开album
- InitialPreference决定这三个菜单的出现顺序
- 如果选择了多个文件,前两个菜单是每个图片上传成功后,逐个打开图片链接
- 使用的clientid 3e7a4deb7ac67da来自大神Ceryn,官方链接,觉得不适的话可以自己注册个帐号用自己的
- 全部都是以"匿名"方式上传(当然用的还是别人的clientid,不要上传不和谐的东西喔,会分分钟被请喝茶的),如果想管理上传的图片,需要略微修改一下,加上你的账户信息
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
--sets the startime of a youtube video as specified in the "t=HHhMMmSSs" part of the url | |
local msg = require 'mp.msg' | |
function youtube_starttime() | |
url = mp.get_property("path", "") | |
start = 0 | |
if string.find(url, "youtu%.?be") and | |
((url:find("http://") == 1) or (url:find("https://") == 1)) then |