xF2 Template Modification Remove Text On Mouse Hover (Download Button)

r4z0rknown

Well-known member
Registered
Joined
Sep 13, 2021
Messages
124
Points
28

Reputation:

I noticed that when i hover the download button it appears this text.
The file on the example image is hosted on mega.
When i host files on google or someone else then it shows the name of the hoster/site.
Is there a way to hide that via extra.less or template modification ?

Remove Text On Mouse Hover (Download Button)
 

BattleKing

Spirit of darkness
Staff member
Administrator
Moderator
S.V.I.P Member
Collaborate
Registered
Joined
May 24, 2020
Messages
1,124
Points
273

Reputation:

Yes it is possible via template modification, look for xfrm_resource_wrapper_macros

Regular Expression:
Find: /(data-xf-init="tooltip")[\s]+(class="button--cta")[\s]+(title="\{\{ \$resource.CurrentVersion.getExternalDownloadDomain\(\) \}\}")/
Replace: $2

Remove Text On Mouse Hover (Download Button)
 

r4z0rknown

Well-known member
Registered
Joined
Sep 13, 2021
Messages
124
Points
28

Reputation:

Yes it is possible via template modification, look for xfrm_resource_wrapper_macros

Regular Expression:
Find: /(data-xf-init="tooltip")[\s]+(class="button--cta")[\s]+(title="\{\{ \$resource.CurrentVersion.getExternalDownloadDomain\(\) \}\}")/
Replace: $2

View attachment 27392
BattleKingMany many thanks !
Appreciate your help :)
I will look into it when im finish with my work.
 

r4z0rknown

Well-known member
Registered
Joined
Sep 13, 2021
Messages
124
Points
28

Reputation:

Remove Text On Mouse Hover (Download Button)

there are only templates from other addons such paid resources but nothing related to the basic xfrm.
there needs to be a seperate section for xfrm or not ?
 

BattleKing

Spirit of darkness
Staff member
Administrator
Moderator
S.V.I.P Member
Collaborate
Registered
Joined
May 24, 2020
Messages
1,124
Points
273

Reputation:

View attachment 27395
there are only templates from other addons such paid resources but nothing related to the basic xfrm.
there needs to be a seperate section for xfrm or not ?
r4z0rknownYou need to add a own template modification. You need to enable the development mode, so that you see the add modification button.

$config['development']['enabled'] = true;

Before:
Remove Text On Mouse Hover (Download Button)


After:
Remove Text On Mouse Hover (Download Button)
 
Top