RK_utils

My First Scirpt

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

Bạn sẽ cần cài đặt một tiện ích mở rộng như Tampermonkey hoặc Violentmonkey để cài đặt kịch bản này.

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

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

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

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

(Tôi đã có Trình quản lý tập lệnh người dùng, hãy cài đặt nó!)

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.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name RK_utils
// @namespace Violentmonkey Scripts
// @description My First Scirpt
// @version 1.0.0
// @match <all_urls>
// @run-at document-end
// @grant none
// @icon              https://avatars1.githubusercontent.com/u/30018079?s=460&v=4
// ==/UserScript==
if(!window.log){
  window.log = (...m) => console.log(...m)
}
if(!window.dir){
  window.dir = (...m) => console.dir(...m)
}
if(!window.$){
  window.$ = el => {
   let els = document.querySelectorAll(el)
   if(els.length === 0){
     //console.warn('没有该名字的选择器(seletor), 烦请在检查一下拼写吧')
     return
   }else if (els.length === 1){
     els = document.querySelector(el)       
   }
    return els
  }
}

log('RK utils work well, Have a Happy Day~')