Skip to main content

PageSleuth Support

Help with PageSleuth by CacheSleuth, the Safari extension for iPhone, iPad and Mac.

PageSleuth Support

PageSleuth by CacheSleuth for iPhone, iPad and Mac

PageSleuth is a Safari extension for looking inside a web page: its source, its files, what it hides and what it is made of. Learn more on the PageSleuth page, or try it on the practice page.

How do I turn the extension on?

iPhone and iPad: open the Settings app, then Apps, then Safari, then Extensions. Tap PageSleuth and turn on Allow Extension. Then open a page in Safari, tap the aA button (or the puzzle-piece button) in the address bar, and choose PageSleuth.

Mac: open Safari, then choose Safari, then Settings, then Extensions, and tick PageSleuth. Click its button in the Safari toolbar to open the panel. If you do not see the button, choose View, then Customize Toolbar, and drag it in.

The PageSleuth app has the same steps, with pictures, under its setup screen.

Why does it ask to allow all websites?

Safari lets you allow an extension one site at a time. PageSleuth works that way for looking at a page: it reads a page only when you open the panel on it.

Saved rules are different. A rule that hides a cookie banner has to run when the page loads, before you open anything, so PageSleuth needs permission on the sites where you want it. The simplest way is to set PageSleuth to Allow on All Websites (on Mac, Always Allow on Every Website). If you would rather not, allow it only on the sites you have rules for. On every page it allows, a small script checks your saved rules and applies the ones for that site. It does nothing else, and sends nothing anywhere.

What does each tab do?

  • Source shows the page source, either the original or the live page as it is now after scripts have changed it. You can find text, pretty print, copy and share.
  • Assets lists every image, script, stylesheet, font and media link on the page, with sizes. Copy the URLs, or save a file.
  • Clues finds what a page hides: HTML comments, hidden and invisible text (such as white on white), alt and title text, hidden link targets, coordinates, strings that look encoded (base64, hex, Morse) and image metadata such as EXIF GPS and comments. It is built for puzzle geocaches. Tap Decode at CacheSleuth on a find to open the matching CacheSleuth tool with that text.
  • Info shows meta and social tags, JSON-LD, cookies, local storage and headers.
  • Console runs JavaScript on the page and shows its console output. The full Eruda developer tools are in there too.
  • Edit lets you pick an element, then hide it, hide similar ones, remove it, change its text or HTML, or look at its styles. A switch makes the page selectable and copyable.
  • Rules holds your per-site hide rules, custom CSS and auto zap. You can export and import them.

What does Zap popups do?

It hides cookie banners, newsletter prompts and other overlays that cover the page, and gets scrolling working again. Save the result as a rule for the site and PageSleuth does it for you on later visits. The practice page has a pretend cookie banner to try it on.

How do I use it from the share sheet?

On iPhone and iPad, tap Share in Safari and choose PageSleuth. If you do not see it, scroll to the end of the row of apps and tap More, then add it. This is handy when the panel is awkward to open.

How do rules sync between my devices?

Rules are saved on your device. If iCloud is on for your devices, they are also kept in your own iCloud key-value storage, so your other devices pick them up. That storage is Apple's, and CacheSleuth cannot see it. Rules can also be exported to a file and imported on another device. Sync needs you to be signed in to iCloud on each device and can take a little while to arrive.

Troubleshooting

PageSleuth is not in Safari's menu. Check that Allow Extension is on in the steps above, and that the app is installed. Closing and reopening Safari often helps. On Mac, make sure it is ticked under Safari Settings, Extensions.

It says it is not allowed on this website. Safari has not given PageSleuth access to that site yet. Tap the extension button in the address bar, then PageSleuth, and choose Always Allow (or Allow for One Day), or set it to Allow on All Websites in Settings. Safari does not let extensions run on some pages at all, such as Safari's own start page.

The Console says it was blocked. Some sites use a strict content security policy that stops code from running on the page. When that happens, Console may not be able to run your JavaScript there, and the other tabs keep working. Try the page's source and Info tabs instead, or the scratchpad console in the PageSleuth app.

My rules are not applying. Check that PageSleuth is allowed on the site (see above), that the rule is switched on in the Rules tab, and that its site matches the address you are on. Reload the page after changing a rule. If a site changes how it builds its page, an old rule may need picking again.

An asset will not save. Saving a file fetches it from the site it lives on, so a file that site refuses to hand out cannot be saved. You can still copy its URL.

Still stuck?

Questions, problems or ideas? Send a message through the contact form. Telling us your device, iOS or macOS version and the page you were on helps.