src/eric7/Documentation/Source/eric7.WebBrowser.GreaseMonkey.GreaseMonkeyManager.html

branch
eric7
changeset 10436
f6881d10e995
parent 9503
ae9232bf4854
child 10479
856476537696
equal deleted inserted replaced
10435:c712d09cc839 10436:f6881d10e995
148 <p> 148 <p>
149 Constructor 149 Constructor
150 </p> 150 </p>
151 <dl> 151 <dl>
152 152
153 <dt><i>parent</i></dt> 153 <dt><i>parent</i> (QObject)</dt>
154 <dd> 154 <dd>
155 reference to the parent object (QObject) 155 reference to the parent object
156 </dd> 156 </dd>
157 </dl> 157 </dl>
158 <a NAME="GreaseMonkeyManager.__downloaderFinished" ID="GreaseMonkeyManager.__downloaderFinished"></a> 158 <a NAME="GreaseMonkeyManager.__downloaderFinished" ID="GreaseMonkeyManager.__downloaderFinished"></a>
159 <h4>GreaseMonkeyManager.__downloaderFinished</h4> 159 <h4>GreaseMonkeyManager.__downloaderFinished</h4>
160 <b>__downloaderFinished</b>(<i>fileName, downloader</i>) 160 <b>__downloaderFinished</b>(<i>fileName, downloader</i>)
201 <p> 201 <p>
202 Public method to add a script. 202 Public method to add a script.
203 </p> 203 </p>
204 <dl> 204 <dl>
205 205
206 <dt><i>script</i></dt> 206 <dt><i>script</i> (GreaseMonkeyScript)</dt>
207 <dd> 207 <dd>
208 script to be added (GreaseMonkeyScript) 208 script to be added
209 </dd> 209 </dd>
210 </dl> 210 </dl>
211 <dl> 211 <dl>
212 <dt>Return:</dt> 212 <dt>Return:</dt>
213 <dd> 213 <dd>
214 flag indicating success (boolean) 214 flag indicating success
215 </dd>
216 </dl>
217 <dl>
218 <dt>Return Type:</dt>
219 <dd>
220 bool
215 </dd> 221 </dd>
216 </dl> 222 </dl>
217 <a NAME="GreaseMonkeyManager.allScripts" ID="GreaseMonkeyManager.allScripts"></a> 223 <a NAME="GreaseMonkeyManager.allScripts" ID="GreaseMonkeyManager.allScripts"></a>
218 <h4>GreaseMonkeyManager.allScripts</h4> 224 <h4>GreaseMonkeyManager.allScripts</h4>
219 <b>allScripts</b>(<i></i>) 225 <b>allScripts</b>(<i></i>)
222 Public method to get a list of all scripts. 228 Public method to get a list of all scripts.
223 </p> 229 </p>
224 <dl> 230 <dl>
225 <dt>Return:</dt> 231 <dt>Return:</dt>
226 <dd> 232 <dd>
227 list of all scripts (list of GreaseMonkeyScript) 233 list of all scripts (list o
234 </dd>
235 </dl>
236 <dl>
237 <dt>Return Type:</dt>
238 <dd>
239 GreaseMonkeyScript
228 </dd> 240 </dd>
229 </dl> 241 </dl>
230 <a NAME="GreaseMonkeyManager.canRunOnScheme" ID="GreaseMonkeyManager.canRunOnScheme"></a> 242 <a NAME="GreaseMonkeyManager.canRunOnScheme" ID="GreaseMonkeyManager.canRunOnScheme"></a>
231 <h4>GreaseMonkeyManager.canRunOnScheme</h4> 243 <h4>GreaseMonkeyManager.canRunOnScheme</h4>
232 <b>canRunOnScheme</b>(<i>scheme</i>) 244 <b>canRunOnScheme</b>(<i>scheme</i>)
234 <p> 246 <p>
235 Public method to check, if scripts can be run on a scheme. 247 Public method to check, if scripts can be run on a scheme.
236 </p> 248 </p>
237 <dl> 249 <dl>
238 250
239 <dt><i>scheme</i></dt> 251 <dt><i>scheme</i> (str)</dt>
240 <dd> 252 <dd>
241 scheme to check (string) 253 scheme to check
242 </dd> 254 </dd>
243 </dl> 255 </dl>
244 <dl> 256 <dl>
245 <dt>Return:</dt> 257 <dt>Return:</dt>
246 <dd> 258 <dd>
247 flag indicating, that scripts can be run (boolean) 259 flag indicating, that scripts can be run
260 </dd>
261 </dl>
262 <dl>
263 <dt>Return Type:</dt>
264 <dd>
265 bool
248 </dd> 266 </dd>
249 </dl> 267 </dl>
250 <a NAME="GreaseMonkeyManager.containsScript" ID="GreaseMonkeyManager.containsScript"></a> 268 <a NAME="GreaseMonkeyManager.containsScript" ID="GreaseMonkeyManager.containsScript"></a>
251 <h4>GreaseMonkeyManager.containsScript</h4> 269 <h4>GreaseMonkeyManager.containsScript</h4>
252 <b>containsScript</b>(<i>fullName</i>) 270 <b>containsScript</b>(<i>fullName</i>)
254 <p> 272 <p>
255 Public method to check, if the given script exists. 273 Public method to check, if the given script exists.
256 </p> 274 </p>
257 <dl> 275 <dl>
258 276
259 <dt><i>fullName</i></dt> 277 <dt><i>fullName</i> (str)</dt>
260 <dd> 278 <dd>
261 full name of the script (string) 279 full name of the script
262 </dd> 280 </dd>
263 </dl> 281 </dl>
264 <dl> 282 <dl>
265 <dt>Return:</dt> 283 <dt>Return:</dt>
266 <dd> 284 <dd>
267 flag indicating the existence (boolean) 285 flag indicating the existence
286 </dd>
287 </dl>
288 <dl>
289 <dt>Return Type:</dt>
290 <dd>
291 bool
268 </dd> 292 </dd>
269 </dl> 293 </dl>
270 <a NAME="GreaseMonkeyManager.disableScript" ID="GreaseMonkeyManager.disableScript"></a> 294 <a NAME="GreaseMonkeyManager.disableScript" ID="GreaseMonkeyManager.disableScript"></a>
271 <h4>GreaseMonkeyManager.disableScript</h4> 295 <h4>GreaseMonkeyManager.disableScript</h4>
272 <b>disableScript</b>(<i>script</i>) 296 <b>disableScript</b>(<i>script</i>)
274 <p> 298 <p>
275 Public method to disable the given script. 299 Public method to disable the given script.
276 </p> 300 </p>
277 <dl> 301 <dl>
278 302
279 <dt><i>script</i></dt> 303 <dt><i>script</i> (GreaseMonkeyScript)</dt>
280 <dd> 304 <dd>
281 script to be disabled (GreaseMonkeyScript) 305 script to be disabled
282 </dd> 306 </dd>
283 </dl> 307 </dl>
284 <a NAME="GreaseMonkeyManager.doDownloadScript" ID="GreaseMonkeyManager.doDownloadScript"></a> 308 <a NAME="GreaseMonkeyManager.doDownloadScript" ID="GreaseMonkeyManager.doDownloadScript"></a>
285 <h4>GreaseMonkeyManager.doDownloadScript</h4> 309 <h4>GreaseMonkeyManager.doDownloadScript</h4>
286 <b>doDownloadScript</b>(<i>url</i>) 310 <b>doDownloadScript</b>(<i>url</i>)
321 <p> 345 <p>
322 Public method to enable the given script. 346 Public method to enable the given script.
323 </p> 347 </p>
324 <dl> 348 <dl>
325 349
326 <dt><i>script</i></dt> 350 <dt><i>script</i> (GreaseMonkeyScript)</dt>
327 <dd> 351 <dd>
328 script to be enabled (GreaseMonkeyScript) 352 script to be enabled
329 </dd> 353 </dd>
330 </dl> 354 </dl>
331 <a NAME="GreaseMonkeyManager.removeScript" ID="GreaseMonkeyManager.removeScript"></a> 355 <a NAME="GreaseMonkeyManager.removeScript" ID="GreaseMonkeyManager.removeScript"></a>
332 <h4>GreaseMonkeyManager.removeScript</h4> 356 <h4>GreaseMonkeyManager.removeScript</h4>
333 <b>removeScript</b>(<i>script, removeFile=True</i>) 357 <b>removeScript</b>(<i>script, removeFile=True</i>)
335 <p> 359 <p>
336 Public method to remove a script. 360 Public method to remove a script.
337 </p> 361 </p>
338 <dl> 362 <dl>
339 363
340 <dt><i>script</i></dt> 364 <dt><i>script</i> (GreaseMonkeyScript)</dt>
341 <dd> 365 <dd>
342 script to be removed (GreaseMonkeyScript) 366 script to be removed
343 </dd> 367 </dd>
344 <dt><i>removeFile</i></dt> 368 <dt><i>removeFile</i> (bool)</dt>
345 <dd> 369 <dd>
346 flag indicating to remove the script file as well 370 flag indicating to remove the script file as well
347 (bool) 371 </dd>
348 </dd> 372 </dl>
349 </dl> 373 <dl>
350 <dl> 374 <dt>Return:</dt>
351 <dt>Return:</dt> 375 <dd>
352 <dd> 376 flag indicating success
353 flag indicating success (boolean) 377 </dd>
378 </dl>
379 <dl>
380 <dt>Return Type:</dt>
381 <dd>
382 bool
354 </dd> 383 </dd>
355 </dl> 384 </dl>
356 <a NAME="GreaseMonkeyManager.requireScripts" ID="GreaseMonkeyManager.requireScripts"></a> 385 <a NAME="GreaseMonkeyManager.requireScripts" ID="GreaseMonkeyManager.requireScripts"></a>
357 <h4>GreaseMonkeyManager.requireScripts</h4> 386 <h4>GreaseMonkeyManager.requireScripts</h4>
358 <b>requireScripts</b>(<i>urlList</i>) 387 <b>requireScripts</b>(<i>urlList</i>)
360 <p> 389 <p>
361 Public method to get the sources of all required scripts. 390 Public method to get the sources of all required scripts.
362 </p> 391 </p>
363 <dl> 392 <dl>
364 393
365 <dt><i>urlList</i></dt> 394 <dt><i>urlList</i> (list of str)</dt>
366 <dd> 395 <dd>
367 list of URLs (list of string) 396 list of URLs
368 </dd> 397 </dd>
369 </dl> 398 </dl>
370 <dl> 399 <dl>
371 <dt>Return:</dt> 400 <dt>Return:</dt>
372 <dd> 401 <dd>
373 sources of all required scripts (string) 402 sources of all required scripts
403 </dd>
404 </dl>
405 <dl>
406 <dt>Return Type:</dt>
407 <dd>
408 str
374 </dd> 409 </dd>
375 </dl> 410 </dl>
376 <a NAME="GreaseMonkeyManager.requireScriptsDirectory" ID="GreaseMonkeyManager.requireScriptsDirectory"></a> 411 <a NAME="GreaseMonkeyManager.requireScriptsDirectory" ID="GreaseMonkeyManager.requireScriptsDirectory"></a>
377 <h4>GreaseMonkeyManager.requireScriptsDirectory</h4> 412 <h4>GreaseMonkeyManager.requireScriptsDirectory</h4>
378 <b>requireScriptsDirectory</b>(<i></i>) 413 <b>requireScriptsDirectory</b>(<i></i>)
381 Public method to get the path of the scripts directory. 416 Public method to get the path of the scripts directory.
382 </p> 417 </p>
383 <dl> 418 <dl>
384 <dt>Return:</dt> 419 <dt>Return:</dt>
385 <dd> 420 <dd>
386 path of the scripts directory (string) 421 path of the scripts directory
422 </dd>
423 </dl>
424 <dl>
425 <dt>Return Type:</dt>
426 <dd>
427 str
387 </dd> 428 </dd>
388 </dl> 429 </dl>
389 <a NAME="GreaseMonkeyManager.saveConfiguration" ID="GreaseMonkeyManager.saveConfiguration"></a> 430 <a NAME="GreaseMonkeyManager.saveConfiguration" ID="GreaseMonkeyManager.saveConfiguration"></a>
390 <h4>GreaseMonkeyManager.saveConfiguration</h4> 431 <h4>GreaseMonkeyManager.saveConfiguration</h4>
391 <b>saveConfiguration</b>(<i></i>) 432 <b>saveConfiguration</b>(<i></i>)
401 Public method to get the path of the scripts directory. 442 Public method to get the path of the scripts directory.
402 </p> 443 </p>
403 <dl> 444 <dl>
404 <dt>Return:</dt> 445 <dt>Return:</dt>
405 <dd> 446 <dd>
406 path of the scripts directory (string) 447 path of the scripts directory
448 </dd>
449 </dl>
450 <dl>
451 <dt>Return Type:</dt>
452 <dd>
453 str
407 </dd> 454 </dd>
408 </dl> 455 </dl>
409 <a NAME="GreaseMonkeyManager.showConfigurationDialog" ID="GreaseMonkeyManager.showConfigurationDialog"></a> 456 <a NAME="GreaseMonkeyManager.showConfigurationDialog" ID="GreaseMonkeyManager.showConfigurationDialog"></a>
410 <h4>GreaseMonkeyManager.showConfigurationDialog</h4> 457 <h4>GreaseMonkeyManager.showConfigurationDialog</h4>
411 <b>showConfigurationDialog</b>(<i>parent=None</i>) 458 <b>showConfigurationDialog</b>(<i>parent=None</i>)

eric ide

mercurial