MCPcopy Create free account
hub / github.com/XIU2/UserScript / isTitle

Function isTitle

Autopage.user.js:2540–2542  ·  view source on GitHub ↗
(title)

Source from the content-addressed store, hash-verified

2538 }
2539 // 判断网站标题是否包含指定文字
2540 function isTitle(title) {
2541 return document.title.indexOf(title) > -1;
2542 }
2543 // 判断规则中的 nextL、pageE、insertP、replaceE 元素是否存在于当前网页
2544 function isPager(type) {
2545 if (!type) { // 如果没有指定要判断的元素类型参数,那么需要设置默认值

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected