MRLookup

Extract BibTeX data automatically and modify BibTeX Key to AUTHOR_YEAR_TITLE.

Author
Abel Van
Daily installs
0
Total installs
93
Ratings
1 0 0
Version
3.0.4
Created
2017-11-14
Updated
2025-06-07
Size
18.6 KB
License
OSI-SPDX-Short-Identifier
Applies to

MRLookup

Extract BibTeX data automatically and modify BibTeX Key to AUTHOR_YEAR_TITLE/JOURNAL

Introduction

This script will acts on mrlookup and mathscinet, which will change the bibtex key to AuthorsNames+Year+JournalAbbrev/FirstWordofTitle. With the following features:

  • Toggle between journal abbreviation and title word mode
  • Smart journal abbreviation:
    • For single word journals: use first three letters (e.g., "Topology" -> "TOP")
    • For multi-word journals: use capital letters (e.g., "Journal of Differential Geometry" -> "JDG")
  • You can set ignore words for the title, the current setting is:
var IgnoreStringInTitle = [
  'a',
  'an',
  'on',
  'the',
  'another'
];
  • You can copy the bibitem to clipboard by simply click on it
  • Visual indicator showing current mode (Journal/Title)

How to install?

Just follow the guide at Greasy Fork

How to setup webhook for developers?

To enable automatic syncing between GitHub and Greasy Fork:

  1. Go to Greasy Fork Webhook Info
  2. Log in to your Greasy Fork account
  3. Copy the webhook URL and secret provided by Greasy Fork

Then in your GitHub repository:

  1. Go to Settings → Webhooks → Add webhook
  2. Configure the webhook:
    • Payload URL: Your Greasy Fork webhook URL
    • Content type: application/json
    • Secret: The secret from Greasy Fork
    • Events: Choose "Just the push event"
    • Active: Checked

Now when you push changes to your script, it will automatically sync to Greasy Fork!

How to feedback?

If you have any suggestion, you can contact me at van141.abel(at)gmail.com. Also, you can initial an issue

Update Log

Version 3.0.4

  • Fixed citation key update when toggling between journal and title modes
  • Improved citation key replacement to preserve original BibTeX formatting
  • Removed unnecessary page reload when toggling modes
  • Added click-to-copy functionality preservation

Version 3.0.3

  • Fixed mode toggle to properly update citekeys by forcing page reload
  • Improved mode switching reliability

Version 3.0.2

  • Fixed key generation when toggling between journal and title modes
  • Improved value cleaning to prevent double braces
  • Fixed field value handling to maintain proper formatting

Version 3.0.1

  • Fixed empty citekey issue for AMS MRlookup entries
  • Improved field name handling to maintain case consistency
  • Fixed BibTeX parsing to properly handle entry types
  • Simplified content update logic for better reliability

Version 3.0.0

  • Version bump to 3.0.0.
  • Improved BibTeX parsing: now handles missing matches and converts field names to lowercase for consistency.
  • Added debug mode with test data support.
  • Added a Standardize BibTeX button for manual standardization.
  • Added a debug toggle button to enable/disable debug mode.
  • Added a test data button to fill the dialog with test data when debug mode is on.
  • Added a debug result display to show standardized BibTeX in a popup instead of copying to clipboard when in debug mode.
  • Fixed the mode indicator overlap issue: only one indicator is shown at a time, even after toggling modes.

Version 2.0.1

  • Fixed compound surname handling to correctly extract the last part of compound surnames
  • Improved author name extraction for cases like "Mundet i Riera" to use "Riera" instead of "Mundet"

Version 2.0.0

  • Added journal abbreviation mode as an alternative to title mode
  • Implemented smart journal abbreviation system
  • Added user interface for mode switching
  • Added visual mode indicator
  • Improved author name handling to include all authors
  • Enhanced error handling and logging

Version 1.5.5

  • Improved author name handling to include all authors' last names
  • Enhanced title word processing with better capitalization
  • Improved year extraction to handle complex formats
  • Added better error handling and logging
  • Fixed URL checking logic

Version 1.5.4

  • Fix data clean in author field

Version 1.5.3

  • Modify the rule for active url
  • Add automatical select bibtex item for site with mrlookup in url

Version 1.5.2

  • Fix the first word ignore rule, change \s* to \s+

Version 1.5.1

Version 1.5

Version 1.4

  • Fix the wrong regular expression for extracting the first word of title

Version 1.3

  • Add rule to clean international character in title and author

Version 1.2

  • Add rule to filter ' and " in Title

Version 1.1

  • Add clean rule of title
  • Recursively remove ignore words in title

Version 1.0

  • the initial version