NikeTV

一键复制影评全文

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

You will need to install an extension such as Tampermonkey to install this script.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==UserScript==
// @name         NikeTV
// @namespace    http://tampermonkey.net/
// @version      0.1
// @author       晚枫QQ237832960
// @description  一键复制影评全文
// @license      Creative Commons
// @match        https://www.ajeee.com/play/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    // z-index:1 防止全屏下显示按钮,

    var div = document.createElement("a")
    div.innerHTML = "解析"
    div.style.cssText="color: white;\n" +
        "    text-decoration: none;\n" +
        "    width: 150px;\n" +
        "    height: 40px;\n" +
        "    line-height: 40px;\n" +
        "    text-align: center;\n" +
        "    background: transparent;\n" +
        "    border: 1px solid #d2691e;\n" +
        "    font-family: Microsoft soft;\n" +
        "    border-radius: 3px;\n" +
        "    color:#ff7f50;\n" +
        "    position: fixed;\n" +
        "    top: 50%;\n" +
        "    z-index:999;\n" +
        "    left: 13%;\n" +
        "    cursor: pointer;"
    div.setAttribute("href",document.getElementsByTagName('iframe')[2].src,"target","_blank")
    div.setAttribute("target","_blank")
    document.body.appendChild(div)

    })();