@ -0,0 +1,8 @@ |
|||||||
|
#!/bin/bash |
||||||
|
|
||||||
|
yarn export |
||||||
|
rm -rf plugin/popup |
||||||
|
mkdir plugin/popup |
||||||
|
mv out/* plugin/popup |
||||||
|
sed -i 's|href="/|href="/popup/|g' ./plugin/popup/index.html |
||||||
|
sed -i 's|src="/|src="/popup/|g' ./plugin/popup/index.html |
@ -0,0 +1,2 @@ |
|||||||
|
1) git clone https://git.rinsvent.ru/sveak/chrome-extension.git |
||||||
|
2) More tools->Extensions->Load unpacked |
@ -0,0 +1,5 @@ |
|||||||
|
{ |
||||||
|
"MSG_BROWSER_ACTION_TITLE": { |
||||||
|
"message": "2509634311667449183" |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,52 @@ |
|||||||
|
// todo настроить сборщик и для этого файла. Перевести на ts
|
||||||
|
function insertValueToNode(target, value) { |
||||||
|
let nodeList = [] |
||||||
|
switch (target) { |
||||||
|
case 'personal_id': |
||||||
|
nodeList = document.querySelectorAll('*[name*="personal_id"]') |
||||||
|
break |
||||||
|
case 'iban': |
||||||
|
nodeList = document.querySelectorAll('.user-bank-account__fake') |
||||||
|
for (const node of nodeList) { |
||||||
|
node.value = value.substr(2) |
||||||
|
} |
||||||
|
nodeList = document.querySelectorAll('*[name*="bankaccount"]') |
||||||
|
break |
||||||
|
case 'phone': |
||||||
|
nodeList = document.querySelectorAll('*[name*="phone"]') |
||||||
|
break |
||||||
|
case 'first_name': |
||||||
|
nodeList = document.querySelectorAll('*[name*="first_name"]') |
||||||
|
break |
||||||
|
case 'last_name': |
||||||
|
nodeList = document.querySelectorAll('*[name*="last_name"]') |
||||||
|
break |
||||||
|
} |
||||||
|
for (const node of nodeList) { |
||||||
|
node.value = value |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
chrome.runtime.onMessage.addListener( |
||||||
|
function(autocompleteDTO, sender, sendResponse) { |
||||||
|
switch (autocompleteDTO.action) { |
||||||
|
case 'insert': |
||||||
|
insertValueToNode(autocompleteDTO.target || null, autocompleteDTO.value || '') |
||||||
|
break |
||||||
|
case 'clean_notification': |
||||||
|
var elementList = document.querySelectorAll('.uk-notify-message'); |
||||||
|
elementList.forEach(function(elementItem) { |
||||||
|
elementItem.remove() |
||||||
|
}); |
||||||
|
break |
||||||
|
} |
||||||
|
|
||||||
|
} |
||||||
|
); |
||||||
|
|
||||||
|
chrome.storage.sync.get(['need-clean-notification'], function (result) { |
||||||
|
// console.log('Value currently is ' + result['need-clean-notification'])
|
||||||
|
/** |
||||||
|
* todo Добавить обсервер на чиски node с уведомлениями, если опция включена |
||||||
|
*/ |
||||||
|
}) |
After Width: | Height: | Size: 1.9 KiB |
After Width: | Height: | Size: 395 B |
After Width: | Height: | Size: 2.6 KiB |
After Width: | Height: | Size: 491 B |
@ -0,0 +1,50 @@ |
|||||||
|
{ |
||||||
|
"name": "SVEAK", |
||||||
|
"background": { |
||||||
|
"scripts": [ "assets/js/background.js" ] |
||||||
|
}, |
||||||
|
"browser_action": { |
||||||
|
"default_icon": { |
||||||
|
"16": "icons/16.png", |
||||||
|
"32": "icons/32.png" |
||||||
|
}, |
||||||
|
"default_popup": "popup/index.html", |
||||||
|
"default_title": "FMS" |
||||||
|
}, |
||||||
|
"content_scripts": [ { |
||||||
|
"all_frames": true, |
||||||
|
"js": [ "assets/js/script.js" ], |
||||||
|
"matches": [ "<all_urls>" ] |
||||||
|
} ], |
||||||
|
"default_locale": "ru", |
||||||
|
"description": "FMS", |
||||||
|
"icons": { |
||||||
|
"16": "icons/16.png", |
||||||
|
"32": "icons/32.png", |
||||||
|
"144": "icons/144.png", |
||||||
|
"192": "icons/192.png" |
||||||
|
}, |
||||||
|
"manifest_version": 2, |
||||||
|
"permissions": [ "tabs", "contextMenus", "<all_urls>", "storage" ], |
||||||
|
"short_name": "FMS helper", |
||||||
|
"version": "1.0.0", |
||||||
|
"commands": { |
||||||
|
"_execute_browser_action": { |
||||||
|
"suggested_key": { |
||||||
|
"chromeos": "Alt+A", |
||||||
|
"linux": "Alt+A", |
||||||
|
"mac": "Alt+A", |
||||||
|
"windows": "Alt+A" |
||||||
|
} |
||||||
|
}, |
||||||
|
"_execute_page_action": { |
||||||
|
"suggested_key": { |
||||||
|
"default": "Alt+A", |
||||||
|
"mac": "Alt+A", |
||||||
|
"windows": "Alt+A" |
||||||
|
} |
||||||
|
} |
||||||
|
}, |
||||||
|
"key": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEApt0rB/UETdl+DvFC54JXH1uPu9C8kGll8EJi8Cfi7BC8CozN/CGnj/wy3EYP7iwO+qbIqK98dlUX/9aEEmsrJEPHhPKPFaN9KmBrVk852eGdYWK9zXQDzFzza3KxvmaAZhlaarEMBow+TPWdvqBGtf+/vYhoDaWBwIE7aawJZK4B8ulVxCLm67/NAPAC2VQ/aJph2egceD4Mfu6n0mCwzIevAa/FuoplAAQ5OC8AztxV3Xv6px2NL3kq+1O988t5SURsGij4oc15QHE5OUF67thrSP/22PWgMTzi+rkNAZO6Ps66zAWFA9MM+rKjT36B4tJnE5yLMGzCdsxP7WydeQIDAQAB", |
||||||
|
"update_url": "https://clients2.google.com/service/update2/crx" |
||||||
|
} |
@ -0,0 +1,12 @@ |
|||||||
|
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><title>404: This page could not be found</title><meta name="next-head-count" content="3"/><link rel="preload" href="/_next/static/css/961153d3a9f88130.css" as="style"/><link rel="stylesheet" href="/_next/static/css/961153d3a9f88130.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-c67a75d1b6f99dc8.js"></script><script src="/_next/static/chunks/webpack-0b5d8249fb15f5f3.js" defer=""></script><script src="/_next/static/chunks/framework-114634acb84f8baa.js" defer=""></script><script src="/_next/static/chunks/main-66ca454f7bdf962f.js" defer=""></script><script src="/_next/static/chunks/pages/_app-891652dd44e1e4e1.js" defer=""></script><script src="/_next/static/chunks/pages/_error-8353112a01355ec2.js" defer=""></script><script src="/_next/static/Q6jhKJ5_mGyJrvtZm-jWu/_buildManifest.js" defer=""></script><script src="/_next/static/Q6jhKJ5_mGyJrvtZm-jWu/_ssgManifest.js" defer=""></script></head><body><div id="__next"><div style="font-family:-apple-system, BlinkMacSystemFont, Roboto, "Segoe UI", "Fira Sans", Avenir, "Helvetica Neue", "Lucida Grande", sans-serif;height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style> |
||||||
|
body { margin: 0; color: #000; background: #fff; } |
||||||
|
.next-error-h1 { |
||||||
|
border-right: 1px solid rgba(0, 0, 0, .3); |
||||||
|
} |
||||||
|
|
||||||
|
@media (prefers-color-scheme: dark) { |
||||||
|
body { color: #fff; background: #000; } |
||||||
|
.next-error-h1 { |
||||||
|
border-right: 1px solid rgba(255, 255, 255, .3); |
||||||
|
} |
||||||
|
}</style><h1 class="next-error-h1" style="display:inline-block;margin:0;margin-right:20px;padding:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404</h1><div style="display:inline-block;text-align:left;line-height:49px;height:49px;vertical-align:middle"><h2 style="font-size:14px;font-weight:normal;line-height:49px;margin:0;padding:0">This page could not be found<!-- -->.</h2></div></div></div></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{"statusCode":404}},"page":"/_error","query":{},"buildId":"Q6jhKJ5_mGyJrvtZm-jWu","nextExport":true,"isFallback":false,"gip":true,"scriptLoader":[]}</script></body></html> |
@ -0,0 +1 @@ |
|||||||
|
self.__BUILD_MANIFEST={__rewrites:{beforeFiles:[],afterFiles:[],fallback:[]},"/":["static/chunks/492-344a2e231420489c.js","static/css/4110ffaca6c57d5d.css","static/chunks/pages/index-fc32412598eff94e.js"],"/_error":["static/chunks/pages/_error-8353112a01355ec2.js"],sortedPages:["/","/_app","/_error"]},self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); |
@ -0,0 +1 @@ |
|||||||
|
self.__SSG_MANIFEST=new Set,self.__SSG_MANIFEST_CB&&self.__SSG_MANIFEST_CB(); |
@ -0,0 +1 @@ |
|||||||
|
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[888],{6840:function(n,u,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return t(3847)}])},3847:function(n,u,t){"use strict";t.r(u),t.d(u,{default:function(){return _}});var r=t(5893);function _(n){let{Component:u,pageProps:t}=n;return(0,r.jsx)(u,{...t})}t(4744)},4744:function(){}},function(n){var u=function(u){return n(n.s=u)};n.O(0,[774,179],function(){return u(6840),u(880)}),_N_E=n.O()}]); |
@ -0,0 +1 @@ |
|||||||
|
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[820],{1981:function(n,_,u){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_error",function(){return u(67)}])}},function(n){n.O(0,[774,888,179],function(){return n(n.s=1981)}),_N_E=n.O()}]); |
@ -0,0 +1 @@ |
|||||||
|
!function(){"use strict";var e,t,n,r,o,u,f={},i={};function c(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={exports:{}},r=!0;try{f[e](n,n.exports,c),r=!1}finally{r&&delete i[e]}return n.exports}c.m=f,e=[],c.O=function(t,n,r,o){if(n){o=o||0;for(var u=e.length;u>0&&e[u-1][2]>o;u--)e[u]=e[u-1];e[u]=[n,r,o];return}for(var f=1/0,u=0;u<e.length;u++){for(var n=e[u][0],r=e[u][1],o=e[u][2],i=!0,l=0;l<n.length;l++)f>=o&&Object.keys(c.O).every(function(e){return c.O[e](n[l])})?n.splice(l--,1):(i=!1,o<f&&(f=o));if(i){e.splice(u--,1);var a=r();void 0!==a&&(t=a)}}return t},c.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return c.d(t,{a:t}),t},n=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},c.t=function(e,r){if(1&r&&(e=this(e)),8&r||"object"==typeof e&&e&&(4&r&&e.__esModule||16&r&&"function"==typeof e.then))return e;var o=Object.create(null);c.r(o);var u={};t=t||[null,n({}),n([]),n(n)];for(var f=2&r&&e;"object"==typeof f&&!~t.indexOf(f);f=n(f))Object.getOwnPropertyNames(f).forEach(function(t){u[t]=function(){return e[t]}});return u.default=function(){return e},c.d(o,u),o},c.d=function(e,t){for(var n in t)c.o(t,n)&&!c.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},c.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},c.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},c.p="/_next/",r={272:0},c.O.j=function(e){return 0===r[e]},o=function(e,t){var n,o,u=t[0],f=t[1],i=t[2],l=0;if(u.some(function(e){return 0!==r[e]})){for(n in f)c.o(f,n)&&(c.m[n]=f[n]);if(i)var a=i(c)}for(e&&e(t);l<u.length;l++)o=u[l],c.o(r,o)&&r[o]&&r[o][0](),r[o]=0;return c.O(a)},(u=self.webpackChunk_N_E=self.webpackChunk_N_E||[]).forEach(o.bind(null,0)),u.push=o.bind(null,u.push.bind(u))}(); |
@ -0,0 +1 @@ |
|||||||
|
.styles_autocomplete__ix2hI{width:100%}.Home_main__nLjiQ{display:flex;flex-direction:column;justify-content:space-between;align-items:center;padding:6rem}.Home_tasks__KFfHM{display:grid;grid-template-columns:1fr}.Home_task__4_d_Z{display:grid;grid-template-columns:11fr 1fr}.Home_tabPanel__c8pAj{display:flex}.Home_tabPanelItem__83uu5{flex-grow:1;padding:5px;cursor:pointer;border-bottom:2px solid #cae5fa}.Home_tabPanelItemActive__nTDuS,.Home_tabPanelItem__83uu5:hover{border-bottom:2px solid #298df8} |
@ -0,0 +1 @@ |
|||||||
|
:root{--max-width:1100px;--border-radius:12px;--font-mono:ui-monospace,Menlo,Monaco,"Cascadia Mono","Segoe UI Mono","Roboto Mono","Oxygen Mono","Ubuntu Monospace","Source Code Pro","Fira Mono","Droid Sans Mono","Courier New",monospace;--foreground-rgb:0,0,0;--background-start-rgb:214,219,220;--background-end-rgb:255,255,255;--primary-glow:conic-gradient(from 180deg at 50% 50%,#16abff33 0deg,#0885ff33 55deg,#54d6ff33 120deg,#0071ff33 160deg,transparent 360deg);--secondary-glow:radial-gradient(#fff,hsla(0,0%,100%,0));--tile-start-rgb:239,245,249;--tile-end-rgb:228,232,233;--tile-border:conic-gradient(#00000080,#00000040,#00000030,#00000020,#00000010,#00000010,#00000080);--callout-rgb:238,240,241;--callout-border-rgb:172,175,176;--card-rgb:180,185,188;--card-border-rgb:131,134,135}@media (prefers-color-scheme:dark){:root{--foreground-rgb:255,255,255;--background-start-rgb:0,0,0;--background-end-rgb:0,0,0;--primary-glow:radial-gradient(rgba(1,65,255,.4),rgba(1,65,255,0));--secondary-glow:linear-gradient(to bottom right,rgba(1,65,255,0),rgba(1,65,255,0),rgba(1,65,255,.3));--tile-start-rgb:2,13,46;--tile-end-rgb:2,5,19;--tile-border:conic-gradient(#ffffff80,#ffffff40,#ffffff30,#ffffff20,#ffffff10,#ffffff10,#ffffff80);--callout-rgb:20,20,20;--callout-border-rgb:108,108,108;--card-rgb:100,100,100;--card-border-rgb:200,200,200}}*{box-sizing:border-box;padding:0;margin:0}body,html{max-width:100vw;overflow-x:hidden}body{color:rbg(--foreground-rgb)}a{color:inherit;text-decoration:none}@media (prefers-color-scheme:dark){html{color-scheme:dark}} |
After Width: | Height: | Size: 25 KiB |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 629 B |
@ -0,0 +1,4 @@ |
|||||||
|
button.alx-button-send { |
||||||
|
width: auto; |
||||||
|
text-align: center; |
||||||
|
} |