GBK_URL.js

js纯代码实现gbk格式的url编码

2021-07-22 या दिनांकाला. सर्वात नवीन आवृत्ती पाहा.

This script should not be not be installed directly. It is a library for other scripts to include with the meta directive // @require https://update.greasyforks.org/scripts/427726/953093/GBK_URLjs.js

लेखक
PYUDNG and wenku8-plus
आवृत्ती
0.0.1.20210722103948
बनवली
2021-06-09
अपडेट केली
2021-07-22
आकार
23.8 KB
License
नाही

urlEncodeGBK.js

js纯代码实现gbk格式的url编码

调用方法:

$URL.encode('待编码文本')$URL.decode('%XX%XX')
同时encodeURIencodeURIComponent未改动,仍可使用

效果:

$URL.encode('中文') >> "%D6%D0%CE%C4"
$URL.decode('%D6%D0%CE%C4') >> "中文"

来源:http://www.vuln.cn/2901

长期地址
遇到问题?请前往 GitHub 提 Issues。