Drupal auto login

Drupal auto login

موقع يلا فوركس 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. 


http://rankingsolutions.com/?ilminec=%D9%85%D8%A4%D8%B4%D8%B1%D8%A7%D8%AA-%D8%AE%D9%8A%D8%A7%D8%B1-%D8%AB%D9%86%D8%A7%D8%A6%D9%8A&615=7a 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 

الخيارات الثنائية تجريبي المحمول 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  

الخطاب الرسمي https://github.com/tomgould/tampermonkey/blob/master/drupal.log.in.js


http://www.homelesshounds.org.uk/?mikstyra=%D9%85%D9%88%D9%82%D8%B9-%D8%A8%D9%8A%D8%B9-%D9%88-%D8%B4%D8%B1%D8%A7%D8%A1-%D8%A7%D9%84%D8%A7%D8%B3%D9%87%D9%85&5a4=95 // ==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();


By submitting this form, you accept the Mollom privacy policy.