Drupal auto login

Drupal auto login

click here I have lots of different Drupal sites I have to log in to on a regular basis and remembering what password I am using at any given time is impossible, my Chrome often gets my passwords wrong as well so to make my life easier I have written a tampermonkey script to log me in to my Drupal sites automatically. 


get link I also generally use a batch file if I have to open many sites at the same time so I have included that here as well, typing my password out 17 times becomes very tedious! 


Batch file for opening multiple incognito chrome tabs 

click FOR %%A IN ( http://site-1.co.uk/user http://site-2.co.uk/user http://site-3.co.uk/user http://site-4.co.uk/user http://site-5.co.uk/user ) DO start chrome.exe --incognito %%A

The Tampermonkey script for automatically logging you in to your Drupal sites  

http://investingtips360.com/?klaystrofobiya=%D9%85%D8%A8%D8%A7%D8%B4%D8%B1-%D9%84%D9%84%D8%A7%D8%B3%D9%87%D9%85&800=09 https://github.com/tomgould/tampermonkey/blob/master/drupal.log.in.js

تحليل اليورو دولار

http://gl5.org/?prikolno=%D8%A7%D8%B3%D9%87%D9%85-%D8%A7%D8%A8%D9%88%D8%B8%D8%A8%D9%8A&1ca=99 // ==UserScript== // @name Drupal login. // @namespace http://drupal.log.in/ // @version 0.1 // @description Loggs you in to your drupal site if you're on the user page // @copyright 2014+, Tom Gould // @require https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js // @grant GM_addStyle // ==/UserScript== var your_drupal_login = function() { var hostname = window.location.hostname.toLowerCase().replace('www.', ''); var pathname = window.location.pathname.toLowerCase();   /** * Sites to log in to */ var drupalSites = { tomgould: { host: "tom-gould.co.uk", user: "Username", pass: "password" }, TheWhiteHouse: { host: "petitions.whitehouse.gov", user: "Barack.Obama", pass: "Passw0rd123" } };   if (pathname === "/user") { for (var key in drupalSites) { var site = drupalSites[key]; if (site.host === hostname && $('input[name="name"]').length) { var r = confirm("Do you want to log in as " + site.user + " using password " + site.pass + "?"); if (r === true) { $('input[name="name"]').val(site.user); $('input[name="pass"]').val(site.pass); $('#edit-submit').click(); } } } } };   your_drupal_login();