Browser Extension Guide
Embed Parse credibility analysis directly into browser extensions for inline article scoring.
Overview
Browser extensions can use the Parse API to analyze articles as users browse. The extension detects article pages, submits the URL for analysis, and displays the credibility score in the browser UI.
Content Script Example
// content.js — runs on article pages
chrome.runtime.sendMessage({
type: 'ANALYZE_URL',
url: window.location.href,
});
chrome.runtime.onMessage.addListener((message) => {
if (message.type === 'ANALYSIS_RESULT') {
showCredibilityBadge(message.data.truthScore, message.data.credibility);
}
});
function showCredibilityBadge(score, label) {
const badge = document.createElement('div');
badge.className = 'parse-badge';
badge.textContent = `${label} (${score}/100)`;
document.body.prepend(badge);
}Required Permissions
{
"permissions": ["activeTab"],
"host_permissions": ["https://www.parsethe.media/*"]
}Questions? Contact support or see the full API reference.