Greasy Fork

来自缓存

Greasy Fork is available in English.

抖音视频去水印下载

下载没有水印的抖音视频(douyin.com)

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         抖音视频去水印下载
// @namespace    https://github.com/hzlzh
// @version      1.0.0
// @description  下载没有水印的抖音视频(douyin.com)
// @author       hzlzh
// @include      https://www.douyin.com/video/*
// @grant GM_download
// ==/UserScript==

const videoID = location.href.match(/video\/(\d*)/)[1];
fetch("https://www.douyin.com/web/api/v2/aweme/iteminfo/?item_ids=" + videoID)
  .then((res) => res.json())
  .then((json) => {
    const videoLink = json.item_list[0].video.play_addr.url_list[0].replace("playwm", "play");
    const btn = document.createElement("a");
    btn.textContent = '去水印下载';
    btn.href = videoLink;
    btn.target = '_blank'
    btn.style.position = 'fixed'
    btn.style.zIndex = '9999'
    btn.style.left = '8px'
    btn.style.top = '80px'
    btn.style.opacity = '0.8'
    btn.style.padding = '4px 8px'
    btn.style.color = '#ffffff'
    btn.style.background = '#fe2c55'
    document.body.appendChild(btn);
  });