This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * Bookmarklet: Отправка сообщения в WhatsApp из выбранного текста | |
| * | |
| * Описание: | |
| * Этот букмарклет извлекает номер телефона из выделенного текста на веб-странице | |
| * и открывает новую вкладку с окном чата WhatsApp для этого номера. | |
| * Это простой инструмент для быстрого начала разговора в WhatsApp, используя | |
| * номера телефонов, найденные на любой странице. | |
| * | |
| * Как работает: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- ********************************************************************** --> | |
| <!-- Меняем год в копирайте в блоке с классом "uc-copyright" (Тильда) --> | |
| <!-- ********************************************************************** --> | |
| <script> | |
| document.addEventListener('DOMContentLoaded', () => { | |
| const startYear = '2014'; | |
| const className = 'uc-copyright'; | |
| const currentYear = new Date().getFullYear(); // Получаем текущий год | |
| // Находим элемент <strong> внутри заданного класса |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- ********************************************************************** --> | |
| <!-- Меняем «Phone» на «Телефон» в блоке BF905A (Тильда) --> | |
| <!-- ********************************************************************** --> | |
| <style> | |
| a.t825__phone ~ div.t825__messenger-descr { | |
| color: transparent; | |
| } | |
| a.t825__phone ~ div.t825__messenger-descr:after { | |
| content: "Телефон"; | |
| color: #17181e; /* set color to original text color */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- ********************************************************************** --> | |
| <!-- Замена категорий в магазине со слова «Все» на своё название (Тильда) --> | |
| <!-- ********************************************************************** --> | |
| <style> | |
| div[data-storepart-uid="361763895611"] { | |
| visibility: hidden; | |
| position: relative; | |
| } | |
| div[data-storepart-uid="361763895611"]:after { | |
| visibility: visible; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- ********************************************************************** --> | |
| <!-- Работа с данными в динамическом каталоге Тильды --> | |
| <!-- ********************************************************************** --> | |
| <script> | |
| const MAX_ATTEMPTS = 10; | |
| let attempts = 0; | |
| function checkForJsStore() { | |
| if (attempts >= MAX_ATTEMPTS) { | |
| console.warn("Достигнуто максимальное количество попыток. Подождите или обновите страницу."); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- ********************************************************************** --> | |
| <!-- Меняем кнопки и цвета у блока BF905A в Тильде --> | |
| <!-- ********************************************************************** --> | |
| <script> | |
| const ucNewIcons = { | |
| "t898__icon-telegram_wrapper": { | |
| "iconPath": "none", // Нет новой иконки | |
| "tooltipText": null // Нет нового названия для тултипа | |
| }, | |
| "t898__icon-whatsapp_wrapper": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- ********************************************************************** --> | |
| <!-- Скрываем или удаляем пустые карточки на Тильде (блок ST315N) --> | |
| <!-- ********************************************************************** --> | |
| <!-- Видео с пояснением: https://youtu.be/VLor5zp0W4s. --> | |
| <!-- ********************************************************************** --> | |
| <script> | |
| (function() { | |
| // Настройки | |
| const productCardClasses = ['js-product', 't-item']; | |
| const productNameClasses = ['js-store-prod-name', 'js-product-name', 't786__title']; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- ********************************************************************** --> | |
| <!-- Скрытие символа BOM на карточках Тильды --> | |
| <!-- ********************************************************************** --> | |
| <script> | |
| (function() { | |
| // Список классов для проверки | |
| var classesToCheck = [ | |
| 't-card__uptitle', | |
| 't-card__title', | |
| 't-card__descr' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- ********************************************************************** --> | |
| <!-- SmoothScroll с помощью библиотеки Lenis (обновлено до версии 1.3.11+) --> | |
| <!-- ********************************************************************** --> | |
| <!-- Более плавный скролл с поддержкой автоскейла --> | |
| <!-- ********************************************************************** --> | |
| <link rel="stylesheet" href="https://unpkg.com/lenis@1.3.11/dist/lenis.css"> | |
| <script src="https://unpkg.com/lenis@1.3.11/dist/lenis.min.js"></script> | |
| <script> | |
| // Классы Тильды, для которых скрипт "отключается" | |
| const classesToExclude = [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- ********************************************************************** --> | |
| <!-- Анимация движения SVG-фигурки по заданному пути с использованием GSAP --> | |
| <!-- ********************************************************************** --> | |
| <!-- Этот код создает анимацию движения SVG-фигуры по линии, которая --> | |
| <!-- задана в SVG, при прокрутке страницы. GSAP с MotionPathPlugin --> | |
| <!-- и ScrollTrigger обеспечивает плавное движение фигурки по пути. --> | |
| <!-- Анимация запускается и останавливается в зависимости от позиции --> | |
| <!-- скролла, что делает её синхронизированной с прокруткой. --> | |
| <!-- ********************************************************************** --> | |
| <!DOCTYPE html> |
OlderNewer