FilmWebTitlesFormatAndCopy

Prosty skrypt do sformatowania i przygotowania tytułu filmu do skopiowania - używam do spójnego nazywania filmów w swojej kolekcji. / Simple script, to format and prepare to copy title of movie.

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name        FilmWebTitlesFormatAndCopy
// @namespace   jahuu.info
// @author      Jahuu
// @description Prosty skrypt do sformatowania i przygotowania tytułu filmu do skopiowania - używam do spójnego nazywania filmów w swojej kolekcji. / Simple script, to format and prepare to copy title of movie.
// @include     *filmweb.pl*
// @version     2.0
// @grant       none
// ==/UserScript==
// Data aktualizacji / Update date 23.06.2021
// Uproszczenie i dostosowanie do obecnego modelu DOM / Simplification and adaptation to the current DOM model

var elements = document.getElementsByClassName('filmCoverSection__title text--uppercase ');
var output = document.getElementsByClassName("page__container filmCoverSection__ratings afterPremiere");

var Title = elements[0].childNodes[0].innerHTML;
var date = document.getElementsByClassName('filmCoverSection__year')[0].innerHTML;
var Rating = document.getElementsByClassName('filmRating__rateValue')[0].innerHTML;

var valueName='"'+Title+' '+'('+date+')'+'['+Rating+']"';
var DivCustom = '<input type="text" size="'+valueName.length+'" style="background-color:Black; border:none;" id="divcustom" value='+valueName+'>';

output[0].innerHTML = output[0].innerHTML + DivCustom;

document.getElementById("divcustom").select();