RK_utils

My First Scirpt

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==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~')