Skip to content
Жёлтый веб

Автоматизация и арбитраж трафика

Поиск
English
Русский
Categories
  • Браузеры
  • Домены
  • Клоакинг
  • Креативы
  • Ленды-Проклы
  • Перевод
  • Aff. Networks
  • Скрипты
  • Советы-Полезности
  • Софт
  • Трекеры
  • Facebook
  • Финансы

Replace a Front-End Team with One Script

9 comments / Скрипты, Facebook

Hello everyone, here you goYellow Weband today we will sort it out with youpowerful script for your gaskets –Drewlex.The creator of this miracle is unknown, the script was discovered by me insoldered, and then I saw it in the proclamations of one of the famous affiliate network, I admit that it was created by someone from the layout department of this affiliate network, after which it went viral on the Internet. The author himself describes his creation as follows:

“A radically new product, the performance exceeds the potential of an entire stack of layout designers.”

Well, let’s see how the functionality matches such a loud statement!

Feature Set

The script was slightly updated: I added to it all sorts of copy protection capabilities, which, although they were announced, were not implemented. Wellbasethe set of functions is as follows:

  1. Blocking:context menu, save page, copy
  2. Inserting dynamic dates:
    • minus 10 days from the current one (usually used to indicate the date of the article)
    • for today’s date
    • for comments
    • current year
  3. Facebook style comments — like, repost buttons, etc.
  4. Smooth scrolling to the desired part of the page
  5. Countdown timer
  6. Slider for pictures

The script also has a seriesadvancedpossibilities:

  1. Roulette
  2. Automatic comments
  3. Pop-up bars to show that someone has purchased a product
  4. Adding an order form

Connection

Let’s deal with everything in order, let’s start by connecting the script to your gasket:

Download the script itself and all additional files from GitHub, copy it to the folder for your installation, open the fileindex.htmlgaskets and add them somewhere in the tag<head>

<script src='drewlex.js'></script>

Next, let’s go through the setup.basicfunctions (you can look: in the fileexample.phpthere is a ready-made configuration example).

Enable copy protection

To enable protection inside a tag<head>we write:

<script>var mv_protect='on'</script>

After this, the user will not be able to call the context menu, the key combination will be disabledCtrl+Sto save the page and you will lose the ability to select text.

Adding dynamic dates

With dates, everything is simple — add an element to your profile in the right placediv orspanand point them to the corresponding class:

  1. <div class="mv_mdate"></div>— for -10 days from the current date
  2. <div class="mv_tdate"></div>— for the current date
  3. mv_rtdate– for the date comments. The trick is that if there are several comments, then each subsequent date will be greater than the previous one:
  4. <div class="mv_tyear"></div>— for the current year

Facebook style comments

To add a block comments in Facebook style, create<div class=”comments”></div>
Inside it we add the necessary comments in the following form:

<div class="comments-item">
<div class="comment-avatar"><img src="User_path.jpg" width="32" height="32"></div>
<div class="comment-text">
<span class="comment-username">Username</span>
</div>
<div class="comment-action">
<span class="like">Like</span>
<span class="reply">Repost</span>
<span class="like-count">0</span>
<span class="comment-date mv_rtdate"></span>
</div>
</div>


It will look like the previous screenshot above.
At the bottom of the comments block you can add a form so that the user can add a comment, and it will be added! It’s done like this:

<div>
<div class="input-action"></div>
Comment:<textarea class="textarea"></textarea> <br>
Name:<input lass="comment-name-input"/>
<button class="send-btn">Send</button>
</div>

This form looks like this:

Smooth scrolling

With smooth scrolling, everything is very simple: we add the .scrollto class and href with the ID of the element to which we want to scroll to the link element (i.e. the <a> tag). For example:<a href=”#orderform” class=”scrollto”>Buy</a>

Timer

A countdown timer is a must-have for any website. To add it, just create a div with the mv_timer class.
<div class=”mv_timer”></div>
By default, the timer counts the time until the end of the current day.

Slider

A slider is essentially a carousel, i.e. several pictures that you can switch between with a swipe or mouse. Added like this:
Create several tags<div>with tags<img>inside, and then we stuff them all into<div class=”owl-carousel”>For example:
<div class=”owl-carousel”>
<div><img src=”1.jpg”/></div>
<div><img src=”2.jpg”/></div>
<div><img src=”3.jpg”/></div>
</div>

We have dealt with the basic things, we are gradually approaching the most delicious, namely the advanced functions of the script, which the author lovingly called the word “Tricks”: autocomments, pop-ups, roulette, working with the form. Let’s go!

Advanced Features

To enable «tricks» we first write a block in the right place on the page<div class="features-wrapper"></div>
I usually add this block after the main padding text and before the comments block.

Next we need to make settings. In a nutshell about them:

The settings block consists of 3 main (mandatory) parameters and 5 additional modules.

The main ones are responsible for the language, product and gender of the audience (for example, EROGAN is male, BELLINDA is female, and FITOSPRAY is all) all 3 must be indicated!

Additional modules are responsible for installing on the page a form, autocomments, pop-ups and roulette in any combination: a form is just a form, a roulette is just a roulette, a form + a roulette = a form appears after the roulette is rotated. Modules contain a set of unique settings that allow you to more accurately fit the feature to the page. Unnecessary modules can be removed from the settings so that they do not take up space.

Drum roll! Settings block (insert anywhere on the page):

