您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Javascript implementation of Java’s String.hashCode() method
此脚本不应直接安装。它是供其他脚本使用的外部库,要使用该库请加入元指令 // @require https://update.gf.qytechs.cn/scripts/466055/1189121/Hash%20Code.js
- // ==UserScript==
- // @namespace i2p.schimon.hashcode
- // @exclude *
- // ==UserLibrary==
- // @name Hash Code
- // @description Javascript implementation of Java’s String.hashCode() method
- // @author wes (Manwe Security Consulting)
- // @copyright 2010, wes
- // @homepageURL https://werxltd.com/wp/2010/05/13/javascript-implementation-of-javas-string-hashcode-method/
- // @license MIT
- // @version 1.0.0
- // ==/UserScript==
- // ==/UserLibrary==
- // ==OpenUserJS==
- // @author sjehuda
- // ==/OpenUserJS==
- String.prototype.hashCode = function(){
- let hash = 0;
- if (this.length == 0) return hash;
- for (let i = 0; i < this.length; i++) {
- let char = this.charCodeAt(i);
- hash = ((hash<<5)-hash)+char;
- hash = hash & hash; // Convert to 32bit integer
- }
- return hash;
- };
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址