Member
- Feb
- Threads
- 0
- 8
- 7
- 3
AD: Mt2009 - Mobile & PC - 30 January 2026 CHECK THE PRESENTATION!
Hi, i tested the system and it works. at the end i ended up adding a whitelist in order to open only trusted links.
I added a python tuple inside the
method in
So:
1. Search for:
2. Inside
add:
NOTE: Replace examples with the website you want to whitelist. You don't need to add the entire urls, but just a substring of the website (e.g. google)
3. Go inside the
4. Replace the
with:
NOTE: I advise to use a string from the locale and not to add it like i did
NOTE2: This is just for "direct" urls, so urls that don't need a confirmation page to be opened, but at the end, modifications will be almost the same
NOTE3: It can be done the same also with black list instead of whitelist. It 's up to you to choose what to do
There are also some
wich i would move at the top of the file instead of using them in the middle of functions, but this is up to you
I added a python tuple inside the
Python:
__init__
Python:
class interface
1. Search for:
Python:
class Interface(object)
Python:
def __init__(self):
Python:
self.whiteListWebsites = (
"example",
"example2",
"example3",
)
3. Go inside the
Python:
def MakeHyperlinkTooltip(self, hyperlink):
Python:
os.system("start " + tokens[1].replace("XxX", "://"))
Python:
token = tokens[1].replace("XxX", "://")
for website in self.whiteListWebsites:
if website in token:
os.system("start " + token)
return
chat.AppendChat(chat.CHAT_TYPE_INFO, "Invalid website. If you think it's a valid one, contact a staff member.")
NOTE2: This is just for "direct" urls, so urls that don't need a confirmation page to be opened, but at the end, modifications will be almost the same
NOTE3: It can be done the same also with black list instead of whitelist. It 's up to you to choose what to do
There are also some
Python:
import chr

