Greasy Fork

Shined up real nice.

Tilda.cc Add Recid

try to take over the world!

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// ==UserScript==
// @name         Tilda.cc Add Recid
// @namespace    https://roman-kosov.ru
// @version      0.2
// @description  try to take over the world!
// @author       Roman Kosov
// @copyright    2018, Roman Kosov (https://greasyfork.org/users/167647, https://openuserjs.org/users/roman-kosov)
// @match        https://tilda.cc/page/?*
// @include      https://tilda.cc/page/?*
// @license      MIT
// ==/UserScript==
(function () {
  'use strict';
  $('div.record').each(function (index) {
    var recordid = $(this).attr("recordid");
    var recid = "#rec" + recordid;
    $(this).children("div#mainleft").children("div")
      .append("<div class=\"tp-record-edit-icons-left__one-right-space\"></div>" +
        "<div class=\"tp-record-edit-icons-left__one\">" +
        "<div class=\"tp-record-edit-icons-left__item-title\"><span class=\"tp-record-edit-icons-left__item-tplcod\">" +
        recid +
        "</span></div>" +
        "</div>");
    $("#record" + recordid + " > div:nth-child(1):not(.mainright)").appendTo($(this)
      .children("div#mainleft").children("div")).removeClass().css("padding", "7px 15px");
  });
})();