Tampermonkey에 대한 리뷰
Tampermonkey 제작자: Jan Biniok
Firefox 사용자 12239101 님의 리뷰
5점 만점에 5점
Firefox 사용자 12239101 님, 9년 전Thanks 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";
})();
개발자 답글
9년 전에 게시됨// ==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);
};
})();