Skip to content

Instantly share code, notes, and snippets.

spmbt spmbt

Block or report user

Report or block spmbt

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
View hideCompanies.user.js
// ==UserScript==
// @name hideCompanies
// @description Hiding texts of annotations Companies in habra-sites; but main feature is method to load and execute of jQuery or similar external script"
// @include /^https?://(m\.|webcache\.googleusercontent\.com\/search\?q=cache(:|%3A|%3a)(http(:|%3A|%3a)(\/|%2F|%2f)(\/|%2F|%2f))?)?(habrahabr|geektimes|megamozg).ru(?!\/special|\/api)/
// @version 1.2015.12.29
// ==/UserScript==
(function(u,f){var d=document,g=d.body,v='script',s=d.createElement(v),t=d.createElement(v);t.setAttribute('src',u);
s.textContent=typeof f=='function'?'('+f+')();':f;s&&t.addEventListener('load',s);g.appendChild(s);g.appendChild(t)}) //loadAndExecute
("", function(){
spmbt / consoleWcl4
Last active Dec 31, 2015
console,warn, .info, console.log, .error with max logLevel for output and four String.prototype functions: wcw, wci, wcl, wce.<br> Examples:<br> wcl(12,'XXX') //i.e. console.log(12,'XXX');<br> 'Error message'.wce(er) //i.e. console.error("'=E='",'Error message', er);<br>
View consoleWcl4
(function(w, logLevel, wcA){ var lvl =0
,$x = function(el, h){if(h) for(var i in h) el[i] = h[i]; return el};
for(var i in wcA) //консоль[i] как метод строки или функция
w[i] = (function(lvl, wcAI, i){
return function(a){ a = a!==undefined|| arguments.length ? a :'';
if(w.console && logLevel <= lvl)[i], w.console, this instanceof String
//w.console[i].apply(console, this instanceof String //--for without IE
? [wcAI + this +"'"].concat([]
: arguments);
You can’t perform that action at this time.