Javascript

ChatGPT 끼리 대화 하는 js 프로그램 New chat (openai.com) 에 접속 아래 코드를 복사해서 브라우저 콘솔(F12 -> Console)에 붙여넣고 실행(Enter) 프롬프트 창이 뜨면 주제(첫 질문)을 입력 document.body.removeChild(document.body.firstChild) document.body.innerHTML = `<table> <tr> <td><iframe style = 'width:49vw;height:100vh;border-right:2px solid blue;' id = 'gptchat1' src = 'https://chat.openai.com/chat/36327d80-e9a4-4cd2-a4e7-agptb...
https://gist.github.com/fronteer-kr/14d7f779d52a21ac2f16 를 참고하여 php버전을 만듬. 백업용으로 이곳에 기록해둠. PHP 소스코드 class ConvGridGps { const RE = 6371.00877; // 지구 반경(km) const GRID = 5.0; // 격자 간격(km) const SLAT1 = 30.0; // 투영 위도1(degree) const SLAT2 = 60.0; // 투영 위도2(degree) const OLON = 126.0; // 기준점 경도(degree) const OLAT = 38.0; // 기준점 위도(degree) const XO = 43; // 기준점 X좌표(GRID) const YO = 136; // 기1준점 Y좌표(GR...
브라우저 콘솔창에 아래 코드 실행 한 화면에 보여지는 사진을 삭제 많은 사진이 보여지면 삭제할 수 있는 사진도 많아짐 (브라우저 화면 비율 축소) // Selector for Images and buttons const ELEMENT_SELECTORS = { checkboxClass: '.ckGgle', deleteButton: 'button[aria-label="삭제"]', //confirmationButton: '#yDmH0d > button.VfPpkd-LgbsSe.VfPpkd-LgbsSe-OWXEXe-k8QpJ.nCP5yc.AjY5Oe.qfvgSe.kHssdc.HvOprf', confirmationButton: 'div.XfpsVe.J9fJmf > button.VfPpkd...
온라인 포토샵(photopea)의 무료 계정에서 광고를 제거하는 방법 광고 제거 전 오른쪽에 광고 배너가 위치하기 때문에 이용자에게 왼쪽의 작업 공간이 협소해지는 불편함을 제공하여 유료 사용을 독려하고 있다.. 광고 제거 후 광고가 사라져서 작업공간이 넓어짐 광고 제거 적용 방법(Chrome, Edge) 개발자도구로 진입해서 아래 순서로 진행 (새코드로 등록해두면 이후엔 실행만 해주면 됨) 적용할 JS 코드 var _photopea_style = "<style>"; _photopea_style += ".app > div:nth-of-type(2){display:none !important}"; _photopea_style += ".app > ...
PC,Mobile 웹 브라우저에서 서명을 받아 저장 가능한 프로그램 설명 인터페이스 HTML 코드 서명을 위한 캔버스와 동작을 위한 버튼 <!-- 서명 공간 --> <div> <h3>서명1</h3> <div class="canvas-draw-box"> <div class="canvas-draw-base" data-id="canvas_name1"></div> <div class="canvas-draw-pad-box"> <canvas id="canvas_name1" class="canvas-draw-pad">1...