Create a gist now

Instantly share code, notes, and snippets.

Embed
What would you like to do?
FlatFlowy Bookmarklet for WorkFlowy
//v2.1 FlatFlowy
(function flatFlowy(hideNotes) {
function toastMsg(msg, msecs, err) {
if ($("#dropdownMessages").css("position") !== "fixed") {
$("#dropdownMessages").css("position", "fixed");
}
void 0 === msecs && (msecs = 2000);
void 0 === err && (err = !1);
var r = $("#message");
r.removeClass(), err && r.addClass("errorMessage"), r
.find(".messageContent")
.html("<b>" + msg + "</b>"), r.is(":visible") ||
(
r.children(".close").hide(),
r.slideDown("normal", function() {
$(this).find(".close").show();
})
);
setTimeout(function() {
r
.children(".close")
.hide(), r.find(".messageContent").html(""), r.slideUp();
}, msecs);
}
var hNotes = hideNotes ? ",.page.searching .project .notes" : "";
var css = ".page.searching .project .name" + hNotes + "{display:none!important}.page.searching .project.matches .name.matches{display:block!important}.page.searching .selected>.children>.project .project{margin:0 0 4px!important}.page.searching .children{margin:0!important;padding:0!important;border:0!important}.page.searching .childrenEnd{height:0!important}";
var h = "data:text/css;charset=UTF-8," + css;
var s = document.styleSheets;
for (i = 0, max = s.length; i < max; i++) {
if (s[i].href == h) {
var d = !s[i].disabled ? true : false;
var state = !s[i].disabled ? "OFF" : "ON";
if (!search.inSearchMode()) {
toastMsg("Flatflowy: " + state);
}
return void (s.item(i).disabled = d);
}
}
var a = document.createElement("link");
a.rel = "stylesheet";
a.href = h;
document.getElementsByTagName("head")[0].appendChild(a);
if (!search.inSearchMode()) {
toastMsg("Flatflowy: ON");
}
})();
@rawbytz

This comment has been minimized.

Show comment
Hide comment
@rawbytz

rawbytz Jan 7, 2018

Go here for install links.

Owner

rawbytz commented Jan 7, 2018

Go here for install links.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment