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: Duck
Photo: Can see some blue sky through the clouds
Photo: Point
Photo: Nice quiet trail along the creek
Photo: Camp Santanoni Gate Lodge Welcome Sign
Photo: Wintery On Woodstock Road
Photo: Farm On County Route 32
Photo: From the Board Walk - Wide Screen
Photo: Beach
Photo: Quite Dry

Leave a Reply

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