MCPcopy Create free account
hub / github.com/MALSync/MALSync / cdn

Method cdn

src/pages-sync/syncPage.ts:1011–1029  ·  view source on GitHub ↗
(type: 'default' | 'captcha' | 'blocked' = 'default')

Source from the content-addressed store, hash-verified

1009 }
1010
1011 cdn(type: 'default' | 'captcha' | 'blocked' = 'default') {
1012 api.storage.addStyle(`
1013 .bubbles {
1014 display: none !important;
1015 }
1016 div#cf-content:before {
1017 content: '';
1018 background-image: url(https://raw.githubusercontent.com/MALSync/MALSync/master/assets/icons/icon128.png);
1019 height: 64px;
1020 width: 64px;
1021 display: block;
1022 background-size: cover;
1023 animation: rotate 3s linear infinite;
1024 background-color: #251e2b;
1025 border-radius: 50%;
1026 }
1027 @keyframes rotate{ to{ transform: rotate(360deg); } }
1028 `);
1029 }
1030
1031 getOffset() {
1032 if (this.searchObj && this.searchObj.getOffset()) {

Callers 3

initMethod · 0.95
initFunction · 0.80
initFunction · 0.80

Calls 1

addStyleMethod · 0.80

Tested by

no test coverage detected