l-lib2-js

adds aliases to ljs

此腳本不應該直接安裝,它是一個供其他腳本使用的函式庫。欲使用本函式庫,請在腳本 metadata 寫上: // @require https://update.greasyfork.org/scripts/485402/1315375/l-lib2-js.js

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

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

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

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

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

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

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

Advertisement:

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

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

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

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

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

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

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

Advertisement:

// Commonly used library CDN address
ljs.addAliases({
    jQuery:'https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.4/jquery.min.js',
    copy:'https://cdn.jsdelivr.net/gh/zenorocha/clipboard.js@master/dist/clipboard.min.js',
    juicer:'https://cdnjs.cloudflare.com/ajax/libs/juicer/0.6.14/juicer-min.js',
    timeago:'https://cdnjs.cloudflare.com/ajax/libs/timeago.js/2.0.3/timeago.min.js',
    iframe:'https://cdn.jsdelivr.net/gh/jae-jae/iframe-sandbox@main/iframe-sandbox.js',
    vue:'https://cdnjs.cloudflare.com/ajax/libs/vue/2.4.2/vue.js',
    psl:'https://cdn.jsdelivr.net/gh/wrangr/psl@master/dist/psl.min.js',
    hotkeys:[
        'jQuery',
        'https://cdn.jsdelivr.net/gh/jeresig/jquery.hotkeys@master/jquery.hotkeys.js'
    ],
    layer:[
        'jQuery',
        'https://cdnjs.cloudflare.com/ajax/libs/layer/2.3/layer.js',
        'https://cdnjs.cloudflare.com/ajax/libs/layer/2.3/skin/layer.css'
    ],
    iview:[
        'vue',
        'https://cdnjs.cloudflare.com/ajax/libs/iview/2.2.0/iview.js',
        'https://cdnjs.cloudflare.com/ajax/libs/iview/2.2.0/styles/iview.css'
    ]
});