MCPcopy Index your code
hub / github.com/zxlie/FeHelper / _setExcludeSiteButtonState

Function _setExcludeSiteButtonState

apps/json-format/content-script.js:269–275  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

267 };
268
269 let _setExcludeSiteButtonState = excluded => {
270 $('#fhJsonExcludeSite')
271 .text(excluded ? '恢复JSON美化' : '排除此站')
272 .attr('title', excluded ? '从排除名单移除此站,刷新后重新启用 JSON 自动格式化' : '将此站加入排除名单,刷新后不再自动格式化')
273 .toggleClass('is-excluded', excluded)
274 .prop('disabled', false);
275 };
276
277 let _syncExcludeSiteButtonState = () => {
278 _setExcludeSiteButtonState(_isCurrentOriginExcluded());

Callers 3

Calls 1

$Function · 0.50

Tested by

no test coverage detected