// jQuery
var jq = document.createElement('script');
jq.src = "https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js";
document.getElementsByTagName('head')[0].appendChild(jq);
//https://github.com/pid/speakingurl
var jq = document.createElement('script');
jq.src = "https://cdnjs.cloudflare.com/ajax/libs/speakingurl/13.0.0/speakingurl.min.js";
document.getElementsByTagName('head')[0].appendChild(jq);
// jQuery.noConflict();
// ===========================================
setTimeout(function(){
jQuery(document).ready(function($){
// Копируем слаг
// Объявляем слаг
var FullLink = $('[rel="canonical"]').attr('href');
console.log(FullLink);
var Title = $('title').text();
console.log(Title);
var Descriptions = $('[property="og:description"]').attr('content');
console.log(Title);
var Slug = FullLink.split('/')[3]+'.md';
console.log(Slug);
var Domain = FullLink.split('/')[2];
console.log(Domain);
var DataPublicate = $('[property="article:modified_time"]').attr('content').split('T')[0];
console.log(DataPublicate);
var Category = $('p#breadcrumbs').text().split('/')[1];
console.log(Category);
var PostImage = $('[property="og:image"]').attr('content');
console.log(PostImage);
//===========================
// Куда вставляем
// ⭐
// var ForPaste = $('body .entry-content[itemprop="text"]').first();
var ForPaste = $('article .elementor-widget-theme-post-content .elementor-widget-container').first();
ForPaste.prepend("<blockquote id=\"SDS-END\" style=\"\"><h6>END</h6></blockquote>");
// И выводим под h1 все что нам нужно
// Изображение записи
ForPaste.prepend("<blockquote id=\"SDS-PostImage\" style=\"\"><h6>SDStudio-PostImage-✅ = <span class=\"content\">"+PostImage+"</span></h6></blockquote>");
// Текущая ссылка
ForPaste.prepend("<blockquote id=\"SDS-NameFile\" style=\"\"><h6>SDStudio-FullLink-✅ = <span class=\"content\">"+FullLink+"</span></h6></blockquote>");
// Текущий домен сайта
ForPaste.prepend("<blockquote id=\"SDS-Domain\" style=\"\"><h6>SDStudio-Domain-✅ = <span class=\"content\">"+Domain+"</span></h6></blockquote>");
// Дата публикации
ForPaste.prepend("<blockquote id=\"SDS-DataPublicate\" style=\"\"><h6>SDStudio-DataPublicate-✅ = <span class=\"content\">"+DataPublicate+"</span></h6></blockquote>");
// Категория записи
ForPaste.prepend("<blockquote id=\"SDS-Category\" style=\"\"><h6>SDStudio-Category-✅ = <span class=\"content\">"+Category+"</span></h6></blockquote>");
// Descriptions
ForPaste.prepend("<blockquote id=\"SDS-Descriptions\" style=\"\"><h6>SDStudio-Descriptions-✅ = <span class=\"content\">"+Descriptions+"</span></h6></blockquote>");
// Название
ForPaste.prepend("<blockquote id=\"SDS-Title\" style=\"\"><h6>SDStudio-Title-✅ = <span class=\"content\">"+Title+"</span></h6></blockquote>");
ForPaste.prepend("<br><blockquote id=\"SDS-START\" style=\"\"><h6>START</h6></blockquote>");
});
}, 2000);
/* ==== START ============
Горячие клавиши
=========================*/
setTimeout(function(){
jQuery(document).ready(function($){
document.onkeyup = function(e) {
if (e.which == 50) {
// 2️⃣⌨ - Скрол вверх
// = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
jQuery("html, body").animate({ scrollTop: 0 }, "slow");
} else if ( e.which == 49) {
// 1️⃣⌨ - Переход по следующей ссылке из Google Sheets
// = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
//https://html-to-markdown.test/PARSING_ALL_LINKS.txt
// ID of the Google Spreadsheet
// https://bionicteaching.com/google-sheets-json-with-jquery/
// ⭐ Укзываем ID именно листа
var spreadsheetID = "13FxGrkKKx15tvq3j3j0Sl9Sednfkn6KXAyicKiXcRJw";
// Make sure it is public or set to Anyone with link can view
var url = "https://spreadsheets.google.com/feeds/list/" + spreadsheetID + "/1/public/values?alt=json"; //this is the part that's changed
// ===========================================
var ThisURL = window.location.href;
console.log('1⭐ Текущий линк - '+ThisURL);
console.log('============================');
// Объявляем счетчик
var i = 0;
// Заготавливаем переменку для следующей ссылки
var NEXT_LINK_NUM_LINK_IN_FILE = '';
// Ссылка на следующую страницу
var NEXT_LINK = '';
$.getJSON(url, function(data) {
var entry = data.feed.entry;
$(entry).each(function(){
i++;
// +++++++++++++++++++++++++++++++++++
// Получаем номер ячейки для текущей ссылки
if (ThisURL === this.title.$t){
NEXT_LINK_NUM_LINK_IN_FILE = i+1;
}
// Получаем ссылку на следующую страницу
if (NEXT_LINK_NUM_LINK_IN_FILE == i){
NEXT_LINK = this.title.$t;
}
// +++++++++++++++++++++++++++++++++++
});
if (NEXT_LINK !== ""){
console.log('2 ✅ Следующий линк - '+NEXT_LINK);
// И переходим на следующую страницу 😊
window.location.href = NEXT_LINK;
} else {
$( "body" ).empty();
$( "body" ).css('background-color','red');
console.log('🔴🔴🔴🔴🔴🔴 Весь лист ссылок окончен!!! Очищаем body и красим в красный');
}
});
} else if ( e.which == 51) {
//3️⃣⌨ - Добавление RU слага
// = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
var TextForNewRU_Slug = jQuery('blockquote#SDS-Title span.content').text();
var NEW_RU_SLUG = getSlug( TextForNewRU_Slug , {
lang: 'ru',
custom: {
':': '-'
}
});
//console.log(NEW_RU_SLUG); // Output: schoener-titel-laesst-gruessen-bel-ete
jQuery(document).ready(function($){
//blockquote#SDS-Title
var ForPaste = jQuery('article .elementor-widget-theme-post-content .elementor-widget-container blockquote#SDS-Title');
ForPaste.before("<blockquote id=\"SDS-NEW-RU-SLUG\" style=\"\"><h6>SDStudio-NEW-RU-SLUG-✅✅ = <span class=\"notranslate\"> "+NEW_RU_SLUG+"</span></h6></blockquote>");
console.log('DStudio-NEW-RU-SLUG-✅✅ = '+NEW_RU_SLUG);
});
}
// = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
};
});
}, 10000);
/*END Горячие клавиши */
// jQuery
var jq = document.createElement('script');
jq.src = "https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js";
document.getElementsByTagName('head')[0].appendChild(jq);
//https://github.com/pid/speakingurl
var jq = document.createElement('script');
jq.src = "https://cdnjs.cloudflare.com/ajax/libs/speakingurl/13.0.0/speakingurl.min.js";
document.getElementsByTagName('head')[0].appendChild(jq);
// jQuery.noConflict();
// ===========================================
setTimeout(function(){
jQuery(document).ready(function($){
// Копируем слаг
// Объявляем слаг
var FullLink = $('[rel="canonical"]').attr('href');
console.log(FullLink);
var Title = $('title').text();
console.log(Title);
var Descriptions = $('[property="og:description"]').attr('content');
console.log(Title);
var Slug = FullLink.split('/')[3]+'.md';
console.log(Slug);
var Domain = FullLink.split('/')[2];
console.log(Domain);
var DataPublicate = $('[property="article:modified_time"]').attr('content').split('T')[0];
console.log(DataPublicate);
var Category = $('p#breadcrumbs').text().split('/')[1];
console.log(Category);
var PostImage = $('[property="og:image"]').attr('content');
console.log(PostImage);
//===========================
// Куда вставляем
// ⭐
// var ForPaste = $('body .entry-content[itemprop="text"]').first();
var ForPaste = $('article .elementor-widget-theme-post-content .elementor-widget-container').first();
ForPaste.prepend("<blockquote id=\"SDS-END\" style=\"\"><h6>END</h6></blockquote>");
// И выводим под h1 все что нам нужно
// Изображение записи
ForPaste.prepend("<blockquote id=\"SDS-PostImage\" style=\"\"><h6>SDStudio-PostImage-✅ = <span class=\"content\">"+PostImage+"</span></h6></blockquote>");
// Текущая ссылка
ForPaste.prepend("<blockquote id=\"SDS-NameFile\" style=\"\"><h6>SDStudio-FullLink-✅ = <span class=\"content\">"+FullLink+"</span></h6></blockquote>");
// Текущий домен сайта
ForPaste.prepend("<blockquote id=\"SDS-Domain\" style=\"\"><h6>SDStudio-Domain-✅ = <span class=\"content\">"+Domain+"</span></h6></blockquote>");
// Дата публикации
ForPaste.prepend("<blockquote id=\"SDS-DataPublicate\" style=\"\"><h6>SDStudio-DataPublicate-✅ = <span class=\"content\">"+DataPublicate+"</span></h6></blockquote>");
// Категория записи
ForPaste.prepend("<blockquote id=\"SDS-Category\" style=\"\"><h6>SDStudio-Category-✅ = <span class=\"content\">"+Category+"</span></h6></blockquote>");
// Descriptions
ForPaste.prepend("<blockquote id=\"SDS-Descriptions\" style=\"\"><h6>SDStudio-Descriptions-✅ = <span class=\"content\">"+Descriptions+"</span></h6></blockquote>");
// Название
ForPaste.prepend("<blockquote id=\"SDS-Title\" style=\"\"><h6>SDStudio-Title-✅ = <span class=\"content\">"+Title+"</span></h6></blockquote>");
ForPaste.prepend("<br><blockquote id=\"SDS-START\" style=\"\"><h6>START</h6></blockquote>");
});
}, 2000);
// RU SLUG
setTimeout(function(){
var TextForNewRU_Slug = jQuery('blockquote#SDS-Title span.content').text();
var NEW_RU_SLUG = getSlug( TextForNewRU_Slug , {
lang: 'ru'
});
//console.log(NEW_RU_SLUG); // Output: schoener-titel-laesst-gruessen-bel-ete
jQuery(document).ready(function($){
//blockquote#SDS-Title
var ForPaste = jQuery('article .elementor-widget-theme-post-content .elementor-widget-container blockquote#SDS-Title');
ForPaste.before("<blockquote id=\"SDS-NEW-RU-SLUG\" style=\"\"><h6>SDStudio-NEW-RU-SLUG-✅✅ = <span class=\"notranslate\"> "+NEW_RU_SLUG+"</span></h6></blockquote>");
console.log('DStudio-NEW-RU-SLUG-✅✅ = '+NEW_RU_SLUG);
});
},45000);
/* ==== START ============
Горячие клавиши
=========================*/
setTimeout(function(){
jQuery(document).ready(function($){
document.onkeyup = function(e) {
if (e.which == 50) {
// 2 -
// Go to top
jQuery("html, body").animate({ scrollTop: 0 }, "slow");
} else if ( e.which == 49) {
//1 - переход на страницу входа в админ панель WordPress;
// = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
//https://html-to-markdown.test/PARSING_ALL_LINKS.txt
// ID of the Google Spreadsheet
// https://bionicteaching.com/google-sheets-json-with-jquery/
// ⭐ Укзываем ID именно листа
var spreadsheetID = "13FxGrkKKx15tvq3j3j0Sl9Sednfkn6KXAyicKiXcRJw";
// Make sure it is public or set to Anyone with link can view
var url = "https://spreadsheets.google.com/feeds/list/" + spreadsheetID + "/1/public/values?alt=json"; //this is the part that's changed
// ===========================================
var ThisURL = window.location.href;
console.log('1️⃣⭐ Текущий линк - '+ThisURL);
console.log('============================');
// Объявляем счетчик
var i = 0;
// Заготавливаем переменку для следующей ссылки
var NEXT_LINK_NUM_LINK_IN_FILE = '';
// Ссылка на следующую страницу
var NEXT_LINK = '';
$.getJSON(url, function(data) {
var entry = data.feed.entry;
$(entry).each(function(){
i++;
// +++++++++++++++++++++++++++++++++++
// Получаем номер ячейки для текущей ссылки
if (ThisURL === this.title.$t){
NEXT_LINK_NUM_LINK_IN_FILE = i+1;
}
// Получаем ссылку на следующую страницу
if (NEXT_LINK_NUM_LINK_IN_FILE == i){
NEXT_LINK = this.title.$t;
}
// +++++++++++++++++++++++++++++++++++
});
if (NEXT_LINK !== ""){
console.log('2️⃣✅ Следующий линк - '+NEXT_LINK);
// И переходим на следующую страницу 😊
window.location.href = NEXT_LINK;
} else {
$( "body" ).empty();
$( "body" ).css('background-color','red');
console.log('🔴🔴🔴🔴🔴🔴 Весь лист ссылок окончен!!! Очищаем body и красим в красный');
}
});
// = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
}
};
});
}, 10000);
/*END Горячие клавиши */
// jQuery
var jq = document.createElement('script');
jq.src = "https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js";
document.getElementsByTagName('head')[0].appendChild(jq);
//https://github.com/pid/speakingurl
var jq = document.createElement('script');
jq.src = "https://cdnjs.cloudflare.com/ajax/libs/speakingurl/13.0.0/speakingurl.min.js";
document.getElementsByTagName('head')[0].appendChild(jq);
// jQuery.noConflict();
// ===========================================
setTimeout(function(){
jQuery(document).ready(function($){
// Копируем слаг
// Объявляем слаг
var FullLink = $('[rel="canonical"]').attr('href');
console.log(FullLink);
var Title = $('title').text();
console.log(Title);
var Descriptions = $('[property="og:description"]').attr('content');
console.log(Title);
var Slug = FullLink.split('/')[3]+'.md';
console.log(Slug);
var Domain = FullLink.split('/')[2];
console.log(Domain);
var DataPublicate = $('[property="article:modified_time"]').attr('content').split('T')[0];
console.log(DataPublicate);
var Category = $('p#breadcrumbs').text().split('/')[1];
console.log(Category);
var PostImage = $('[property="og:image"]').attr('content');
console.log(PostImage);
//===========================
// Куда вставляем
// ⭐
// var ForPaste = $('body .entry-content[itemprop="text"]').first();
var ForPaste = $('article .elementor-widget-theme-post-content .elementor-widget-container').first();
ForPaste.prepend("<blockquote id=\"SDS-END\" style=\"\"><h6>END</h6></blockquote>");
// И выводим под h1 все что нам нужно
// Изображение записи
ForPaste.prepend("<blockquote id=\"SDS-PostImage\" style=\"\"><h6>SDStudio-PostImage-✅ = <span class=\"content\">"+PostImage+"</span></h6></blockquote>");
// Текущая ссылка
ForPaste.prepend("<blockquote id=\"SDS-NameFile\" style=\"\"><h6>SDStudio-FullLink-✅ = <span class=\"content\">"+FullLink+"</span></h6></blockquote>");
// Текущий домен сайта
ForPaste.prepend("<blockquote id=\"SDS-Domain\" style=\"\"><h6>SDStudio-Domain-✅ = <span class=\"content\">"+Domain+"</span></h6></blockquote>");
// Дата публикации
ForPaste.prepend("<blockquote id=\"SDS-DataPublicate\" style=\"\"><h6>SDStudio-DataPublicate-✅ = <span class=\"content\">"+DataPublicate+"</span></h6></blockquote>");
// Категория записи
ForPaste.prepend("<blockquote id=\"SDS-Category\" style=\"\"><h6>SDStudio-Category-✅ = <span class=\"content\">"+Category+"</span></h6></blockquote>");
// Descriptions
ForPaste.prepend("<blockquote id=\"SDS-Descriptions\" style=\"\"><h6>SDStudio-Descriptions-✅ = <span class=\"content\">"+Descriptions+"</span></h6></blockquote>");
// Название
ForPaste.prepend("<blockquote id=\"SDS-Title\" style=\"\"><h6>SDStudio-Title-✅ = <span class=\"content\">"+Title+"</span></h6></blockquote>");
ForPaste.prepend("<br><blockquote id=\"SDS-START\" style=\"\"><h6>START</h6></blockquote>");
});
}, 2000);
// RU SLUG
setTimeout(function(){
var TextForNewRU_Slug = jQuery('blockquote#SDS-Title span.content').text();
var NEW_RU_SLUG = getSlug( TextForNewRU_Slug , {
lang: 'ru'
});
//console.log(NEW_RU_SLUG); // Output: schoener-titel-laesst-gruessen-bel-ete
jQuery(document).ready(function($){
//blockquote#SDS-Title
var ForPaste = jQuery('article .elementor-widget-theme-post-content .elementor-widget-container blockquote#SDS-Title');
ForPaste.before("<blockquote id=\"SDS-NEW-RU-SLUG\" style=\"\"><h6>SDStudio-NEW-RU-SLUG-✅✅ = <span class=\"notranslate\"> "+NEW_RU_SLUG+"</span></h6></blockquote>");
console.log('DStudio-NEW-RU-SLUG-✅✅ = '+NEW_RU_SLUG);
});
}, 15000);
var jq = document.createElement('script');
jq.src = "https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js";
document.getElementsByTagName('head')[0].appendChild(jq);
// jQuery.noConflict();
// ===========================================
setTimeout(function(){
jQuery(document).ready(function($){
// Копируем слаг
// Объявляем слаг
var FullLink = $('[rel="canonical"]').attr('href');
console.log(FullLink);
var Title = $('title').text();
console.log(Title);
var Descriptions = $('[property="og:description"]').attr('content');
console.log(Title);
var Slug = FullLink.split('/')[3]+'.md';
console.log(Slug);
var Domain = FullLink.split('/')[2];
console.log(Domain);
var DataPublicate = $('[property="article:modified_time"]').attr('content').split('T')[0];
console.log(DataPublicate);
var Category = $('p#breadcrumbs').text().split('/')[1];
console.log(Category);
var PostImage = $('[property="og:image"]').attr('content');
console.log(PostImage);
//===========================
// Куда вставляем
// ⭐
// var ForPaste = $('body .entry-content[itemprop="text"]').first();
var ForPaste = $('article .elementor-widget-theme-post-content .elementor-widget-container').first();
ForPaste.prepend("<blockquote id=\"SDS-END\" style=\"\"><h6>END</h6></blockquote>");
// И выводим под h1 все что нам нужно
// Изображение записи
ForPaste.prepend("<blockquote id=\"SDS-PostImage\" style=\"\"><h6>SDStudio-PostImage-✅ = <span class=\"content\">"+PostImage+"</span></h6></blockquote>");
// Текущая ссылка
ForPaste.prepend("<blockquote id=\"SDS-NameFile\" style=\"\"><h6>SDStudio-FullLink-✅ = <span class=\"content\">"+FullLink+"</span></h6></blockquote>");
// Текущий домен сайта
ForPaste.prepend("<blockquote id=\"SDS-Domain\" style=\"\"><h6>SDStudio-Domain-✅ = <span class=\"content\">"+Domain+"</span></h6></blockquote>");
// Дата публикации
ForPaste.prepend("<blockquote id=\"SDS-DataPublicate\" style=\"\"><h6>SDStudio-DataPublicate-✅ = <span class=\"content\">"+DataPublicate+"</span></h6></blockquote>");
// Категория записи
ForPaste.prepend("<blockquote id=\"SDS-Category\" style=\"\"><h6>SDStudio-Category-✅ = <span class=\"content\">"+Category+"</span></h6></blockquote>");
// Descriptions
ForPaste.prepend("<blockquote id=\"SDS-Descriptions\" style=\"\"><h6>SDStudio-Descriptions-✅ = <span class=\"content\">"+Descriptions+"</span></h6></blockquote>");
// Название
ForPaste.prepend("<blockquote id=\"SDS-Title\" style=\"\"><h6>SDStudio-Title-✅ = <span class=\"content\">"+Title+"</span></h6></blockquote>");
ForPaste.prepend("<br><blockquote id=\"SDS-START\" style=\"\"><h6>START</h6></blockquote>");
});
}, 2000);
jQuery(document).ready(function($){
// Копируем слаг
// Объявляем слаг
var FullLink = $('[rel="canonical"]').attr('href');
console.log(FullLink);
var Title = $('title').text();
console.log(Title);
var Slug = FullLink.split('/')[3]+'.md';
console.log(Slug);
var Domain = FullLink.split('/')[2];
console.log(Domain);
var DataPublicate = $('[property="article:modified_time"]').attr('content').split('T')[0];
console.log(DataPublicate);
var Category = $('p#breadcrumbs').text().split('/')[1];
console.log(Category);
var PostImage = $('[property="og:image"]').attr('content');
console.log(PostImage);
//===========================
// Куда вставляем
// ⭐
// var ForPaste = $('body .entry-content[itemprop="text"]').first();
var ForPaste = $('article .elementor-widget-theme-post-content .elementor-widget-container').first();
ForPaste.prepend("<blockquote id=\"SDS-END\" style=\"\"><h6>END</h6></blockquote>");
// И выводим под h1 все что нам нужно
// Изображение записи
ForPaste.prepend("<blockquote id=\"SDS-PostImage\" style=\"\"><h6>SDStudio-PostImage-✅ = <span class=\"content\">"+PostImage+"</span></h6></blockquote>");
// Текущая ссылка
ForPaste.prepend("<blockquote id=\"SDS-NameFile\" style=\"\"><h6>SDStudio-FullLink-✅ = <span class=\"content\">"+FullLink+"</span></h6></blockquote>");
// Текущий домен сайта
ForPaste.prepend("<blockquote id=\"SDS-Domain\" style=\"\"><h6>SDStudio-Domain-✅ = <span class=\"content\">"+Domain+"</span></h6></blockquote>");
// Дата публикации
ForPaste.prepend("<blockquote id=\"SDS-DataPublicate\" style=\"\"><h6>SDStudio-DataPublicate-✅ = <span class=\"content\">"+DataPublicate+"</span></h6></blockquote>");
// Категория записи
ForPaste.prepend("<blockquote id=\"SDS-Category\" style=\"\"><h6>SDStudio-Category-✅ = <span class=\"content\">"+Category+"</span></h6></blockquote>");
// Название
ForPaste.prepend("<blockquote id=\"SDS-Title\" style=\"\"><h6>SDStudio-Title-✅ = <span class=\"content\">"+Title+"</span></h6></blockquote>");
ForPaste.prepend("<br><blockquote id=\"SDS-START\" style=\"\"><h6>START</h6></blockquote>");
// ===========================================================
// Копируем слаг для названия файла START
// ===========================================================
/*
* Copyright (c) 2016 Milan Kyncl
* Licensed under the MIT license.
*
* jquery.copy-to-clipboard plugin
* https://github.com/mmkyncl/jquery-copy-to-clipboard
*
*/
$.fn.CopyToClipboard = function() {
var textToCopy = false;
if(this.is('select') || this.is('textarea') || this.is('input')){
textToCopy = this.val();
}else {
textToCopy = this.text();
}
CopyToClipboard(textToCopy);
};
function CopyToClipboard( val ){
var hiddenClipboard = $('#_hiddenClipboard_');
if(!hiddenClipboard.length){
$('body').append('<textarea style="position:absolute;top: -9999px;" id="_hiddenClipboard_"></textarea>');
hiddenClipboard = $('#_hiddenClipboard_');
}
hiddenClipboard.html(val);
hiddenClipboard.select();
document.execCommand('copy');
document.getSelection().removeAllRanges();
}
$(function(){
$('[data-clipboard-target]').each(function(){
$(this).click(function() {
$($(this).data('clipboard-target')).CopyToClipboard();
});
});
$('[data-clipboard-text]').each(function(){
$(this).click(function(){
CopyToClipboard($(this).data('clipboard-text'));
});
});
});
$('#SDS-Slug span[data-clipboard-text]').each(function(){
CopyToClipboard($(this).data('clipboard-text'));
});
// Имя файла
ForPaste.before("<blockquote id=\"SDS-Slug\" style=\"\"><h6>SDStudio-FileName-✅ = <span class=\"content\" data-clipboard-text=\""+Slug+"\">"+Slug+"</span></h6></blockquote>");
// Копируеем имя файла
// $('#SDS-Slug span').firs().CopyToClipboard();
// $($('#SDS-Slug span').data('clipboard-target')).CopyToClipboard();
$('#SDS-Slug span[data-clipboard-text]').each(function(){
CopyToClipboard($(this).data('clipboard-text'));
});
// Меняем цвет текста
$('#SDS-Slug').css('color','rgb(143, 226, 143)');
// ===========================================================
// Копируем слаг для названия файла END
// ===========================================================
});