WebDAV Browser

Browse WebDAV share directly from a browser

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name WebDAV Browser
// @name:ru WebDAV обозреватель
// @version 0.1
// @description Browse WebDAV share directly from a browser
// @description:ru Позволяет просмотреть WebDAV папку прямо из браузера
// @license 0BSD
// @author Sergey Ponomarev <[email protected]>
// @namespace https://gist.github.com/stokito/a7babfa3c04c92c6c4142581145fe33d
// @supportURL https://gist.github.com/stokito/a7babfa3c04c92c6c4142581145fe33d
// @match http://*/dav/*
// @match https://*/dav/*
// @match http://dav.*/*
// @match https://dav.*/*
// @match http://*/webdav/*
// @match https://*/webdav/*
// @match http://webdav.*/*
// @match https://webdav.*/*
// @match https://svn.code.sf.net/p/*/code/*
// @grant none
// ==/UserScript==

(function() {
    'use strict';
    console.log("Clear existing body if any")
    document.body.innerHTML = ""

    var style = document.createElement("link")
    style.rel = "stylesheet"
    style.href = "https://cdn.jsdelivr.net/gh/dom111/webdav-js/assets/css/style-min.css"
    document.head.appendChild(style)

    var script = document.createElement("script")
    script.src = "https://cdn.jsdelivr.net/gh/dom111/webdav-js/src/webdav-min.js"
    document.head.appendChild(script)
})();