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