vbcs

Edit UI https://my.jia.360.cn/web/myList

目前為 2019-11-11 提交的版本,檢視 最新版本

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         vbcs
// @namespace
// @version      1.1
// @description  Edit UI https://my.jia.360.cn/web/myList
// @author       Paul Nguyen
// @grant        none

// @include        /^https?://trading\.vcbs\.com\.vn/.*$/

// @namespace vbcs
// ==/UserScript==

$(function() {
    // @require         http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js
    var stype = '<style>';
    stype += ' #SHB_TLChart {   display: none; }  ';
    stype += ' #priceBoardView > div > table > tbody > tr > td:nth-child(2) {   display: none; }  ';
    stype += ' div.headerMenu {   display: none; }  ';
    stype += ' div#accountBar {   display: none; }  ';

    stype += ' div.headerTop {   display: none; }  ';
    stype += ' body, table, tr, td, div, input, select, .dxgvHSDC { background-color: rgb(48, 48, 47)  !important; background: none; }  ';
    stype += ' body, table, tr, td, div, input, span, select { color: #ccc  !important; }  ';
    stype += ' #Grid_Currenttock_DXMainTable td { color: #ccc  !important; }  ';
    stype += ' #NormalOrderGrid_DXMainTable td { color: #ccc  !important; }  ';
    stype += ' #OrderList_DXMainTable td { color: #ccc  !important; }  ';
    stype += ' #ConOrderList_DXMainTable td { color: #ccc  !important; }  ';
    stype += ' .tabOrderActive { border-bottom: 3px #505050 solid !important; }  ';
    stype += ' #Grid_Currenttock_DXFooterTable {   display: none; }  ';
    stype += ' .choose_pages { border: #505050 thin solid !important; }  ';
    stype += ' input[src="/OnlineTrading/Content/Images/refresh3.png"] { display: none; }  ';

    stype += ' #SplitterFooterSub > div:nth-child(1) > div.form_info > div {   display: none; }  ';
    stype += ' #tblOne > tbody > tr {   display: none; }  ';
    stype += ' #tblOne > tbody > tr:nth-child(7),  #tblOne > tbody > tr:nth-child(8), #tblOne > tbody > tr:nth-child(9), #tblOne > tbody > tr:nth-child(4) {   display: table-row !important; }  ';

    stype += ' #tblSymbolChart { height: unset !important; }  ';
    stype += ' #priceBoardView > div > table > tbody > tr > td:nth-child(1) { width: unset !important; }  ';

    stype += ' #NormalOrderGrid_col4  {   display: none; }  '; // so luu ky
    stype += ' table#NormalOrderGrid_DXMainTable tr.dxgvDataRow_Metropolis > td:nth-child(5) {   display: none; }  ';
    stype += ' #NormalOrderGrid_col5  {   display: none; }  '; // Tieu Khoan
    stype += ' table#NormalOrderGrid_DXMainTable tr.dxgvDataRow_Metropolis > td:nth-child(6) {   display: none; }  ';
    stype += ' #NormalOrderGrid_col11  {   display: none; }  '; //Gia tri
    stype += ' table#NormalOrderGrid_DXMainTable tr.dxgvDataRow_Metropolis > td:nth-child(6) {   display: none; }  ';

    stype += '<style>';
    $("body").prepend(stype);

    waitForKeyElements ( "#divStockTrans", setFocusAddressInput );

});

function setFocusAddressInput (jNode) {
    //jNode.click();
    $("#priceBoardView > div > table > tbody > tr > td:nth-child(3) > #divStockTrans").appendTo("#priceBoardView > div > table > tbody > tr > td:nth-child(1)");
}

// @require     https://gist.github.com/raw/2625891/waitForKeyElements.js
function waitForKeyElements ( selectorTxt, actionFunction, bWaitOnce, iframeSelector ) { var targetNodes, btargetsFound; if (typeof iframeSelector == "undefined") targetNodes = $(selectorTxt); else targetNodes = $(iframeSelector).contents () .find (selectorTxt); if (targetNodes && targetNodes.length > 0) { btargetsFound = true; targetNodes.each ( function () { var jThis = $(this); var alreadyFound = jThis.data ('alreadyFound') || false;  if (!alreadyFound) { var cancelFound = actionFunction (jThis); if (cancelFound) btargetsFound = false; else jThis.data ('alreadyFound', true); } } ); } else { btargetsFound = false; } var controlObj = waitForKeyElements.controlObj || {}; var controlKey = selectorTxt.replace (/[^\w]/g, "_"); var timeControl = controlObj [controlKey]; if (btargetsFound && bWaitOnce && timeControl) { clearInterval (timeControl); delete controlObj [controlKey]; } else { if ( ! timeControl) { timeControl = setInterval ( function () { waitForKeyElements ( selectorTxt, actionFunction, bWaitOnce, iframeSelector ); }, 300 ); controlObj [controlKey] = timeControl; } } waitForKeyElements.controlObj = controlObj; }