global browserDoc class browserDoc(QTextBrowser): def __init__(self,*args,**kwargs): super().__init__(*args,**kwargs) self.setOpenLinks(False) style = "" if (config["accessibility"]["colorBackground"] != "default"): style += "background-color: " +config["accessibility"]["colorBackground"] + ";" if (config["accessibility"]["colorText"] != "default"): style += "color: " +config["accessibility"]["colorText"]+ ";" self.setStyleSheet("QTextBrowser { " +style+ " }") self.anchorClicked.connect(self.cAnchorClicked) def cRenderHtml(self,html): self.clear() self.insertHtml(html.replace(" 0 and curUrlParsed["path"][-1] == "/": curUrlParsed["path"] = curUrlParsed["path"][:-1] urlParsed["path"] = curUrlParsed["path"] + "/" + url url = unparseUrl(urlParsed) browserWindow.cUrlBar.setText(url) browserWindow.cNavigate()