dirsearch.js

dirsearch js版

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         dirsearch.js
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  dirsearch js版
// @author       wuuconix
// @match        *
// @icon         https://www.google.com/s2/favicons?sz=64&domain=wuuconix.link
// @grant        none
// @include      *
// ==/UserScript==

const dict = `/swagger-resources
/v2/api-docs
/api/v1
/%3f/
/readme.txt
/readme.md
/robots.txt
/swagger.yaml
/swagger.json
/uploadify/index.php
/sonar
/monitoring
/gateway
/test
/.vscode/sftp.json
/.idea/workspace.xml
/.idea/compiler.xml
/.idea/vcs.xml
/.idea/modules.xml
/.idea/inspectionProfiles/Project_Default.xml
/error.log
/config.json
/wp-json
/wp-json/wp/v2/users
/api-docs
/arthubdam.zip
/setup.php
/content
/v3/api-docs
/v2/api-docs
/v1/api-docs
/.svn/wc.db
/actuator
/api/index.html`.split("\n")

window.search = () => {
    dict.forEach(pathname => {
        const url = `${location.origin}${pathname}`
        fetch(url).then(res => {
            res.ok && console.log(url)
        }).catch(() => {})
    })
}