您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
corrige les problèmes d'affichage lors de la correction de controles sur le site campus.promotion-sociale.be
// ==UserScript== // @name Campus.ieps // @namespace http://www.gann.be/ // @version 0.6.2 // @description corrige les problèmes d'affichage lors de la correction de controles sur le site campus.promotion-sociale.be // @author Morgan Schaefer www.gann.be // @match *://campus.promotion-sociale.be/* // @grant none // ==/UserScript== (function() { 'use strict'; function getMeta(metaName) { const metas = document.getElementsByTagName('meta'); for (let i = 0; i < metas.length; i++) { if (metas[i].getAttribute('name') === metaName) { return metas[i].getAttribute('content'); } } return ''; } let keywords = getMeta('keywords'); let isItMoodle = keywords.search("moodle"); let tableauDeBord = keywords.search("Tableau de bord"); let acceuil = keywords.search("Campus Virtuel IEPS Fléron: Se connecter sur le site"); if((isItMoodle >= 0)&&(tableauDeBord<0)&&(acceuil<0)){ console.log("this is a moodle based website"); function addGlobalStyle(css) { var head, style; head = document.getElementsByTagName('head')[0]; if (!head) { return; } style = document.createElement('style'); style.type = 'text/css'; style.innerHTML = css; head.appendChild(style); } addGlobalStyle('.jsenabled .collapsibleregion{ overflow: visible !important; }'); addGlobalStyle('.container-fluid{ width: auto !important; }'); addGlobalStyle('@media (min-width: 768px) .col-md-9 { max-width: 100% !important;}'); addGlobalStyle('.text-nowrap { white-space: normal !important;}'); } else{ console.log("this is not a moodle based website or it is an exlued page"); } })();