User:Polygnotus/Scripts/Claude4.js: Difference between revisions

Content deleted Content added
Created page with '(function() { 'use strict'; class WikipediaClaudeProofreader { constructor() { this.apiKey = localStorage.getItem('claude_api_key'); this.sidebarWidth = localStorage.getItem('claude_sidebar_width') || '350px'; this.isVisible = localStorage.getItem('claude_sidebar_visible') !== 'false'; this.currentResults = localStorage.getItem('claude_current_results') || ''; this.init(); }...'
 
No edit summary
Line 190:
}
/* Universal theme compatibility - pushtarget allonly contentthe to themain leftcontainers */
body.claude-sidebar-visible {
margin-right: ${this.sidebarWidth} !important;
max-width: calc(100% - ${this.sidebarWidth}) !important;
}
/* Target specificonly Wikipediathe themeoutermost containers to avoid stacking margins */
body.claude-sidebar-visible .mw-page-container,
body.claude-sidebar-visible .mw-page-container-inner,#globalWrapper {
body.claude-sidebar-visible #mw margin-page-base,right: 0 !important;
maxpadding-widthright: calc(100% - ${this.sidebarWidth}) !important;
body.claude-sidebar-visible #mw-head-base,
body.claude box-sidebar-visiblesizing: #mwborder-head,box !important;
body.claude-sidebar-visible #content,
body.claude-sidebar-visible #footer,
body.claude-sidebar-visible .vector-header,
body.claude-sidebar-visible .vector-main,
body.claude-sidebar-visible .vector-footer,
body.claude-sidebar-visible #globalWrapper,
body.claude-sidebar-visible .skin-vector,
body.claude-sidebar-visible .skin-vector-legacy,
body.claude-sidebar-visible .skin-monobook,
body.claude-sidebar-visible .skin-timeless {
margin-right: ${this.sidebarWidth} !important;
max-width: calc(100% - ${this.sidebarWidth}) !important;
}
/* AdditionalFor targetingfixed/absolute for persistentpositioned elements like headers */
body.claude-sidebar-visible .vector-header-container,
body.claude-sidebar-visible .vector-main-menu,
body.claude-sidebar-visible .vector-search-box,
body.claude-sidebar-visible .vector-user-menu,
body.claude-sidebar-visible #p-personal,
body.claude-sidebar-visible #right-navigation,
body.claude-sidebar-visible #left-navigation {
margin-right: ${this.sidebarWidth} !important;
max-width: calc(100% - ${this.sidebarWidth}) !important;
}
/* Ensure fixed positioned elements are also pushed */
body.claude-sidebar-visible .vector-sticky-header,
body.claude-sidebar-visible .vector#mw-header-stickyhead {
right: ${this.sidebarWidth} !important;
width: calc(100% - ${this.sidebarWidth}) !important;
Line 251 ⟶ 227:
}
/* Reset all margins when sidebar is hidden */
body:not(.claude-sidebar-visible) {
margin-right: 0 !important;
max-width: none !important;
}
body:not(.claude-sidebar-visible) .mw-page-container,
body:not(.claude-sidebar-visible) .mw-page-container-inner,#globalWrapper {
body:not(.claude-sidebar-visible) #mw-page-base,
body:not(.claude-sidebar-visible) #mw-head-base,
body:not(.claude-sidebar-visible) #mw-head,
body:not(.claude-sidebar-visible) #content,
body:not(.claude-sidebar-visible) #footer,
body:not(.claude-sidebar-visible) .vector-header,
body:not(.claude-sidebar-visible) .vector-main,
body:not(.claude-sidebar-visible) .vector-footer,
body:not(.claude-sidebar-visible) #globalWrapper,
body:not(.claude-sidebar-visible) .skin-vector,
body:not(.claude-sidebar-visible) .skin-vector-legacy,
body:not(.claude-sidebar-visible) .skin-monobook,
body:not(.claude-sidebar-visible) .skin-timeless,
body:not(.claude-sidebar-visible) .vector-header-container,
body:not(.claude-sidebar-visible) .vector-main-menu,
body:not(.claude-sidebar-visible) .vector-search-box,
body:not(.claude-sidebar-visible) .vector-user-menu,
body:not(.claude-sidebar-visible) #p-personal,
body:not(.claude-sidebar-visible) #right-navigation,
body:not(.claude-sidebar-visible) #left-navigation {
margin-right: 0 !important;
maxpadding-widthright: none0 !important;
}
body:not(.claude-sidebar-visible) #content.vector-header,
body:not(.claude-sidebar-visible) .vector-sticky-header,
body:not(.claude-sidebar-visible) .vector#mw-header-stickyhead {
right: 0 !important;
width: 100% !important;
Line 380 ⟶ 336:
body.claude-sidebar-visible {
margin-right: ${this.sidebarWidth} !important;
max-width: calc(100% - ${this.sidebarWidth}) !important;
}
body.claude-sidebar-visible .mw-page-container,
body.claude-sidebar-visible .mw-page-container-inner,#globalWrapper {
body.claude-sidebar-visible #mw margin-page-base,right: 0 !important;
marginpadding-right: ${this.sidebarWidth} !important;
body.claude-sidebar-visible #mw-head-base,
body.claude box-sidebar-visiblesizing: #mwborder-head,box !important;
body.claude-sidebar-visible #content,
body.claude-sidebar-visible #footer,
body.claude-sidebar-visible .vector-header,
body.claude-sidebar-visible .vector-main,
body.claude-sidebar-visible .vector-footer,
body.claude-sidebar-visible #globalWrapper,
body.claude-sidebar-visible .skin-vector,
body.claude-sidebar-visible .skin-vector-legacy,
body.claude-sidebar-visible .skin-monobook,
body.claude-sidebar-visible .skin-timeless,
body.claude-sidebar-visible .vector-header-container,
body.claude-sidebar-visible .vector-main-menu,
body.claude-sidebar-visible .vector-search-box,
body.claude-sidebar-visible .vector-user-menu,
body.claude-sidebar-visible #p-personal,
body.claude-sidebar-visible #right-navigation,
body.claude-sidebar-visible #left-navigation {
margin-right: ${this.sidebarWidth} !important;
max-width: calc(100% - ${this.sidebarWidth}) !important;
}
body.claude-sidebar-visible #mw.vector-head-baseheader,
body.claude-sidebar-visible .vector-sticky-header,
body.claude-sidebar-visible .vector#mw-header-stickyhead {
right: ${this.sidebarWidth} !important;
width: calc(100% - ${this.sidebarWidth}) !important;