Skip to content

Instantly share code, notes, and snippets.

View IlanF's full-sized avatar

Ilan Firsov IlanF

  • Israel
View GitHub Profile
@IlanF
IlanF / alerts.css
Created August 28, 2019 08:16
Better Bootstrap alerts
.alert {
border: none;
border-radius: 0.15rem;
padding: 1.25rem 2.5rem 1.25rem 1.5rem;
border-left: 0.5em solid transparent;
}
.alert .alert-link {
text-decoration: underline;
color: inherit;
}
@IlanF
IlanF / script.js
Last active January 10, 2017 13:43
Image alt-tag hover
var hoveredElement = null,
titleElement = null;
document.addEventListener('mouseover', mouseoverimage);
function mouseoverimage(e) {
if(hoveredElement || !e.target || e.target.nodeName != "IMG" || !e.target.attributes.alt) {
return;
}
hoveredElement = e.target;
;(function($) {
'use strict';
swal.setDefaults({
allowEscapeKey: true,
reverseButtons: true
});
$(window).on('ajaxErrorMessage', function (evt, message) {
evt.preventDefault();
@IlanF
IlanF / Fix_HWZone_Whats_new.js
Created September 3, 2015 18:55
Fix HWZone What's new
// ==UserScript==
// @name Fix HWZone What's new
// @namespace http://use.i.E.your.homepage/
// @version 0.1
// @description Fix HWZone What's new and Bookmarks links
// @match http*://hwzone.co.il/community/*
// @copyright
// ==/UserScript==
(function($) {
@IlanF
IlanF / imgur-gif-to-gifv.user.js
Last active August 29, 2015 14:16
Imgur GIF to GIFV redirect
// ==UserScript==
// @name Imgur GIF to GIFV redirect
// @namespace https://gist.github.com/IlanF/115209b792f4e0c0ab55
// @version 0.1
// @description Automatically redirects Imgur direct GIF URLs to GIFV
// @match *://*imgur.com/*.gif
// @run-at document-start
// @grant none
//
// ==/UserScript==
@IlanF
IlanF / HWEditorFinal.user.js
Last active August 29, 2015 14:02
[Greasemonkey] HWzone Restore Hidden Editor Controls *Bug fixed, no need for the script anymore*
// ==UserScript==
// @name HWzone Restore Hidden Editor Controls
// @namespace https://gist.github.com/IlanF/7a6c975b82d986ca87bd
// @version 0.1.3.2
// @description Restores the hidden editor buttons
// @author IlanF
// @homepage http://myrandombits.info
// @match http://*.hwzone.co.il/community/threads/*
// @match http://*.hwzone.co.il/community/newreply.php*
// @match http://*.hwzone.co.il/community/newthread.php*