32 Public method to handle a GreaseMonkey request. |
32 Public method to handle a GreaseMonkey request. |
33 |
33 |
34 @param info request info object |
34 @param info request info object |
35 @type QWebEngineUrlRequestInfo |
35 @type QWebEngineUrlRequestInfo |
36 """ |
36 """ |
37 if info.requestUrl().toString.endswith(".user.js"): |
37 if info.requestUrl().toString().endswith(".user.js"): |
38 self.__manager.downloadScript(info.requestUrl()) |
38 self.__manager.downloadScript(info.requestUrl()) |
39 info.block(True) |
39 info.block(True) |