您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
It's often hard to select data from combobox where it has huge data. This script will make easy to use comboxbox(select tag)
// ==UserScript== // @name Convert HTML select to Select2 // @namespace HTML Combobox to Select2 // @description It's often hard to select data from combobox where it has huge data. This script will make easy to use comboxbox(select tag) // @include * // @version 1 // @grant none // @require https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js // @require https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.3/js/select2.full.js // ==/UserScript== $(function() { $("body").append('<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.3/css/select2.css" integrity="sha256-xqxV4FDj5tslOz6MV13pdnXgf63lJwViadn//ciKmIs=" crossorigin="anonymous" />'); setTimeout(function() { $("select").each(function() { $(this).select2(); }); },1000); });