mirror of
https://github.com/treetrum/WordPressAdminExtension
synced 2026-06-06 13:30:59 +10:00
No description
- JavaScript 95.6%
- HTML 4.4%
| js | ||
| .gitignore | ||
| icon.png | ||
| Icon.sketch | ||
| index.html | ||
| Info.plist | ||
| loader.png | ||
| package.json | ||
| readme.md | ||
| Settings.plist | ||
| yarn.lock | ||
WordPressAdmin Algorythm
A Safari Extension to take the user to the WordPress Login page for the current active tab, [hopefully] if it exists.
On page load:
- Disable button
- If admin url already saved for this domain
- Enable button
- else
- If site is WordPress
- while there are more url subdirectories
- if siteURL + /possibleSubdirectory + /wp-admin is not a 404 page
- Save the admin url for this domain
- Enable button
- break out of loop
- if siteURL + /possibleSubdirectory + /wp-admin is not a 404 page
- while there are more url subdirectories
- If site is WordPress
On button press:
- Redirect to admin url for this domain