qwiklabs.com - hide timer

Hides distracting timer sidebar and gives you more reading space.

09.01.2021 itibariyledir. En son verisyonu görün.

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Userscripts gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

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

Bu komut dosyasını yüklemek için bir kullanıcı komut dosyası yöneticisi uzantısı yüklemeniz gerekecek.

(Zaten bir kullanıcı komut dosyası yöneticim var, kurmama izin verin!)

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.

(Zateb bir user-style yöneticim var, yükleyeyim!)

// ==UserScript==
// @name        qwiklabs.com - hide timer
// @namespace   Violentmonkey Scripts
// @match       https://*.qwiklabs.com/*
// @grant       none
// @version     1.0
// @author      Gerry
// @description Hides distracting timer sidebar and gives you more reading space.
// ==/UserScript==
 
var container = document.createElement('div');
var title = document.createElement('b');
title.innerHTML = "Toggle: ";
container.appendChild(title);

var outline_toggle = document.createElement('a');
outline_toggle.innerHTML = "[outline] ";
outline_toggle.href = "#"
outline_toggle.onclick = function() {
  var outline_drawer = document.querySelector("#outline-drawer");
  var inside_outline_drawer = outline_drawer.querySelector(".js-lab-content-outline.lab-content__outline");
  if(!window.outline_hidden) {
    window.outline_hidden = true;
    outline_drawer.setAttribute('width', "50");
    inside_outline_drawer.setAttribute('style', 'display: none');
  }else{
    window.outline_hidden = false;
    outline_drawer.setAttribute('width', "320");
    inside_outline_drawer.setAttribute('style', 'display: block');
  }
}
container.appendChild(outline_toggle)


var timer_toggle = document.createElement('a');
timer_toggle.innerHTML = "[timer] ";
timer_toggle.href = "#"
timer_toggle.onclick = function() {
  document.querySelector("#control-panel-drawer").toggle();
}
container.appendChild(timer_toggle)

container.appendChild(document.createElement('br'))

document.querySelector(".lab-preamble__details.subtitle-headline-1").prepend(container);

document.querySelector("#control-panel-drawer").toggle();