Greasy Fork

LingQ with better UX

try to take over the world!

当前为 2019-10-31 提交的版本,查看 最新版本

// ==UserScript==
// @name         LingQ with better UX
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  try to take over the world!
// @author       ibn_rushd
// @match        https://www.lingq.com/*
// @grant        none
// ==/UserScript==

addEventListener('load', function () {
    //make sure the last course you did before completing is the first one in the course.
    var course = document.querySelector('.lessons-wrap .lesson-list')
    var total_completed = document.querySelectorAll('.completed').length;
    var current_lesson = course.childNodes[total_completed];
    course.insertBefore(current_lesson, course.firstChild);
});