If I understand you correctly, you could execute your content scripts in your background.js
instead of defining it in your manifest.json
:
if (condition) {
chrome.tabs.executeScript(null, { file: 'contentscript1.js' });
} else {
chrome.tabs.executeScript(null, { file: 'contentscript2.js' });
}