Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix:greasyfork. APPLIES TO LINKS SEARCH BY SITES #15

Merged
merged 3 commits into from
Sep 30, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions greasyfork_APPLIES-TO-LINKS-SEARCH-BY-SITES.user.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
// ==UserScript==
// @name greasyfork. APPLIES TO LINKS SEARCH BY SITES
// @version 2014.6.30.1213
// @version 2014.9.30.1213
// @description greasyfork.org. makes applies to “All site” link to the “*” by site search (JasonBarnabe/greasyfork#146)
// @namespace https://github.com/jesus2099/konami-command
// @downloadURL https://raw.githubusercontent.com/jesus2099/konami-command/master/greasyfork_APPLIES-TO-LINKS-SEARCH-BY-SITES.user.js
// @updateURL https://raw.githubusercontent.com/jesus2099/konami-command/master/greasyfork_APPLIES-TO-LINKS-SEARCH-BY-SITES.user.js
// @author PATATE12 aka. jesus2099/shamo
// @licence CC BY-NC-SA 3.0 (https://creativecommons.org/licenses/by-nc-sa/3.0/)
// @since 2014.6.6.
// @since 2014.9.30.
// @grant none
// @include https://greasyfork.org/scripts/*
// @include https://www.greasyfork.org/scripts/*
// @include https://greasyfork.org/*/scripts/*
// @exclude *greasyfork.org/scripts/*/*
// @exclude *greasyfork.org/scripts/?
// @exclude *greasyfork.org/scripts/by*
Expand All @@ -20,7 +20,7 @@
var appliesto = document.querySelector("div#script-meta dd.script-show-applies-to");
if (appliesto) {
var at = appliesto.textContent.trim();
if (at.match(/^all sites$/i)) {
if (at.match(/^all sites|Alle Seiten|Todos los sitios|Tous les sites|Semua situs|すべてのサイト|Alle websites|Wszystkie strony|Todos sites|Все сайты|所有站点|所有網站$/i)) {
appliesto.replaceChild(a(at, "*"), appliesto.firstChild);
}
}
Expand All @@ -30,4 +30,4 @@
a.appendChild(document.createTextNode(t));
return a;
}
})();
})();