您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
Checks periscope stream for fakes
// ==UserScript== // @name Periscope fake check // @namespace https://volafile.org/user/saltboy // @version 1.0 // @description Checks periscope stream for fakes // @author saltboy // @match https://www.pscp.tv/*/* // @grant GM_addStyle // ==/UserScript== (function() { 'use strict'; var source = document.getElementsByName('twitter:text:broadcast_source')[0].getAttribute('content'); if (source === 'producer') { createFakeAlert(); } else { createInfoBox(); } function createFakeAlert() { var box = document.createElement('div'); box.id = 'AlertBox'; box.textContent = "Fake detected: The source of this video is 'producer', so they might be using a video. "; document.body.appendChild( box ); } function createInfoBox() { var box = document.createElement('div'); box.id = 'InfoBox'; box.textContent = source; document.body.appendChild( box ); } GM_addStyle(` #AlertBox { color: #fff; border: 2px solid #f00; position: absolute; top: 78px; right: 8px; max-width: 400px; background-color: rgba(255, 255, 255, 0.2); border-radius: 30px; min-height: 32px; padding: 6px 20px; font-size: 14px; } #InfoBox { color: #fff; position: absolute; top: 78px; right: 8px; max-width: 400px; background-color: rgba(255, 255, 255, 0.2); border-radius: 30px; min-height: 32px; padding: 6px 17px; font-size: 14px; } `); })();