Skip to content

Instantly share code, notes, and snippets.

@taoufix
taoufix / untrusted-level-07-solution-1.js
Created April 4, 2019 12:07
Untrusted level 07 - solutions
var player = map.getPlayer();
var c = ['#f00', '#0f0', '#ff0'];
player.setColor(c[Math.floor((Math.random() * 3) )]);
@taoufix
taoufix / hn-expand.user.js
Created July 16, 2015 11:52
Enables expanding/collapsing HN News comments.
// ==UserScript==
// @name HN Fix
// @namespace htt://taoufix.com/work
// @include https://news.ycombinator.com/item*
// @version 1
// @grant none
// @require http://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js
// ==/UserScript==
// ==UserScript==
// @name Autocomplete ON
// @namespace http://taoufix.com/autocomplete-on
// @description Set Autocomplete on on password fields
// @include *
// @version 1
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js
// @grant none
// ==/UserScript==
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\AppEvents\Schemes]
@=".None"
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document domain("grooveshark.com") {
/* Network error waning */
#notifications {
display: none;
}
}
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document domain("mail.google.com") {
/* Remove side bar for email detail */
.Bu.y3 { display: none; }
}
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document domain("jira_domain") {
#ghx-detail-view { width: 40% !important;}
}
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document domain("news.ycombinator.com") {
* { background-color: white !important; }
}
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document domain("feedly.com") {
span[class$='UnreadCountHint'] {
color: #777777;
font-weight: bold;
font-size: 1.5em;
}
#sideArea,
@taoufix
taoufix / higlight-keyword.js
Created July 10, 2014 07:58
Highlight keywords
var TEXT="Disponible";
var COLOR = "red";
var BG_COLOR="yellow";
var allText = document.evaluate( "//text()[contains(., '" + TEXT + "' ) or contains(., 'disponible')]", document, null, XPathResult. ORDERED_NODE_SNAPSHOT_TYPE , null);
for(var i=0; i<allText.snapshotLength; i++) {
var cur = allText.snapshotItem(i);
var par = cur.parentNode;
var textInd;
var curName = cur.nodeName;
do {