User:DreZhsh/common.js: Difference between revisions
From Test Wiki
Content deleted Content added
Created page with "→* * @author DreZhsh <https://fr.wikipedia.org/wiki/Discussion_utilisateur:DreZhsh> * @name ProxyCheckInBlock: var IPtocheck = mw.config.get('wgRelevantUserName') ; function reqListener () { var obj = JSON.parse(this.responseText); document.getElementById('proxy').innerHTML = obj.proxy; document.getElementById('vpn').innerHTML = obj.vpn; document.getElementById('tor').innerHTML = obj.tor; document.getElementById('fraud_score').innerHTML = obj.f..." |
No edit summary |
||
| Line 1: | Line 1: | ||
/** |
|||
* @author DreZhsh <https://fr.wikipedia.org/wiki/Discussion_utilisateur:DreZhsh> |
|||
* @name ProxyCheckInBlock |
|||
*/ |
|||
var IPtocheck = mw.config.get('wgRelevantUserName') ; |
var IPtocheck = mw.config.get('wgRelevantUserName') ; |
||
function reqListener () { |
function reqListener () { |
||
| Line 12: | Line 8: | ||
document.getElementById('fraud_score').innerHTML = obj.fraud_score; |
document.getElementById('fraud_score').innerHTML = obj.fraud_score; |
||
var result = document.form.firstChild.innerHTML |
var result = document.form.firstChild.innerHTML('' |
||
+ '<div align=center><big>Détection de Proxy/VPN</big></div><br>' |
+ '<div align=center><big>Détection de Proxy/VPN</big></div><br>' |
||
+ '<b>Proxy</b> : <div id="proxy"></div>' |
+ '<b>Proxy</b> : <div id="proxy"></div>' |
||
* '<b>VPN</b> : <div id="vpn"></div>' |
* '<b>VPN</b> : <div id="vpn"></div>' |
||
+ '<b>TOR</b> : <div id="tor"></div>' |
+ '<b>TOR</b> : <div id="tor"></div>' |
||
+ '<b>Score de fraude</b> : <div id="fraud_score"></div>'; |
+ '<b>Score de fraude</b> : <div id="fraud_score"></div>'); |
||