Recenzije za Tampermonkey
Tampermonkey Autor: Jan Biniok
5.258 recenzija
- Ocijenjeno s 5 od 5od Korisnik Firefoxa 13182950, prije 9 godina
Odgovor programera
objavljeno prije 9 godinaWebExtensions are not allowed to run at addons.mozilla.org by design:
https://developer.mozilla.org/en-US/Add-ons/WebExtensions/Your_first_WebExtension#Testing- Ocijenjeno s 5 od 5od Korisnik Firefoxa 12239101, prije 9 godinaThanks 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";
})();Odgovor programera
objavljeno prije 9 godina// ==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);
};
})(); - Ocijenjeno s 5 od 5od Korisnik Firefoxa 13165692, prije 9 godina
- Ocijenjeno s 5 od 5od mindfuldev, prije 9 godinaI moved from Greasemonkey because I have one issue with my script (GM_addStyle) and also because GM will stop working after 57. TM works great for me.
- Ocijenjeno s 5 od 5od Korisnik Firefoxa 13146072, prije 9 godina
- Ocijenjeno s 1 od 5od Korisnik Firefoxa 12960771, prije 9 godina
- Ocijenjeno s 5 od 5od Korisnik Firefoxa 13138499, prije 9 godina
- Ocijenjeno s 5 od 5od Korisnik Firefoxa 13128494, prije 9 godina
- Ocijenjeno s 5 od 5od Korisnik Firefoxa 13121577, prije 9 godina
- Ocijenjeno s 5 od 5od Korisnik Firefoxa 13121577, prije 9 godina
- Ocijenjeno s 1 od 5od Korisnik Firefoxa 13113484, prije 9 godina
- Ocijenjeno s 5 od 5od Korisnik Firefoxa 13113484, prije 9 godina