Reviews for Tampermonkey
Tampermonkey by Jan Biniok
Review by Firefox user 12239101
Rated 5 out of 5
by Firefox user 12239101, 7 years agoThanks for correcting me, Jan.
The following script doesn't always kick in on Github issues pages, therefore the add-on simply is unreliable.
// ==UserScript==
// @name Github - Color issues title red.
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://github.com/*/*/issues/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
var element = document.querySelector(".js-issue-title");
element.style.color = "red";
})();
The following script doesn't always kick in on Github issues pages, therefore the add-on simply is unreliable.
// ==UserScript==
// @name Github - Color issues title red.
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://github.com/*/*/issues/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
var element = document.querySelector(".js-issue-title");
element.style.color = "red";
})();
Developer response
posted 7 years ago// ==UserScript==
// @name Github - Color issues title red.
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://github.com/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
var run = function(url) {
if (url.match(/https:\/\/github\.com\/.*\/.*\/issues\/.*/)) {
var element = document.querySelector(".js-issue-title");
element.style.color = "red";
}
};
run(location.href);
var pS = window.history.pushState;
var rS = window.history.replaceState;
window.history.replaceState = function(a, b, url) {
run(url);
rS.apply(this, arguments);
};
window.history.pushState = function(a, b, url) {
run(url);
pS.apply(this, arguments);
};
})();
// @name Github - Color issues title red.
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://github.com/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
var run = function(url) {
if (url.match(/https:\/\/github\.com\/.*\/.*\/issues\/.*/)) {
var element = document.querySelector(".js-issue-title");
element.style.color = "red";
}
};
run(location.href);
var pS = window.history.pushState;
var rS = window.history.replaceState;
window.history.replaceState = function(a, b, url) {
run(url);
rS.apply(this, arguments);
};
window.history.pushState = function(a, b, url) {
run(url);
pS.apply(this, arguments);
};
})();