Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "chrome-extension-boilerplate-react-vite",
"version": "1.6.2",
"version": "1.6.3",
"description": "티스토리 확장프로그램 StoryHelper",
"license": "MIT",
"repository": {
Expand Down
8 changes: 8 additions & 0 deletions public/_locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,14 @@
"description": "SEO optimized message",
"message": "Search engine optimized."
},
"seo_checking_tooltip": {
"description": "SEO checking tooltip",
"message": "Checking SEO..."
},
"seo_verifying": {
"description": "SEO verifying message",
"message": "Verifying search engine optimization..."
},
"review_title": {
"description": "Review prompt title",
"message": "Wow! You've successfully optimized SEO 5 times!"
Expand Down
8 changes: 8 additions & 0 deletions public/_locales/ko/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,14 @@
"description": "SEO 최적화 완료 메시지",
"message": "검색엔진 최적화가 되어있습니다."
},
"seo_checking_tooltip": {
"description": "SEO 체크 중 툴팁",
"message": "SEO 체크 중 입니다.."
},
"seo_verifying": {
"description": "SEO 검증 중 메시지",
"message": "검색엔진 최적화 검증 중..."
},
"review_title": {
"description": "리뷰 프롬프트 제목",
"message": "와! SEO 최적화를 5번 성공했어요!"
Expand Down
3 changes: 0 additions & 3 deletions src/pages/content/injected/altTager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@ async function altTager() {
const result = await chrome.storage.local.get('func_1');
if (typeof result.func_1 === 'boolean') {
if (!result.func_1) {
console.log('altTager 기능이 비활성화 되어있습니다.');
return;
} else {
console.log('altTager 기능이 활성화 되어있습니다.');
}
}
let altTag = '';
Expand Down
8 changes: 2 additions & 6 deletions src/pages/content/injected/checkSEO.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,13 @@ import { create$, getEditorDocument } from '@root/utils/dom/utilDOM';
import { showReviewPrompt, shouldShowReviewPrompt } from '@pages/content/injected/reviewPrompt';

const checkSEO = async () => {
// Track if we've already counted success in this session
let hasCountedSuccessThisSession = false;
let hasShownReviewPromptThisSession = false;
const result = await chrome.storage.local.get('func_4');

if (typeof result.func_4 === 'boolean') {
if (!result.func_4) {
console.log('SEO 체크 기능이 비활성화 되어있습니다.');
return;
} else {
console.log('SEO 체크 기능이 활성화 되어있습니다.');
}
}

Expand Down Expand Up @@ -54,9 +50,9 @@ const checkSEO = async () => {

const alertBox = create$('div', {
style: alertBoxStyle,
innerHTML: `${OPTIMIZED_SVG} 검색엔진 최적화가 되어있습니다.`,
innerHTML: `${OPTIMIZED_SVG} ${chrome.i18n.getMessage('seo_optimized')}`,
});
alertBox.title = 'SEO 체크 중 입니다..';
alertBox.title = chrome.i18n.getMessage('seo_checking_tooltip');
document.body.appendChild(alertBox);

const checkSEOOptimize = async () => {
Expand Down
3 changes: 0 additions & 3 deletions src/pages/content/injected/imageSize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,7 @@ async function imageSize() {
const result = await chrome.storage.local.get('func_2');
if (typeof result.func_2 === 'boolean') {
if (!result.func_2) {
console.log('이미지 사이징 기능이 비활성화 되어있습니다.');
return;
} else {
console.log('이미지 사이징 기능이 활성화 되어있습니다.');
}
}
const menu = document.body.querySelector('#mceu_18');
Expand Down
3 changes: 0 additions & 3 deletions src/pages/content/injected/keymap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,7 @@ async function keyMapping() {
const result = await chrome.storage.local.get('func_0');
if (typeof result.func_0 === 'boolean') {
if (!result.func_0) {
console.log(chrome.i18n.getMessage('error_shortcut_disabled'));
return;
} else {
console.log(chrome.i18n.getMessage('error_shortcut_enabled'));
}
}

Expand Down
3 changes: 0 additions & 3 deletions src/pages/content/injected/textCounter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@ async function textCounter() {
const result = await chrome.storage.local.get('func_3');
if (typeof result.func_3 === 'boolean') {
if (!result.func_3) {
console.log('글자 수 세기 기능이 비활성화 되어있습니다.');
return;
} else {
console.log('글자 수 세기 기능이 활성화 되어있습니다.');
}
}

Expand Down
Loading