您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Zeigt das Fanansehen auf der Fussballcup-Startseite an.
当前为
- // ==UserScript==
- // @name Fanansehen
- // @include https://fussballcup.de/*
- // @version 0.1.4
- // @description Zeigt das Fanansehen auf der Fussballcup-Startseite an.
- // @copyright Klaid, 2013 - edited by mot33, 2018
- // @grant GM_xmlhttpRequest
- // @namespace https://greasyfork.org/users/83290
- // ==/UserScript==
- window.setTimeout(function() { change(); }, 2500);
- window.setInterval(function() { change(); }, 5000);
- function change()
- {
- if(!document.getElementById("ansehen"))
- {
- document.getElementById("clubinfocard").innerHTML += "<div id='ansehen'></div>";
- }
- GM_xmlhttpRequest({
- method: "GET",
- url: "http://fussballcup.de/index.php?w=301&area=user&module=publicrelations&action=index#/index.php?w=301&area=user&module=publicrelations&action=index&_=*",
- headers: {"Content-Type": "application/x-www-form-urlencoded"},
- onload: function(responseDetails){
- var inhalt = responseDetails.responseText;
- var position = inhalt.indexOf('Fanansehen');
- var ansehen_site = inhalt.substr(position, 50);
- ansehen = ansehen_site.match(/[0-9]{1,10}/);
- if(ansehen >= 90 && ansehen < 98)
- {
- ansehen = "<font color='yellow'>"+ String(ansehen) +"%</font>";
- }
- else if(ansehen < 90)
- {
- ansehen = "<font color='red'>"+ String(ansehen) +"%</font>";
- }
- else
- {
- ansehen = String(ansehen) +"%";
- }
- document.getElementById("ansehen").innerHTML = "<b style='font-size: 13px; margin-left: 6px'>Fanansehen: "+ String(ansehen) +"</b>";
- }
- });
- }