<script>
initFeatures({
lang : 'ru', //list of available languages ​​- vn,it,es,co,hr,en,de,fr,ph,cz,id,th,gr,bg,al,ro,sg,en_sg,mk,si,sk,lv,hu,pl,lt,pt
product : 'SPICE', //product name
genderTargeting : 'all', //gender of the target audience - all, male, female

form : {
isNeeded : 1, // 1-enable the form, 0-disable
img: 'https://www.webrotate360.com/campaigns/360-product-view.gif', // path to the product image
price : true, // price tag
priceBrFix : true, // fixes the display of prices in the price tag (true - removes line breaks)
showSelect : false, // show or hide the select field
untilExpire: 600 // timer for the end of the promotion where 600 = 10 minutes. Set it to 0 if the timer is not needed.
},

autoComments : {
isNeeded : 1, // 1-enable auto-comments, 0-disable
bgColor : '#d7f2d8' // block background color comments
},

popups : {
isNeeded : 1, // 1-enable pops, 0-disable
bgColor: 'rgba(87, 86, 141, 0.8)', // message background color
textColor : '#fff', // color of the main message text
emmphColor : 'cyan', // color of highlights in messages (for example, 'with XX% discount', '' )
blackIcons : false // black or white icons, true or false values
},

wheel : {
isNeeded : 1, // 1-turn on the wheel, 0-turn off
customWheel : false // link to your wheel, or false
}
});
</script>

In general, from comments in the code it is clear what is responsible for what, but how can all this be applied? Easy. We specified the language, product name and gender of the audience and turned on, say, autocomments. And from time to time a new comment begins to appear on our page (froma large database pre-built into the script!) in the right language (!) from people of the right gender!

It’s the same with pop-ups.

And for dessert – roulette. After the roulette has spun and we have “won” something, it is possible to show a picture of the product (it needs to be put in the img folder and called product.png) along with the order form + under the picture, if necessary, there will also be a timer:

If you need to insert additional fields into this form (for example, subs), look at how this is done in example.php — variableformApiCode.

I don’t know about you, but I’m really impressed by the script’s capabilities, I give the author 10 out of 10 layout designers. Let’s connect ourselves, figure out the possibilities, increase conversion!

Thank you for reading, well, I was with youYellow Web, pour into the plus, gentlemen!

What to read next

Open the full traffic arbitrage hub →

Major Update to the Free Facebook Traffic Cloaker An update on the free cloaking solution for Facebook traffic, including what changed and what it means in practice. Dynamic Facebook Pixel: Setup and Event Passing How to set up a dynamic Facebook pixel and pass pixel IDs through URL parameters when one technical setup must serve many campaigns. Boost Facebook Comments via API How to work with Facebook comments through the API when you need controlled boosting, seeding, or operational automation.
Навигация по записям
← Previous Post
Next Post →

9 comments “<trp-post-container data-trp-post-id='345'>Replace a Front-End Team with One Script</trp-post-container>”

  1. Макс
    2020-12-20 в 19:54

    У этого скрипта есть один, достаточно существенный минус который я заметил, т.к. форма тут грузится через js из скрипта в кейтаро не подвяжутся к форме все их макросы с допполями, в т.ч. передача subid

    Reply
    1. Yellow Web
      2020-12-20 в 20:12

      не совсем так, всё возможно на самом деле! глянь файл example.php, я там привёл пример с передачей сабов.

      Reply
  2. Макс
    2020-12-20 в 21:26

    Возможно конечно что так и будет работать, попробовать не могу к сожалению, я в свое время пробовал скриптом эти допполя дописывать в уже подгруженную форму и там макрос не менялся на значение по какой то причине.
    Ну а так да, я тоже давно данный скрипт заприметил и почистил под себя, очень удобен

    Reply
  3. Артур
    2020-12-27 в 17:11

    Получается, что каждый раз что бы макрос sub1={subid1} кейтаровский отрабатывал, надо каждый раз сайт писать свой formApi:{
    isNeeded: 1,
    landingValue: ‘cz1.predstavitnd.com’
    В этом параметре
    landingValue: ‘cz2.predstavitnd.com’
    landingValue: ‘cz3.predstavitnd.com’ и тд.
    Если так то это же неудобно каждый раз вписывать это значение.
    То есть нельзя сделать и привести к общему виду, что бы каждый раз не вводить новый домен?

    Reply
  4. Yellow Web
    2020-12-27 в 23:43

    Никто не мешает тебе засунуть туда вместо зашитого значения просто текущий домен js-кой)

    Reply
  5. Уведомление: Повышаем CR лендинга!

  6. Sérgio
    2022-12-14 в 17:13

    Ваш сайт выдает ошибку со страницы 9 и далее.
    https://yellowweb.top/page/9/

    Reply
    1. Yellow Web
      2023-01-08 в 12:59

      ничего страшного, это мелочи, поправлю…

      Reply
  7. Вовка
    2023-04-19 в 20:07

    Не работает защита от скачивания и копирования текста на сайте.

    Скопировал все файлы в скаченом архиве и закинул себе в папку с лендом, там же index от проклы, правильно?
    или нужно целиком папку Drewlex.JS-main закинуть в корень проклы ?

    Reply

Write a comment Отменить ответ

Your email address will not be published. Require fields marked as *

  • Полезные ссылки
  • Реклама
  • Rider
  • VK
  • Telegram
  • YouTube
Copyright © 2026 Любое копирование информации без активной ссылки на источник запрещено!
Русский
Русский
English