Skip to content

Commit

Permalink
chore: update from latest code
Browse files Browse the repository at this point in the history
  • Loading branch information
Arylo committed Nov 26, 2024
1 parent 95da665 commit 6c4d717
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions packages/gm-polyfill/src/GM_addStyle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
* @param {string} cssContent
*/
const addStyle = function GM_addStyle(cssContent: any) {
if ((window as any).GM_addStyle) return (window as any).GM_addStyle(cssContent)
const head = document.getElementsByTagName('head')[0]
if (head) {
const styleElement = document.createElement('style')
Expand Down
1 change: 1 addition & 0 deletions src/monkey/gitlab-enhance/settings/ci_cd.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import GM_addStyle from 'gm-polyfill/dist/GM_addStyle';
import css from './style.css';

if (location.pathname.endsWith('/-/settings/ci_cd')) {
Expand Down
5 changes: 1 addition & 4 deletions src/monkey/gitlab-settings-max-size/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
import GM_addStyle from 'gm-polyfill/dist/GM_addStyle';
import css from './style.css';

setTimeout(() => GM_addStyle(css), 25)
import '../gitlab-enhance/settings/ci_cd'

export {}

0 comments on commit 6c4d717

Please sign in to comment.