Base

try to take over the world!

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey, το Greasemonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

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

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Userscripts για να εγκαταστήσετε αυτόν τον κώδικα.

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

Θα χρειαστεί να εγκαταστήσετε μια επέκταση διαχείρισης κώδικα χρήστη για να εγκαταστήσετε αυτόν τον κώδικα.

(Έχω ήδη έναν διαχειριστή κώδικα χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Έχω ήδη έναν διαχειριστή στυλ χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

// ==UserScript==
// @name         Base
// @namespace    Base VN
// @version      0.3
// @description  try to take over the world!
// @author       Hofang Hari
// @match        https://request.base.vn/?request=*
// @grant        none
// ==/UserScript==

(function() {
    var mvv,tkh,po,info,gh;
  'use strict';
//div[@class='list -formdata']//div[2].-double div.page.-left:nth-child(2) div.display.-job div.section.-main:nth-child(1) div:nth-child(2) div.list.-formdata:nth-child(7) div.li.-with-icon:nth-child(2) > div.value
    // Your code here...
     setTimeout(
         function(){
             mvv = document.querySelectorAll(".value")[4].innerHTML;
             tkh = document.querySelectorAll(".value")[5].innerHTML;
             po = document.querySelectorAll(".value")[6].innerHTML;
             gh = document.querySelectorAll(".value")[11].innerHTML;
             info = "<b>MVV:</b> " + mvv +"\n<br><b>Tên KH: </b>" + tkh + "\n<br><b>PO:</b> " + po + "\n<br><b>Giao hang :</b>"+ gh;
             //mvv.execCommand("copy");
             copyStringToClipboard(info);
             //alert(info);
         },1000);
    function copyStringToClipboard (str) {
   // Create new element
   var el = document.createElement('textarea');
   // Set value (string to be copied)
   el.value = str;
   // Set non-editable to avoid focus and move outside of view
   el.setAttribute('readonly', '');
   el.style = {position: 'absolute', left: '-9999px'};
   document.body.appendChild(el);
   // Select text inside element
   el.select();
   // Copy text to clipboard
   document.execCommand('copy');
   // Remove temporary element
   document.body.removeChild(el);
}
})();