Bitcoin Forum
May 09, 2024, 09:19:26 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: BTC-e Ностальгификатор (юзерскрипт)  (Read 476 times)
DEMENTOR (OP)
Full Member
***
Offline Offline

Activity: 342
Merit: 110


Contemplative


View Profile
September 04, 2017, 11:48:01 AM
Last edit: September 08, 2017, 05:04:19 AM by DEMENTOR
 #1

Все устали ждать и напряжены. Срачи вспыхивают то тут, то там.

Предлагаю немного расслабиться и вспомнить как было  Wink

BTC-e Nostalgier v0.1

Скрипт замещает нули в некоторых курсах валют на странице https://btc-e.nz/exchange
И каждую секунду немного (рэндомно) меняет значение

Написан на простейшем JS.

Для работы требуются: Tampermonkey (для Chrome) или Greasemonkey (для Firefox)

Особо пугливых просьба даже не пытаться заходить в тему =)))

Если кто-то хочет довбивать остальные валютные пары (span id="last...") или подгрузку реальных курсов (а надо ли?) — милости просим! =)

Вот код:
Quote
// ==UserScript==
// @name         BTC-e Nostalgier
// @namespace    BTC-e Nostalgier
// @version      0.1
// @description  BTC-e flashback for you!
// @icon         http://btc-e.nz/favicon.ico
// @author       You
// @match        https://btc-e.nz/exchange
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    setInterval(function(){
        //BTCUSD
        document.getElementById("last1").innerHTML = "445" + ((Math.random()*9).toFixed(2));
        //BTCRUR
        document.getElementById("last17").innerHTML = "24545" + ((Math.random()*9).toFixed(2));
        //BTCEUR
        document.getElementById("last19").innerHTML = "373" + ((Math.random()*9).toFixed(2));
        //LTCBTC
        document.getElementById("last10").innerHTML = ((Math.random()*0.09).toFixed(2));
        //LTCUSD
        document.getElementById("last14").innerHTML = ((Math.random()*99).toFixed(2));
        //LTCRUR
        document.getElementById("last21").innerHTML = ((Math.random()*5000).toFixed(2));
        //LTCEUR
        document.getElementById("last27").innerHTML = ((Math.random()*79).toFixed(2));
        //other
        document.getElementById("last13").innerHTML = ((Math.random()*0.09).toFixed(2));
        document.getElementById("last28").innerHTML = ((Math.random()*9).toFixed(2));
        document.getElementById("last22").innerHTML = ((Math.random()*0.09).toFixed(2));
        document.getElementById("last29").innerHTML = ((Math.random()*9).toFixed(2));
        //etc...
    },1000);
})();


"In Cryptography We Trust"
1715246366
Hero Member
*
Offline Offline

Posts: 1715246366

View Profile Personal Message (Offline)

Ignore
1715246366
Reply with quote  #2

1715246366
Report to moderator
1715246366
Hero Member
*
Offline Offline

Posts: 1715246366

View Profile Personal Message (Offline)

Ignore
1715246366
Reply with quote  #2

1715246366
Report to moderator
1715246366
Hero Member
*
Offline Offline

Posts: 1715246366

View Profile Personal Message (Offline)

Ignore
1715246366
Reply with quote  #2

1715246366
Report to moderator
"This isn't the kind of software where we can leave so many unresolved bugs that we need a tracker for them." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715246366
Hero Member
*
Offline Offline

Posts: 1715246366

View Profile Personal Message (Offline)

Ignore
1715246366
Reply with quote  #2

1715246366
Report to moderator
1715246366
Hero Member
*
Offline Offline

Posts: 1715246366

View Profile Personal Message (Offline)

Ignore
1715246366
Reply with quote  #2

1715246366
Report to moderator
jsxcryptoman
Full Member
***
Offline Offline

Activity: 350
Merit: 103



View Profile
September 04, 2017, 12:07:56 PM
 #2

Бесконечно можно смотреть на 3 вещи:
1)на горящий огонь
2)на льющуюся воду
3)на свой акк на бывшей бирже btc-e.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!