MCPcopy Create free account
hub / github.com/KDE/falkon / loadScripts

Method loadScripts

src/plugins/GreaseMonkey/gm_manager.cpp:138–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136}
137
138void GM_Manager::loadScripts()
139{
140 QWebEngineScriptCollection *collection = mApp->webProfile()->scripts();
141
142 for (const auto &gmScript : std::as_const(m_scripts)) {
143 if (!gmScript->isEnabled()) {
144 return;
145 }
146
147 if (gmScript->startAt() != GM_Script::ContextMenu) {
148 collection->insert(gmScript->webScript());
149 }
150 }
151}
152
153void GM_Manager::unloadScripts()
154{

Callers

nothing calls this directly

Calls 5

webProfileMethod · 0.80
startAtMethod · 0.80
insertMethod · 0.80
webScriptMethod · 0.80
isEnabledMethod · 0.45

Tested by

no test coverage detected