View origin-test.user.js
// ==UserScript== | |
// @name httpbin.org/post XMLHttpRequest Origin header test | |
// @description Origin is null in Greasemonkey https://github.com/greasemonkey/greasemonkey/issues/3111 | |
// @version 1 | |
// @author jesus2099 | |
// @grant none | |
// @match *://httpbin.org/* | |
// ==/UserScript== | |
var xhr = new XMLHttpRequest(); | |
xhr.addEventListener("load", function(event) { |
View gist:c7a796418a3e3829807ebd51470109ff
// The bookmarklet you can find online for bugmenot doesn't work. Looks like | |
// bugmenot now wants just the hostname instead of the full url. Here's one | |
// that works. | |
javascript:(function() { var url = ('http://www.bugmenot.com/view/' + escape(location.hostname)); w = open(url, 'w', 'location=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,width=500,height=400,modal=yes,dependent=yes'); if (w) { setTimeout('w.focus()', 1000) } else { location = url } })(); |
View mb_ACOUSTICBRAINZ-LINKS.user.js
// ==UserScript== | |
// @name mb. ACOUSTICBRAINZ LINKS (for STalKer-X) | |
// @version 2015.3.26.1322 | |
// @description musicbrainz.org: displays AB links in release pages | |
// @compatible opera(12) | |
// @compatible opera+violentmonkey | |
// @namespace https://github.com/jesus2099/konami-command | |
// @downloadURL https://gist.github.com/jesus2099/8e223f09d64d831a9514/raw/mb_ACOUSTICBRAINZ-LINKS.user.js | |
// @updateURL https://gist.github.com/jesus2099/8e223f09d64d831a9514/raw/mb_ACOUSTICBRAINZ-LINKS.user.js | |
// @author PATATE12 |
View iecondition-quirksmode.html
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="author" content="Tristan DANIEL"> | |
<title>Quirksmode</title> | |
</head> | |
<body onload="document.getElementById('compatMode').appendChild(document.createTextNode(document.compatMode));"> | |
<h1>quirksmode</h1> | |
<dl> | |
<dt>document.compatMode</dt> |
View iecondition-html5.html
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="author" content="Tristan DANIEL"> | |
<title>HTML 5</title> | |
</head> | |
<body onload="document.getElementById('compatMode').appendChild(document.createTextNode(document.compatMode));"> | |
<h1>HTML 5</h1> | |
<pre><!DOCTYPE html></pre> |
View iecondition-html401.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
<meta name="author" content="Tristan DANIEL"> | |
<title>HTML 4.01</title> | |
</head> | |
<body onload="document.getElementById('compatMode').appendChild(document.createTextNode(document.compatMode));"> | |
<h1>HTML 4.01</h1> | |
<pre><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"></pre> |
View gist:8580947
javascript:function sr(s,r){var ins=document.querySelectorAll("input[type='text'][name$='name']:not([value='']),input[type='text'][class$='name']:not([value=''])");for(var i=0;i<ins.length;i++){var v=s.match(/^\/.+\/[gi]*$/)?ins[i].value.replace(eval(s),r):ins[i].value.split(s).join(r);ins[i].style.removeProperty("background-color");if(ins[i].value!=v){ins[i].value=v;ins[i].style.setProperty("background-color","yellow");ins[i].focus();}}}void(sr(prompt("search\n\neither regex (case *i*nsensitive and *g*lobal are optional flags): /regex/ig\n\nor normal (case sensitive and global): My String"),prompt("replace"))); |
View _mb. RANDOM RG for cats.user.js
// ==UserScript== | |
// @name mb. RANDOM RG for cats | |
// @version 2013.0605.1111 | |
// @description musicbrainz.org: provides a random release group link from an artist page | |
// @namespace https://gist.github.com/jesus2099/5697130 | |
// @author Tristan DANIEL (PATATE12 aka. jesus2099/shamo) | |
// @licence CC BY-NC-SA 3.0 FR (http://creativecommons.org/licenses/by-nc-sa/3.0/fr/) | |
// @requester ZaphodBeeblebrox | |
// @since 2013.6.3. | |
// @grant none |
View mb.user.css
@charset "utf-8"; | |
/*spot AC*/ | |
span.name-variation { border-bottom: 2px dashed maroon; } | |
/*spot CAA pics and white space around CAA pics*/ | |
a.artwork-image > img { box-shadow: 0 0 8px black; } |
View nomore-a-in-h1-please.user.js
// ==UserScript== | |
// @name mb. NO MORE <A> IN <H1> PLEASE | |
// @version 2013.0205.1554 | |
// @description musicbrainz.org: Remove all anchors from primary headers (special script for Freso, can be incompatible with other scripts relying on <h1>'s <a>) | |
// @namespace jesus2099/shamo | |
// @author Tristan DANIEL (PATATE12 aka. jesus2099/shamo) | |
// @licence CC BY-NC-SA 3.0 FR (http://creativecommons.org/licenses/by-nc-sa/3.0/fr/) | |
// @grant none | |
// @match *://musicbrainz.org/* | |
// @match *://beta.musicbrainz.org/* |
NewerOlder