Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SharePoint Page Copier

A Chrome / Edge browser extension (Manifest V3) for bulk-copying SharePoint Online pages between sites within the same tenant — no Azure AD registration, no extra permissions, just your existing browser session.


How it works

The extension uses a virtual clipboard approach. You keep two browser tabs open: one on the source site and one on the destination site. Pages are transferred one by one using the SharePoint REST API.

Why writes run in the destination tab: SharePoint Online blocks POST requests from a chrome-extension:// origin with HTTP 403 (anti-CSRF). The extension injects the write logic directly into the active destination tab via chrome.scripting.executeScript, bypassing this restriction. The destination tab must be active when you click Copy here.

Step-by-step walkthrough

1. Pin the extension — the icon appears in your browser toolbar after installation.

Extension icon in the browser toolbar


2. Open the source site. Navigate to any page within the SharePoint site you want to copy from — the Site Pages library is a good starting point so you can see all available pages at a glance.

Source site — Site Pages library overview


3. Select pages to copy. Click the extension icon. The popup lists all pages from the current site's Site Pages library. Check the pages you want, use the filter box to search by name, then click Add selected to clipboard.

Extension popup — selecting pages on the source site


4. Switch to the destination tab and click Copy here. Open a second tab on the destination SharePoint site (the Site Pages library is recommended so you can immediately see the result). Click the extension icon — it detects pages waiting in the clipboard and shows the Copy here button.

Extension popup — Copy here on the destination site


5. Filename conflict handling. If a page with the same filename already exists at the destination (e.g. Home.aspx), the extension automatically saves the copy with a -copy suffix (Home-copy.aspx). No manual intervention needed.

Destination site before copy — existing Home.aspx visible


6. Confirm the operation. A confirmation dialog shows the number of pages and both site names. Click Yes, copy to proceed.

Confirmation dialog


7. Live progress log. The extension copies pages sequentially and shows a live status log. Green entries indicate success.

Status log after a successful copy


8. Verify the result. Refresh the destination Site Pages library (F5). The copied page appears alongside the existing ones — the page content is transferred 1:1.

Destination Site Pages after copy — Home-copy.aspx added


Requirements

  • Chrome or Edge (Chromium-based)
  • Read access on the source site
  • Contributor (or higher) permission on the destination site
  • Both sites in the same SharePoint tenant (*.sharepoint.com)

Installation

Download and load as unpacked extension

  1. Go to the Releases page and download sharepoint-page-copier.zip from the latest release.
  2. Extract the ZIP to a permanent folder (e.g. C:\Extensions\sharepoint-page-copier). Do not delete this folder — the browser loads the extension from it every time it starts.
  3. Load the extension:

Microsoft Edge

  1. Open edge://extensions
  2. Enable Developer mode (toggle in the bottom-left corner)
  3. Click Load unpacked → select the extracted folder (the one containing manifest.json)
  4. Pin the extension icon from the toolbar menu

Google Chrome

  1. Open chrome://extensions
  2. Enable Developer mode (toggle in the top-right corner)
  3. Click Load unpacked → select the extracted folder
  4. Pin the extension icon from the toolbar menu

To update: download the new release ZIP, extract it over the same folder, then click the refresh icon on the extension card in edge://extensions or chrome://extensions.

Limitations

  • Same tenant only. Cross-tenant copying is not supported.
  • Embedded files are not moved. Web parts referencing images or documents from the source site still point to the originals after copying.
  • Custom SPFx web parts may not render on the destination site if the same solution package is not deployed there.
  • Pages are copied sequentially to avoid throttling (HTTP 429). The extension retries automatically if throttled.

Project structure

File Description
manifest.json Extension manifest (Manifest V3)
popup.html / popup.css / popup.js Extension UI
sp-api.js SharePoint REST API logic
icons/ Extension icons
docs/ Screenshots used in this README

License

MIT

About

Chrome/Edge extension for bulk-copying SharePoint Online pages between sites within the same tenant

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages