Created
September 16, 2016 17:30
-
-
Save komakino/e12fb4e06eb3b393712bd89999e1cf2f to your computer and use it in GitHub Desktop.
Bokmärken för att göra sidor mer intressanta
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
javascript:!function(a){var b="aeiouyåäö",c="bcdfghjklmnpqrstvwxyz",d=new RegExp("["+c+b+"]+","gi"),e=new RegExp("(["+c+"]*["+b+"]*[j]?)(.*)","i");for(w=a.createTreeWalker(a.body,NodeFilter.SHOW_TEXT,null,!1);n=w.nextNode();)n.nodeValue=n.nodeValue.replace(d,function(a){return(match=a.toLowerCase().match(e))?"fi"+match[2]+" "+match[1]+"kon":a})}(document); |
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
javascript:!function(a){for(w=a.createTreeWalker(a.body,NodeFilter.SHOW_TEXT,null,!1);n=w.nextNode();)n.nodeValue=n.nodeValue.replace(/[aeiouyåäö]/gi,function(a){return a==a.toUpperCase()?"I":"i"})}(document); |
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
javascript:!function(a){for(w=a.createTreeWalker(a.body,NodeFilter.SHOW_TEXT,null,!1);n=w.nextNode();)n.nodeValue=n.nodeValue.replace(/[aeiouyåäö]/gi,function(a){return a+"p"+a.toLowerCase()})}(document); |
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
javascript:!function(a){for(w=a.createTreeWalker(a.body,NodeFilter.SHOW_TEXT,null,!1);n=w.nextNode();)n.nodeValue=n.nodeValue.replace(/[bcdfghjklmnpqrstvwxyz]/gi,function(a){return a+"o"+a.toLowerCase()})}(document); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment