Bookmarklet for Logging Into Newsbank

This actually can be adopted for any login site, just by adjusting the login fields. It does require two clicks of the login script, but whatever.

javascript:(function(){
  const targetUrl = 'https://infoweb.newsbank.com/apps/news/user/librarycard?destination=easy-search%3Fp%3DNewsBank';
  
  if (window.location.href.indexOf('infoweb.newsbank.com') === -1) {
    window.location.href = targetUrl;
    return;
  }

  const form = document.querySelector('form#nbauth-library-card-form');
  if (form) {
    const fields = {
      'nbauth_library_key': 'xxxx',
      'nbauth_library_card': 'xxxxxxxx',
    };

    for (let name in fields) {
      let input = form.querySelector(`[name="${name}"]`);
      if (input) input.value = fields[name];
    }

    form.submit();
  } else {
    alert('Login form not found. Please ensure you are on the NewsBank login page.');
  }
})();

Map: Alma Pond
Map: Dobbins Memorial State Forest
Map: Little John Wildlife Management Area
Map: Otter Lake
Map: South Hill State Forest (Oneida 23)
Map: Summer Hill State Forest
Map: West Parishville State Forest
SVGZ Graphic: albany-snow-depth
SVGZ Graphic: college-rate
SVGZ Graphic: december-holidays
SVGZ Graphic: ht2025
SVGZ Graphic: lt2025
SVGZ Graphic: Places Named Bethlehem
SVGZ Graphic: Towns with Most Similiar Land Cover to the Town of Bethlehem
Terrain Map: Happy World Milk Day!
Photo: Three Out Of Four
Photo: Ridges In The Distance
Photo: Took camp down before dawn
Photo: 2.5 Miles to Vanderwhacker Firetower
Photo: GOB Piles On North Mountain
Photo: Hot And Humid Afternoon
Photo: Harris Lake
Photo: Green
Photo: With the rumbles of thunder and the radar I decided to turn back
Photo: Happy Pride Month 🏳️‍🌈

Leave a Reply

Your email address will not be published. Required fields are marked *