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
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: Out On Moss Lake
Photo: Straight away to Woodsman Pond Road Bridge
Photo: Creek
Photo: Quite Dry
Photo: Hammock View!  - Wide Screen
Photo: Pine Bush beer
Photo: Oil Creek
Photo: With the rumbles of thunder and the radar I decided to turn back
Photo: House
Photo: Homemade Bridge

Leave a Reply

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