Skip to content

Instantly share code, notes, and snippets.

@leonardofaria
Created May 11, 2025 23:07
Show Gist options
  • Save leonardofaria/a024eea9e57fb24692a22a92bfc953a0 to your computer and use it in GitHub Desktop.
Save leonardofaria/a024eea9e57fb24692a22a92bfc953a0 to your computer and use it in GitHub Desktop.
GitHub Actions - Light theme
// ==UserScript==
// @name GitHub Actions - Light theme
// @namespace http://tampermonkey.net/
// @version 2024-06-23
// @description Remove data-dark-theme attributes from GitHub Actions console
// @author masayoshi haruta
// @match https://github.com/*/*/actions/runs/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=github.com
// @grant none
// ==/UserScript==
(function() {
'use strict';
// Function to remove data-dark-theme attribute from all elements
function removeDataDarkThemeAttributes() {
// Get all elements with the data-dark-theme attribute
var elements = document.querySelectorAll('[data-dark-theme]');
// Loop through the elements and remove the attribute
elements.forEach(function(element) {
element.removeAttribute('data-dark-theme');
});
}
// Run the function once the DOM is fully loaded
document.addEventListener('DOMContentLoaded', removeDataDarkThemeAttributes);
removeDataDarkThemeAttributes()
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment