Created
September 4, 2023 16:21
-
-
Save lbenedix/fb87e478cab5d2a258f48f9336a9b516 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name media.ccc title | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Move media.ccc.de to the back | |
// @author [email protected] | |
// @match https://media.ccc.de/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=media.ccc.de | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
console.log('fix title'); | |
let title = document.querySelector('title'); | |
let array = title.textContent.replaceAll('\n','').split(' -'); | |
array.push(array.splice(0, 1)[0]); | |
title.textContent = array.join(' - '); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment