Created
June 15, 2013 11:29
-
-
Save ide-an/5787827 to your computer and use it in GitHub Desktop.
Autopatchworkを有効にした状態でコミケwebカタログのサークル一覧(サークルカット表示)を開くと、続きのページは補完されるが、お気に入り登録済みのマーカーが表示されない。
このUserScriptは補完されたページでもお気に入りマーカーを表示するようにする。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @include https://webcatalog.circle.ms/Circle | |
// @include https://webcatalog.circle.ms/Circle?* | |
// ==/UserScript== | |
// | |
(function(){ | |
var script = document.createElement("script"); | |
script.textContent = "("+(function(){ | |
var last_href = ""; | |
var f = function(){ | |
var href = $(".circle-cut:last").attr("href"); | |
if(href!==last_href){ | |
ComiketWebCatalog.Api.User.getFavorites(ComiketWebCatalog.Circle.Cut.day, "").success(function(n) { | |
n.Favorites && n.Favorites.forEach(function(n) { | |
$("#" + n.CircleId + " .circlecut-overlay-favorite").addClass("favorite-backgroundcolor-" + n.Color); | |
}); | |
}) | |
} | |
setTimeout(f,1000); | |
}; | |
setTimeout(f,1000); | |
}).toString()+")();"; | |
document.body.appendChild(script); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment