summaryrefslogtreecommitdiff
path: root/source/libs/utils.ts
diff options
context:
space:
mode:
Diffstat (limited to 'source/libs/utils.ts')
-rw-r--r--source/libs/utils.ts12
1 files changed, 2 insertions, 10 deletions
diff --git a/source/libs/utils.ts b/source/libs/utils.ts
index 5a0cc695..1cf5a1eb 100644
--- a/source/libs/utils.ts
+++ b/source/libs/utils.ts
@@ -8,10 +8,10 @@ export function logError(featureName: typeof __featureName__, error: Error | str
// Don't change this to `throw Error` because Firefox doesn't show extensions' errors in the console.
// Use `return` after calling this function.
console.error(`❌ Refined GitHub: feature \`${featureName}\`\n\n`, error, ...extras, stripIndent(`
-
+
Search for open issues:
https://github.com/sindresorhus/refined-github/issues?q=is%3Aissue+${encodeURIComponent(message)}
-
+
or open a new one:
https://github.com/sindresorhus/refined-github/issues/new?labels=bug&template=bug_report.md&title=${encodeURIComponent(`\`${featureName}\`: ${message}`)}
`));
@@ -122,14 +122,6 @@ export const flatZip = <T>(table: T[][], limit = Infinity): T[] => {
return zipped;
};
-export function getOP(): string {
- if (isPR()) {
- return /^(?:.+) by (\S+) · Pull Request #(?:\d+)/.exec(document.title)?.[1]!;
- }
-
- return select('.timeline-comment-header-text .author')!.textContent!;
-}
-
export function compareNames(username: string, realname: string): boolean {
return username.replace(/-/g, '').toLowerCase() === realname.normalize('NFD').replace(/[\u0300-\u036F\W.]/g, '').toLowerCase();
}