chrome-devtools-mcp-for-extension 0.18.7 → 0.18.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -286,31 +286,12 @@ export const askGeminiWeb = defineTool({
|
|
|
286
286
|
ariaLabel.includes('中止') || ariaLabel.includes('Cancel')) {
|
|
287
287
|
return true;
|
|
288
288
|
}
|
|
289
|
-
// Icon-based detection
|
|
290
|
-
// Check for mat-icon with stop icon
|
|
289
|
+
// Icon-based detection: mat-icon with fonticon="stop" or data-mat-icon-name="stop"
|
|
291
290
|
const matIcon = b.querySelector('mat-icon');
|
|
292
|
-
if (matIcon
|
|
293
|
-
matIcon.getAttribute('
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
// Check for SVG stop icon (square shape) - common in Gemini UI
|
|
297
|
-
const svg = b.querySelector('svg');
|
|
298
|
-
if (svg) {
|
|
299
|
-
// Stop icon typically has a rect element (square)
|
|
300
|
-
const rect = svg.querySelector('rect');
|
|
301
|
-
if (rect) {
|
|
302
|
-
return true;
|
|
303
|
-
}
|
|
304
|
-
}
|
|
305
|
-
// Check for button with blue background (Google's stop button style)
|
|
306
|
-
const style = window.getComputedStyle(b);
|
|
307
|
-
const bgColor = style.backgroundColor;
|
|
308
|
-
if (bgColor.includes('rgb(66, 133, 244)') || // Google blue
|
|
309
|
-
bgColor.includes('rgb(26, 115, 232)') || // Another Google blue
|
|
310
|
-
bgColor.includes('rgb(138, 180, 248)')) { // Light blue
|
|
311
|
-
// Only if button is visible and small (stop button is typically icon-only)
|
|
312
|
-
const rect = b.getBoundingClientRect();
|
|
313
|
-
if (rect.width > 0 && rect.width < 100) {
|
|
291
|
+
if (matIcon) {
|
|
292
|
+
const fonticon = matIcon.getAttribute('fonticon');
|
|
293
|
+
const iconName = matIcon.getAttribute('data-mat-icon-name');
|
|
294
|
+
if (fonticon === 'stop' || iconName === 'stop') {
|
|
314
295
|
return true;
|
|
315
296
|
}
|
|
316
297
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "chrome-devtools-mcp-for-extension",
|
|
3
|
-
"version": "0.18.
|
|
3
|
+
"version": "0.18.8",
|
|
4
4
|
"description": "MCP server for Chrome extension development with Web Store automation. Fork of chrome-devtools-mcp with extension-specific tools.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": "./scripts/cli.mjs",
|