RK_utils

My First Scirpt

Du musst eine Erweiterung wie Tampermonkey, Greasemonkey oder Violentmonkey installieren, um dieses Skript zu installieren.

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 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.

Sie müssten eine Skript Manager Erweiterung installieren damit sie dieses Skript installieren können

(Ich habe schon ein Skript Manager, Lass mich es installieren!)

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