Skip to content

lark-whiteboard-cli

No description provided.

2,992
installs
0 up / 0 down, score 0.00
votes
In the catalog since
1 Oct 2026
From
open.feishu.cn
Get it through your agent

Skill instructions

Rendered from the published SKILL.md, 198 lines.

The page does not exist.
Go to homepage
Show the whole skill (78 more lines)
}

function setLocaleCookie(lang) {
  var date = new Date();
  // 300天到期
  date.setTime(date.getTime() + (300 * 24 * 60 * 60 * 1000));
  var expires = 'expires=' + date.toUTCString();
  document.cookie = 'open_locale=' + lang + '; ' + expires + '; path=/;';
}

// 获取浏览器默认语言
if (navigator.language.indexOf('en') !== -1) {
  lang = enLang;
} else if (navigator.language.indexOf('zh') !== -1) {
  lang = zhLang;
}
if (cookieLang === enLang) {
  lang = enLang;
} else if (cookieLang === zhLang) {
  lang = zhLang;
}
if (queryLang === enLang) {
  lang = enLang;
} else if (queryLang === zhLang) {
  lang = zhLang;
}
// 设置cookie
setLocaleCookie(lang);
return lang;

}

// 根据域名获取当前brand function isLarkDomain() { var defaultBrandMap = { lark: ['larksuite'], feishu: ['feishu', 'larkoffice', 'larkenterprise'], }; const { hostname } = window.location;

if (defaultBrandMap.feishu.some((item) => hostname.includes(item))) {
  return false;
}

if (defaultBrandMap.lark.some((item) => hostname.includes(item))) {
  return true;
}

if (window.domainBrand) {
  return window.domainBrand === 'lark';
}

return false;

}

var isLarkBrand = isLarkDomain();

var config = { 'zh-CN': { 'desc': '抱歉,您访问的页面不存在', 'back': '返回首页', 'title': (isLarkBrand ? 'Lark' : '飞书') + '开放平台', }, 'en-US': { 'desc': 'The page does not exist.', 'back': 'Go to homepage', 'title': (isLarkBrand ? 'Lark': 'Feishu') + ' Open Platform', }, }; var locale = getLocale(); var descObj = document.querySelector('.open-platform-desc'); var backObj = document.querySelector('.open-platform-back'); descObj.innerHTML = config[locale].desc; backObj.innerHTML = config[locale].back; document.title = config[locale].title;