├── .gitignore
├── static
├── icons
│ ├── icon16.png
│ ├── icon32.png
│ ├── icon64.png
│ ├── icon128.png
│ ├── icon256.png
│ └── icon512.png
├── popup.html
├── options.html
└── svgs
│ ├── chrome.svg
│ ├── github.svg
│ ├── pencil.svg
│ ├── gear.svg
│ └── firefox.svg
├── src
├── @types
│ ├── svg.d.ts
│ └── global.d.ts
├── popup
│ ├── index.tsx
│ ├── PopupApp.tsx
│ ├── Gear.tsx
│ ├── CurrentTitle.tsx
│ ├── Revert.tsx
│ ├── BookmarkTitle.tsx
│ ├── ContentScriptChecker.tsx
│ └── Form.tsx
├── options
│ ├── index.tsx
│ ├── OptionsApp.tsx
│ ├── ContextMenuSwitch.tsx
│ ├── Header.tsx
│ ├── KeyboardShortcutSettings.tsx
│ ├── Footer.tsx
│ ├── Home.tsx
│ ├── RegexPopup.tsx
│ ├── AdvancedSettings.tsx
│ ├── UserSettings.tsx
│ └── SavedTitles.tsx
├── shared
│ ├── AccessibleButton.tsx
│ ├── utils.ts
│ ├── RegexInputGroup.tsx
│ ├── RegexInput.tsx
│ ├── types.ts
│ ├── injectedScripts.ts
│ ├── ReTitleThemeWrapper.tsx
│ ├── storageUtils.ts
│ └── storageHandler.ts
└── background
│ ├── index.ts
│ ├── onInstall.ts
│ ├── manageTablock.ts
│ └── retitle.ts
├── .vscode
└── settings.json
├── tsconfig.json
├── babel.config.js
├── README.md
├── manifest.base.js
├── package.json
└── webpack.config.js
/.gitignore:
--------------------------------------------------------------------------------
1 | .DS_Store
2 | node_modules
3 | dist_chrome
4 | dist_firefox
5 | zip
--------------------------------------------------------------------------------
/static/icons/icon16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Lazyuki/ReTitle/HEAD/static/icons/icon16.png
--------------------------------------------------------------------------------
/static/icons/icon32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Lazyuki/ReTitle/HEAD/static/icons/icon32.png
--------------------------------------------------------------------------------
/static/icons/icon64.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Lazyuki/ReTitle/HEAD/static/icons/icon64.png
--------------------------------------------------------------------------------
/static/icons/icon128.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Lazyuki/ReTitle/HEAD/static/icons/icon128.png
--------------------------------------------------------------------------------
/static/icons/icon256.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Lazyuki/ReTitle/HEAD/static/icons/icon256.png
--------------------------------------------------------------------------------
/static/icons/icon512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Lazyuki/ReTitle/HEAD/static/icons/icon512.png
--------------------------------------------------------------------------------
/src/@types/svg.d.ts:
--------------------------------------------------------------------------------
1 | declare module '*.svg' {
2 | const value: any;
3 | export default value;
4 | }
5 |
--------------------------------------------------------------------------------
/src/popup/index.tsx:
--------------------------------------------------------------------------------
1 | import { h, render } from 'preact';
2 | import PopupApp from './PopupApp';
3 |
4 | render(
{domain}
74 | /regex/replacement/flags
21 | \.$1, $2 and so on.
27 | /.*/Lazy/ is the same as just setting the title to
34 | "Lazy".
35 | /(.*)/LAZ $1/ will replace "old title" to "LAZ old
37 | title".
38 | /(.*)/r\/$1/ will replace "Lazy" to "r/Lazy".
40 | /([a-z])/0$1/gi will replace "sPonGe" to
42 | "0s0P0o0n0G0e"
43 | /f([^o]+)(.*)/FB $2$1/i will replace "Facebook" to
45 | "FB ookaceb" (but why)
46 |
47 | *
65 | *reddit\.com/(r/[^/]+)* | Red ${1} will change
71 | https://www.reddit.com/r/funny to
72 | Red r/funny It can be combined with the title regex
73 | mentioned above too.
74 |
76 | *\.([^.]+)\.com/(.*)* | /(.*)/${1} $1 ${2}/
77 |
78 | will change https://www.reddit.com/r/funny to
79 | reddit funny r/funny /regex/replacement/flags
19 | \.$1, $2 and so on.
25 | /.*/Lazy/ is the same as just setting the title to
32 | "Lazy".
33 | /(.*)/LAZ $1/ will replace "old title" to "LAZ old
35 | title".
36 | /(.*)/r\/$1/ will replace "Lazy" to "r/Lazy".
38 | /([a-z])/0$1/gi will replace "sPonGe" to
40 | "0s0P0o0n0G0e"
41 | /f([^o]+)(.*)/FB $2$1/i will replace "Facebook" to
43 | "FB ookaceb" (but why)
44 |
45 | *
63 | *reddit\.com/(r/[^/]+)* | Red ${1} will change
69 | https://www.reddit.com/r/funny to
70 | Red r/funny It can be combined with the title regex
71 | mentioned above too.
72 |
74 | *\.([^.]+)\.com/(.*)* | /(.*)/${1} $1 ${2}/
75 |
76 | will change https://www.reddit.com/r/funny to
77 | reddit funny r/funny
104 | This option will be used as the default value in the extension popup
105 | menu. These options are in the order of priority, so for example{' '}
106 | Set for this tab will be matched instead of
107 | Only exact match if the given tab matches both.
108 |
Set it temporarily
122 | Temporarily sets the title just once which does not persist at
123 | all. Reloading or changing the URL loses the changed title.
124 | Set for this tab
133 | This will match the current tab no matter the URL, but will be
134 | lost once the tab is closed. This will persist if you close the
135 | window and reopen it with previous tabs. However, if the browser
136 | crashes or the window didn't load the tabs on startup then this
137 | settings will be lost.
138 | Set for this exact URL
147 | This will match the URL exactly and it will be persistent across
148 | sessions. You can set this to ignore URL parameters such as{' '}
149 | #, &, and ? to be
150 | ignored in the saved titles page.
151 | Set for this domain
160 | This will match the domain part of the URL and it will be
161 | persistent across sessions.
162 | $0 to insert the original title. So if you want
126 | Title to say My Title, set the title name to{' '}
127 | My $0.
128 |