-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathgph_TURBO.user.js
29 lines (27 loc) · 1.19 KB
/
gph_TURBO.user.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// ==UserScript==
// @name gph. TURBO
// @version 2022.8.26.127
// @description Display menu, crashed by tracking blockers
// @namespace https://github.com/jesus2099/konami-command
// @supportURL https://github.com/jesus2099/konami-command/labels/gph_TURBO
// @downloadURL https://github.com/jesus2099/konami-command/raw/master/gph_TURBO.user.js
// @author jesus2099
// @licence CC-BY-NC-SA-4.0; https://creativecommons.org/licenses/by-nc-sa/4.0/
// @licence GPL-3.0-or-later; http://www.gnu.org/licenses/gpl-3.0.txt
// @since 2022-08-26
// @grant none
// @include /^https?://gph?\.[acefinr]{9}\.fr//
// @run-at document-ready
// ==/UserScript==
"use strict";
/* global LazyLoadingNavigation */ // eslint no-undef exception
if (!document.querySelector("nav > ul.menu_level_1")) {
// Call menu if absent
// When tracking blockers crash DOMContentLoaded handler
if (typeof LazyLoadingNavigation === "function") {
var myLazyLoadingNavigation = new LazyLoadingNavigation();
myLazyLoadingNavigation.sendRequest("/FR/fr/local/include/menu_bar.jsp", myLazyLoadingNavigation.showNav);
} else {
console.warn("LazyLoadingNavigation impossible");
}
}