+  HandyCache форум
|-+  Главная категория» English forum» Need Help with HTML Webpage Filter
Имя пользователя:
Пароль:
Страниц: [1]   Вниз
  Отправить эту тему    Печать  
Автор Тема: Need Help with HTML Webpage Filter  (Прочитано 4116 раз)
0 Пользователей и 1 Гость смотрят эту тему.
DanteNaim
Новичок
*

Репутация: +0/-0
Offline Offline

Сообщений: 2


« : 18 февраля 2013, 11:01:16 »

Hello, everyone!

Here's the thing, I want to make a simple extension to filter webpage. But the problem is, I know nothing about LUA (well, almost).
Let's say, I want to remove/replace some text in HTML code with something else before HC cache it or send to the browser like:
Цитировать
<html>
<body>
<a href="/url\?q=link">HC</a> --> <a href="link">HC</a>
</body>
</html>
Or add some tag between <html> and <body>.
How to do that?

I know, I could just use Proxomitron to do the job with HTML Webpage Filters, but I wanna know how to do it with HC.
It would be GR8 if you guys share some code, so I can look into it.

I'm from Indonesia and English is strange language to me, so... sorry if there's any... you know... strange thing.
Well, thank you very much.
Сообщить модератору   Записан
shawnthesheep
Новичок
*

Репутация: +0/-0
Offline Offline

Сообщений: 8


« Ответ #1 : 21 февраля 2013, 04:46:31 »

You can use text replacement feature in content master
check the CM thread on how to do that  Веселый
Сообщить модератору   Записан
DanteNaim
Новичок
*

Репутация: +0/-0
Offline Offline

Сообщений: 2


« Ответ #2 : 21 февраля 2013, 11:33:41 »

Oww, I forgot to mention about CM. Before I Created this thread, I've looked and tested it.
And since the update one not in English, I don't feel like using it, that thing got me lost, and it's kinda heavy to load.
I was hoping simple and small example code, so I can make my own.

But, thanks anyway, shawn.
Сообщить модератору   Записан
Страниц: [1]   Вверх
  Отправить эту тему    Печать  

 
Перейти в: