对github面试题顺序进行倒置

try to take over the world!

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

// ==UserScript==
// @name         对github面试题顺序进行倒置
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  try to take over the world!
// @author       You
// @match        https://github.com/haizlin/fe-interview/blob/master/lib/**
// @grant        none
// @require    http://code.jquery.com/jquery-1.11.0.min.js
// ==/UserScript==

(function() {
  'use strict'

  const waitTime = 500;//执行等待时间,单位ms,如果你网速比较慢就调高点

  setTimeout(() => {
    const uls = $('article.markdown-body ul')
    uls.each(function() {
      const ul = $(this)
      const lis = $(this).children()
      ul.empty()
      lis.each(function() {
        const li = $(this);
        ul.prepend(li)
      })
    })
  }, waitTime)
})()

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址