您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Shared methods for generating mock data
当前为
此脚本不应直接安装。它是供其他脚本使用的外部库,要使用该库请加入元指令 // @require https://update.gf.qytechs.cn/scripts/401830/1071873/mockLibrary.js
- var mock = {
- user: function() {
- var firstName = ["Roosevelt", "Kacy", "Wilbert", "Kory", "Freddy", "Addie", "Cherie", "Troy", "Iluminada", "Scot", "Tona", "Orval", "Shondra", "Monica", "Shauna", "Kimbery", "Waylon", "Pura", "Brian", "Emilee"];
- var lastName= ["Lomanto", "Deckert", "Arrowood", "Juhasz", "Kennan", "Pizzo", "Canales", "Choe", "Pavlick", "Weatherford", "Pentz", "Hughey", "Kieser", "Stabile", "Griffy", "Lechuga", "Langlais", "Mcguigan", "Niday", "Bridgeforth"];
- var randomFirst = Math.floor(Math.random() * firstName.length);
- var randomLast = Math.floor(Math.random() * lastName.length);
- var randomPhone = Math.floor(Math.random() * 10000000);
- var randomDate = Math.floor(Math.random() * 10);
- return {
- id: mock.uuid(),
- first: firstName[randomFirst],
- last: lastName[randomLast],
- full: firstName[randomFirst] + " " + lastName[randomLast],
- email: firstName[randomFirst] + "." + lastName[randomLast] + "@gmail.com",
- phone: randomPhone,
- date: (randomDate+1) + "/15/201" + randomDate
- };
- },
- uuid: () => {
- const windowObj = window;
- const winCrypto = windowObj.crypto || windowObj.msCrypto;
- let index = winCrypto.getRandomValues(new Uint32Array(1))[0];
- index = +`${index}`.substr(0, 1);
- const uuid = winCrypto.getRandomValues(new Uint32Array(10))[index];
- return uuid;
- },
- tableRow: function(howMany) {
- if (howMany == null) howMany = 1;
- var dataArray = [];
- for (var intI = 0; intI < howMany; intI++) {
- var user = mock.user();
- dataArray.push({
- data: [
- user.id,
- user.full,
- "Eget Incorporated",
- "9557",
- user.date,
- user.email,
- user.phone,
- "<a href='//www.dell.com'>Dell Home Page</a>"
- ],
- details: user.full + " details"
- });
- }
- return dataArray;
- }
- };
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址