Skip to content

Instantly share code, notes, and snippets.

Mohamed Hussain S H shmdhussain

  • Sky News Arabia
  • AbuDhabi, UAE
Block or report user

Report or block shmdhussain

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@shmdhussain
shmdhussain / select-dropdown-option-print.js
Created Jan 6, 2018
Get the Options HTMl of dropdown which is selected in debugger
View select-dropdown-option-print.js
var aa=[];
$($0).find("option").each(function(i,el){
var htmlCont = $(this).html();
aa.push(htmlCont)
console.log($(this).html());
})
@shmdhussain
shmdhussain / sna-third-party-ref-url.js
Created Jan 6, 2018
SNA-third-party-reference-doc-urls
View sna-third-party-ref-url.js
// Template
// =================
/*!
* jQuery Templates Plugin 1.0.0pre
* http://github.com/jquery/jquery-tmpl
* Requires jQuery 1.4.2
*
* Copyright Software Freedom Conservancy, Inc.
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
@shmdhussain
shmdhussain / getCookie.js
Created Jan 6, 2018
Get javascript cookies in the console
View getCookie.js
function readCookie(name) {
var nameEQ = name + "=";
var ca = document.cookie.split(';');
for(var i=0;i < ca.length;i++) {
var c = ca[i];
while (c.charAt(0)==' ') c = c.substring(1,c.length);
if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
}
return null;
}
@shmdhussain
shmdhussain / display-none-h-key-devtool.js
Created Jan 29, 2018
In Chrome clicking "h" key in elements tab of devtools panel should toggle the hide/show
View display-none-h-key-devtool.js
var cssRule = `.__web-inspector-hide-shortcut__, .__web-inspector-hide-shortcut__ * {
display: none !important;
}`;
function injectStyleRulejQ(rule, id) {
var div = $("<div />", {
html: '&shy;<style id=' + id + '>' + rule + '</style>'
}).appendTo("body");
You can’t perform that action at this time.