URL Encoder

URL encode and decode for non-utf8 encodings

目前為 2023-07-20 提交的版本,檢視 最新版本

此腳本不應該直接安裝,它是一個供其他腳本使用的函式庫。欲使用本函式庫,請在腳本 metadata 寫上: // @require https://update.gf.qytechs.cn/scripts/471280/1222828/URL%20Encoder.js

作者
PYUDNG
版本
0.1.1
建立日期
2023-07-20
更新日期
2023-07-20
尺寸
6.0 KB
授權條款
MIT

@require this script and you'll get $URL.encode(str) and $URL.decode(str) available.

$URL.encode(str) returns encodeURIComponent(str) but in encoding=document.characterSet

$URL.decode(str) returns decodeURIComponent(str) but in encoding=document.characterSet


for now, only big5 and gbk are supported for $URL.encode(str). $URL.decode(str) supports all encodings that your browser supports.

License: MIT Modified from: https://github.com/EtherDream/str2gbk/

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址