ReReplacer

How to replace these URL with nothing?

1 month 3 weeks ago #90660

sky's Avatar sky

Hi

I want to remove all google calls from my site from all joomla template and extensions that call them. How to do it please?

http(s)://fonts.gstatic.com/...
http(s)://fonts.googleapis.com/...
http(s)://www.google.com/recaptcha/....

1 month 2 weeks ago #90664

Peter van Westen's Avatar Peter van Westen Admin

This depends on how these urls are called. Are these being called via javascript inside the html output or inside js files? Or inside inline css or inside css files...

ReReplacer can only replace/remove stuff that is actually there in the html output. It cannot touch what is in external files.

1 month 2 weeks ago #90667

sky's Avatar sky

Hi

I see them in chrome dev tools:
monosnap.com/file/flQVdSyvyauRCW0vxrNbTHRzmhqTRk

1 month 2 weeks ago #90669

Peter van Westen's Avatar Peter van Westen Admin

That is not the html output of your website.
Use 'View Source' under the right mouse-click (or ctrl-U).

1 month 2 weeks ago #90681

Peter van Westen's Avatar Peter van Westen Admin

Do you have this online so I can take a look?

1 month 2 weeks ago #90682

Peter van Westen's Avatar Peter van Westen Admin

In your case you could try something like this (using Regular Expressions):

,url\([^\)]*(fonts\.gstatic\.com|fonts\.googleapis\.com).*?\)

1 month 2 weeks ago #90683

sky's Avatar sky

I put the setting like this, but seems not working
monosnap.com/file/B9sWQQbcNOjSMB47jXIKgUtRTh786Z

please check site
shorturl.at/fjLS9

1 month 2 weeks ago #90685

Peter van Westen's Avatar Peter van Westen Admin

That short url sends me to something else.

1 month 2 weeks ago #90699

sky's Avatar sky

please use this one
tinyurl.com/swtckun

1 month 2 weeks ago #90703

Peter van Westen's Avatar Peter van Westen Admin

Did you try the Regular Expression I gave you?

I am not sure what extension you have that is pushing this css into your html output. But make sure ReReplacer is ordered after it. So it can pick up that code.
See: www.regularlabs.com/guides/242-plugin-order-is-important

1 month 2 weeks ago #90786

sky's Avatar sky

I moved the plugin before cache at the end.

but this url still being called
fonts.gstatic.com/s/robotocondensed/v18/...eq8-33mZGCQYbw.woff2

1 month 2 weeks ago #90787

Peter van Westen's Avatar Peter van Westen Admin

Can you give me (super) admin and (s)ftp access so I can take a look?
You can use the 'Hidden text' button in the forum editor to hide the confidential information.

1 month 1 week ago #90819

sky's Avatar sky

please test in my test site

Confidential information:
(hidden)

1 month 1 week ago #90820

Peter van Westen's Avatar Peter van Westen Admin

On that dev site I see no use of gstatic or googleapis in the html output at all.