Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Wikipédia langues
- // @namespace wikipedia
- // @include http://*.wikipedia.org/*
- // @include https://*.wikipedia.org/*
- // @version 1
- // @grant none
- // ==/UserScript==
- //injectCSS('#p-lang a[lang="fr"], #p-lang a[lang="en"] { font-weight: bold!important; color:red!important; }');
- 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('#p-lang a[lang="fr"], #p-lang a[lang="en"] { font-weight: bold!important; color:red!important; }');
Add Comment
Please, Sign In to add comment