140+ Background Colors for WorkFlowy Lists is not working
Hi,
I've been using this style https://userstyles.org/styles/146297/140-background-colors-for-workflowy-lists
for quite sometimes and I have to say it's very crucial for my workflowy.
It's not working now.
Can anyone help?
Thank you so much :D
-
Hi Tuang,
Please copy the below code and replace the existing code in the Tampermonkey WorkFlowyStylableTags script with it:
// ==UserScript==
// @name WorkflowyStylableTags (II)
// @description Gives each tag it's own CSS style, so you can style them with CSS.
// @author LukeMT
// @include http*://*workflowy.com/*
// @version 1.1
// ==/UserScript==
String.prototype.endsWith = function(suffix) {
return this.indexOf(suffix, this.length - suffix.length) !== -1;
};
var customClasses = function(index, old){
var classes = old.split(" ");
var custom = [];
for( i = 0; i < classes.length; i++){
if(classes[i].endsWith("-proj")){ custom.push(classes[i]);}
}
return custom.join(" ");
};
var StylableTagsCounter = 1;
setInterval(function(){
StylableTagsCounter ++;
if( StylableTagsCounter >= 3){
$('.project').removeClass(customClasses);
$('.pageContainer').removeClass(customClasses);
StylableTagsCounter = 0;
}
$('span > .contentTagText').map( function(){
var x = $(this).text().toLowerCase();
$(this).closest('.project').addClass(x+"-proj");}
);
},10);
Please sign in to leave a comment.
Comments
4 comments