OS2.spielersuche: Unterschied zwischen den Versionen

Aus Online-Soccer-Wiki
Zur Navigation springen Zur Suche springen
(OS2.spielersuche, Version 0.1)
 
(Update Version 0.11 (angepaßt))
Zeile 30: Zeile 30:
<pre>
<pre>
// ==UserScript==
// ==UserScript==
// @name        Spielersuche
// @name        OS2.spielersuche
// @namespace    http://os.ongapo.com/
// @namespace    http://os.ongapo.com/
// @version      0.1
// @version      0.11
// @copyright    2016+
// @author      Michael Bertram
// @description  Transferdetails einblenden
// @description  Transferdetails einblenden
// @author      Michael Bertram
// @include      http*://os.ongapo.com/suchspieler.php
// @include      http*://os.ongapo.com/suchspieler.php
// @include      http*://www.os.ongapo.com/suchspieler.php
// @include      http*://online-soccer.eu/suchspieler.php
// @include      http*://www.online-soccer.eu/suchspieler.php
// @grant        none
// @grant        none
// ==/UserScript==
// ==/UserScript==


(function() {
// ECMAScript 6: Erlaubt 'const', 'let', ...
/* jshint esnext: true */
/* jshint moz: true */
 
function procSpielersucheTDetails() {
     'use strict';
     'use strict';
      
     const __ELEMENTS = document.getElementsByTagName('option');
    var Elements, thisElement;
 
    Elements = document.getElementsByTagName('option');
     for (let thisElement of __ELEMENTS) {
     for (var i = 0; i < Elements.length; i++) {
         if (thisElement.text === 'VLZ') {
        thisElement = Elements[i];
         if (thisElement.text == 'VLZ') {
             thisElement.value = 35;
             thisElement.value = 35;
             thisElement.text = 'TDetails';           
             thisElement.text = 'TDetails';
        } else {
            // nichts
            // alert("hello world");
         }
         }
     }  
     }
})();
}
 
procSpielersucheTDetails();
 
console.log("SCRIPT END");
</pre>
</pre>

Version vom 8. Oktober 2016, 02:28 Uhr

OS2.spielersuche
Dateiname OS2.spielersuche.user.js
Version 0.1
Autor Michael Bertram, RW Alkmaar ´67
Beschreibung Spielersuche-Script fuer Online Soccer 2.0
Webseiten
suchspieler.php Spielersuche
Funktionalität Transferdetails als Suchkriterium einblenden
Letzte Änderung 8.10.2016
// ==UserScript==
// @name         OS2.spielersuche
// @namespace    http://os.ongapo.com/
// @version      0.11
// @copyright    2016+
// @author       Michael Bertram
// @description  Transferdetails einblenden
// @include      http*://os.ongapo.com/suchspieler.php
// @include      http*://www.os.ongapo.com/suchspieler.php
// @include      http*://online-soccer.eu/suchspieler.php
// @include      http*://www.online-soccer.eu/suchspieler.php
// @grant        none
// ==/UserScript==

// ECMAScript 6: Erlaubt 'const', 'let', ...
/* jshint esnext: true */
/* jshint moz: true */

function procSpielersucheTDetails() {
    'use strict';
    const __ELEMENTS = document.getElementsByTagName('option');

    for (let thisElement of __ELEMENTS) {
        if (thisElement.text === 'VLZ') {
            thisElement.value = 35;
            thisElement.text = 'TDetails';
        }
    }
}

procSpielersucheTDetails();

console.log("SCRIPT END");