MCPcopy Create free account
hub / github.com/hoothin/UserScripts / runPageBar

Method runPageBar

Pagetual/pagetual.user.js:5226–5240  ·  view source on GitHub ↗
(pageBar)

Source from the content-addressed store, hash-verified

5224 }
5225
5226 runPageBar(pageBar) {
5227 if (this.curSiteRule.pageBar && this.curSiteRule.pageBar !== 0) {
5228 try {
5229 if (typeof this.curSiteRule.pageBar === 'function') {
5230 this.curSiteRule.pageBar(pageBar);
5231 } else if (/^pageBar\.className=['"][^'"]*['"];?$/.test(this.curSiteRule.pageBar)) {
5232 pageBar.className = this.curSiteRule.pageBar.match(/^pageBar\.className=['"]([^'"]*)['"];?$/)[1];
5233 } else {
5234 Function("pageBar",'"use strict";' + this.curSiteRule.pageBar)(pageBar);
5235 }
5236 } catch(e) {
5237 debug(e);
5238 }
5239 }
5240 }
5241
5242 runWait(cb) {
5243 let checkEval = null, waitTime = 0;

Callers 1

createPageBarFunction · 0.80

Calls 1

debugFunction · 0.85

Tested by

no test coverage detected