mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-06-06 11:44:40 +00:00
Merge main into sweep/fix-inconsistent-naming
This commit is contained in:
@@ -44,7 +44,7 @@
|
|||||||
"matches": ["*://*/*"]
|
"matches": ["*://*/*"]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"resources": ["inject/*"],
|
"resources": ["css/*"],
|
||||||
"matches": ["*://*/*"]
|
"matches": ["*://*/*"]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
+3
-3
@@ -44,7 +44,7 @@ document.addEventListener(
|
|||||||
console.log('[BetterSEQTA+] Verified SEQTA Page');
|
console.log('[BetterSEQTA+] Verified SEQTA Page');
|
||||||
|
|
||||||
let link = document.createElement('link');
|
let link = document.createElement('link');
|
||||||
link.href = chrome.runtime.getURL('inject/documentload.css');
|
link.href = chrome.runtime.getURL('css/documentload.css');
|
||||||
link.type = 'text/css';
|
link.type = 'text/css';
|
||||||
link.rel = 'stylesheet';
|
link.rel = 'stylesheet';
|
||||||
document.getElementsByTagName('html')[0].appendChild(link);
|
document.getElementsByTagName('html')[0].appendChild(link);
|
||||||
@@ -361,7 +361,7 @@ async function RunColourCheck(element) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function GetiFrameCSSElement() {
|
export function GetiFrameCSSElement() {
|
||||||
var cssFile = chrome.runtime.getURL('inject/iframe.css');
|
var cssFile = chrome.runtime.getURL('css/iframe.css');
|
||||||
var fileref = document.createElement('link');
|
var fileref = document.createElement('link');
|
||||||
fileref.setAttribute('rel', 'stylesheet');
|
fileref.setAttribute('rel', 'stylesheet');
|
||||||
fileref.setAttribute('type', 'text/css');
|
fileref.setAttribute('type', 'text/css');
|
||||||
@@ -721,7 +721,7 @@ function main(storedSetting) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function InjectStyles() {
|
function InjectStyles() {
|
||||||
var cssFile = chrome.runtime.getURL('inject/injected.css');
|
var cssFile = chrome.runtime.getURL('css/injected.css');
|
||||||
var fileref = document.createElement('link');
|
var fileref = document.createElement('link');
|
||||||
fileref.setAttribute('rel', 'stylesheet');
|
fileref.setAttribute('rel', 'stylesheet');
|
||||||
fileref.setAttribute('type', 'text/css');
|
fileref.setAttribute('type', 'text/css');
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 273 KiB After Width: | Height: | Size: 273 KiB |
|
Before Width: | Height: | Size: 141 KiB After Width: | Height: | Size: 141 KiB |
+6
-6
@@ -18,14 +18,14 @@ export default {
|
|||||||
entry: {
|
entry: {
|
||||||
SEQTA: './src/SEQTA.js',
|
SEQTA: './src/SEQTA.js',
|
||||||
background: './src/background.js',
|
background: './src/background.js',
|
||||||
'inject/documentload': './src/inject/documentload.scss',
|
'css/documentload': './src/css/documentload.scss',
|
||||||
'inject/iframe': './src/inject/iframe.scss',
|
'css/iframe': './src/css/iframe.scss',
|
||||||
'inject/injected': './src/inject/injected.scss',
|
'css/injected': './src/css/injected.scss',
|
||||||
},
|
},
|
||||||
output: {
|
output: {
|
||||||
filename: (pathData) => {
|
filename: (pathData) => {
|
||||||
const name = pathData.chunk.name.replace('inject-', '');
|
const name = pathData.chunk.name.replace('css-', '');
|
||||||
return name.includes('inject') ? `inject/${name}.js` : `${name}.js`;
|
return name.includes('css') ? `css/${name}.js` : `${name}.js`;
|
||||||
},
|
},
|
||||||
// eslint-disable-next-line no-undef
|
// eslint-disable-next-line no-undef
|
||||||
path: path.resolve('build'),
|
path: path.resolve('build'),
|
||||||
@@ -63,7 +63,7 @@ export default {
|
|||||||
new CopyWebpackPlugin({
|
new CopyWebpackPlugin({
|
||||||
patterns: [
|
patterns: [
|
||||||
{ from: 'public', to: '.' },
|
{ from: 'public', to: '.' },
|
||||||
{ from: 'src/inject/preview', to: 'inject/preview' },
|
{ from: 'src/css/preview', to: 'css/preview' },
|
||||||
{ from: 'node_modules/webextension-polyfill/dist/browser-polyfill.js', to: '.'},
|
{ from: 'node_modules/webextension-polyfill/dist/browser-polyfill.js', to: '.'},
|
||||||
{ from: 'interface/dist/client', to: 'client' },
|
{ from: 'interface/dist/client', to: 'client' },
|
||||||
{ from: 'interface/dist/index.html', to: 'interface/index.html' }
|
{ from: 'interface/dist/index.html', to: 'interface/index.html' }
|
||||||
|
|||||||
Reference in New Issue
Block a user