MCPcopy Index your code
hub / github.com/hoothin/UserScripts / changeStop

Function changeStop

Pagetual/pagetual.user.js:11490–11502  ·  view source on GitHub ↗
(stop, save)

Source from the content-addressed store, hash-verified

11488 tipsWords.className = "pagetual_tipsWords";
11489
11490 function changeStop(stop, save) {
11491 isPause = stop;
11492 [].forEach.call(getBody(document).querySelectorAll(".pagetual_pageBar,#pagetual-sideController"), bar => {
11493 if (isPause) {
11494 bar.classList.add("stop");
11495 } else {
11496 bar.classList.remove("stop");
11497 }
11498 });
11499 if (!isPause) ruleParser.showAddedElements();
11500 manualPause = isPause;
11501 if (save && sideController.inited) setListData("pauseState", location.host, isPause ? true : "");
11502 }
11503
11504 function changeHideBar(hide) {
11505 isHideBar = hide;

Callers 7

initMethod · 0.85
initRulesFunction · 0.85
requestDocFunction · 0.85
initPageFunction · 0.85
initListenerFunction · 0.85
createPageBarFunction · 0.85
checkIframeFunction · 0.85

Calls 4

setListDataFunction · 0.85
removeMethod · 0.80
showAddedElementsMethod · 0.80
getBodyFunction · 0.70

Tested by

no test coverage detected