From: Samir Benmendil Date: Fri, 20 Sep 2013 10:05:39 +0000 (+0200) Subject: update greasemonkey scripts X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/9f8a06916f318807760115df9e1a40ec9c4d60ff update greasemonkey scripts --- diff --git a/dwb/greasemonkey/Reddit Max Dark.user.js b/dwb/greasemonkey/Reddit Max Dark.user.js new file mode 100644 index 0000000..7d8d9da --- /dev/null +++ b/dwb/greasemonkey/Reddit Max Dark.user.js @@ -0,0 +1,33 @@ +// ==UserScript== +// @name Reddit Max Dark +// @namespace http://userstyles.org +// @description A dark colour scheme for the Reddit Max Dark GreaseMonkey script (http://userscripts.org/scripts/show/85422). See link for screenshots. +// @author GoldenBoar +// @homepage http://userstyles.org/styles/36498 +// @include http://www.reddit.com/* +// @include https://www.reddit.com/* +// @include http://*.www.reddit.com/* +// @include https://*.www.reddit.com/* +// @run-at document-start +// ==/UserScript== +(function() { +var css = "body {\nbackground-color: #333333 !important;\ncolor: #999999;\n}\n\nbody > div.content {\nmargin-top: 20px !important;\n}\n\nhr, .wiki .editlink hr {\nheight: 1px !important;\nborder: none !important;\nbackground-color: #111111 !important;\n}\n\nh1 {\nmargin: 0 !important;\nfont-size: 200% !important;\ntext-transform: uppercase !important;\n}\n\na {\ncolor: #6699CC !important;\n}\n\na:hover {\ncolor: #99CCFF !important;\ntext-decoration: none !important;\n}\n\n#header {\nposition: fixed !important;\npadding: 0 10px 0 10px !important;\ntop: 0 !important;\nheight: 16px !important;\nleft: 0px !important;\nright: 0px !important;\nborder-bottom: 1px solid #111111 !important;\nbackground-color: #000000 !important;\nopacity: 0.1;\n}\n\n#header:hover {\nopacity: 1 !important;\n}\n\n#sr-header-area {\ndisplay: inline-block !important;\nfloat: right !important;\nwidth: auto !important;\nbackground-color: transparent !important;\nborder: none !important;\nwhite-space: normal !important;\n}\n\n#sr-header-area ul {\ndisplay: none !important;\n}\n\n#sr-header-area span.separator {\ndisplay: none !important;\n}\n\n#sr-more-link {\ndisplay: none !important;\n}\n\n#header-bottom-right {\nright: 330px !important;\n}\n\n#header-img-a {\ndisplay: none !important;\n}\n\n#sr-header-area .dropdown .selected {\nbackground: url(\"http://www.reddit.com/static/droparrowgray.gif\") no-repeat scroll right center transparent !important;\ndisplay: inline-block !important;\nmargin-left: 0 !important;\nmargin-right: 0 !important;\npadding-left: 5px !important;\npadding-right: 18px !important;\ncolor: #77BB88 !important;\nfont-weight: bold !important;\ncursor: pointer !important;\n}\n\n#sr-header-area .dropdown .selected:hover {\ncolor: #AAEEBB !important;\n}\n\n#sr-header-area .drop-choices {\nmargin-top: 0 !important;\nposition: fixed !important;\nright: 0 !important;\nwhite-space: normal !important;\nwidth: 470px !important;\nleft: auto !important;\nbackground-color: #222222 !important;\nborder: 1px solid #111111 !important;\n}\n\n#sr-header-area .drop-choices a.choice {\ndisplay: inline-block !important;\npadding: 2px 5px 1px 5px !important;\n}\n\n#sr-header-area .drop-choices a.choice:hover {\nbackground-color: inherit !important;\n}\n\n#sr-header-area .drop-choices a.choice.newmail {\ncolor: #CF7F7F !important;\n}\n\n#sr-header-area .drop-choices a.choice.newmail:hover {\ncolor: orangered !important;\n}\n\n\n#sr-header-area .srdrop .choice.bottom-option {\ndisplay: none !important;\n}\n\nspan.subMenu {\ndisplay: block !important;\ncolor: #999999 !important;\n}\n\nform.logout {\ndisplay: inline-block !important;\n}\n\nform.logout a {\npadding: 2px 5px 1px 5px !important;\n}\n\nform.logout a:hover {\ntext-decoration: none !important;\n}\n\n.pagename {\nmargin-right: 10px !important;\ncolor: #77BB88 !important;\nfont-size: 100% !important;\nfont-variant: normal !important;\n}\n\n.pagename a {\ncolor: #77BB88 !important;\ntext-decoration: none !important;\n}\n\n.pagename a:hover {\ncolor: #AAEEBB !important;\n}\n\n.tabmenu {\nmargin-top: 0 !important;\n}\n\n.tabmenu li a {\nbackground-color: #222222 !important;\npadding: 0 5px 0 5px !important;\n}\n\n.tabmenu li a:hover {\nbackground-color: #222222 !important;\npadding: 0 5px 0 5px !important;\n}\n\n.tabmenu li.selected a {\nborder-top: none !important;\nborder-bottom: 1px solid #333333 !important;\nborder-left: 1px solid #111111 !important;\nborder-right: 1px solid #111111 !important;\nbackground-color: #333333 !important;\ncolor: orangered !important;\n}\n\n.userbar .selected img {\nposition: relative !important;\ntop: 1px !important;\n}\n\n.myhome {\ndisplay: inline-block !important;\nmargin-left: 0 !important;\nmargin-right: 0 !important;\npadding-left: 5px !important;\nfont-weight: bold !important;\ncursor: pointer !important;\n}\n\n.myhome a {\ncolor: #77BB88 !important;\n}\n\n.myhome a:hover, .max:hover, .toggleSidebar:hover {\ncolor: #AAEEBB !important;\n}\n\n#siteTable_organic {\nmargin: 0 336px 0 10px !important;\nborder-radius: 10px !important;\n-moz-border-radius: 10px !important;\n-webkit-border-radius: 10px !important;\nborder: 1px solid #111111 !important;\nbackground-color: #222222 !important;\npadding: 10px !important;\n}\n\n.organic-listing .entry {\nmargin-right: 70px !important;\n}\n\n.organic-listing .link, .organic-listing .link.promotedlink {\nborder: 1px solid #111111 !important;\nbackground-color: #333333 !important;\npadding: 5px !important;\n}\n\n.link.promotedlink.promoted {\nbackground-color: #000000 !important;\n}\n\n#siteTable_organic .rank {\nwidth: 0px !important;\ndisplay: none !important;\n}\n\n#siteTable_organic .link a.title:visited {\ncolor: #888888 !important;\n}\n\n#siteTable_organic .nextprev {\nmargin: 10px 10px 0 0 !important;\n}\n\n#siteTable_organic .help a.open {\nmargin: 0 15px 15px 0 !important;\n}\n\n.organic-listing .sponsored-tagline {\nright: 70px !important;\nmargin: 0 10px 4px 0 !important;\n}\n\n#siteTable {\nmargin: 0 336px 0 10px !important;\nborder-radius: 10px !important;\n-moz-border-radius: 10px !important;\n-webkit-border-radius: 10px !important;\nborder: 1px solid #111111 !important;\nbackground-color: #222222 !important;\npadding: 10px 10px 0 10px !important;\n}\n\n.linklisting .link {\nmargin: 0 0 10px 0 !important;\nborder: 1px solid #111111 !important;\nbackground-color: #333333 !important;\npadding: 5px !important;\n}\n\n#siteTable .comment {\nmargin: 0 0 10px 0 !important;\nborder: 1px solid #111111 !important;\nbackground-color: #333333 !important;\npadding: 5px !important;\n}\n\n#siteTable .link a.title:visited {\ncolor: #888888 !important;\n}\n\n.domain a, .tagline a, .domain a, .tagline a {\ncolor: #77BB88 !important;\n}\n\n.domain a:hover, .tagline a:hover {\ncolor: #AAEEBB !important;\n}\n\n.link .usertext .md {\nborder-radius: 10px !important;\n-moz-border-radius: 10px !important;\n-webkit-border-radius: 10px !important;\nbackground-color: #222222 !important;\nborder:1px solid #111111 !important;\npadding: 5px !important;\n}\n\n.sitetable {\nbackground-color: inherit !important;\n}\n\n.menuarea {\nmargin: 0 0 0 10px !important;\nborder-bottom: none !important;\ncolor: #999999 !important;\ntext-transform: uppercase !important;\n}\n\n.menuarea .flat-list li.selected a {\ncolor: orangered !important;\n}\n\n.message {\nmargin: 0 0 10px 0 !important;\nborder: 1px solid #111111 !important;\nbackground-color: #333333 !important;\npadding: 5px !important;\n}\n\n.message .subject {\ncolor: #999999 !important;\n}\n\n.message .subject .title {\nfont-style: normal !important;\n}\n\n.side {\nmargin: 0 10px 10px 10px !important;\nborder-radius: 10px !important;\n-moz-border-radius: 10px !important;\n-webkit-border-radius: 10px !important;\nborder: 1px solid #111111 !important;\nbackground-color: #222222 !important;\npadding: 0 10px !important;\n}\n\n.side .spacer {\nmargin: 10px 0 !important;\nbackground-color: #222222 !important;\n}\n\n.panestack-title {\ndisplay: inline-block !important;\nmargin: 10px 0 0 20px !important;\nborder-bottom: none !important;\ncolor: #999999 !important;\ntext-transform: uppercase !important;\n}\n\n.panestack-title .title {\nfont-size: larger !important;\n}\n\n.nestedlisting {\nmargin: 0 336px 0 10px !important;\nborder:1px solid #111111 !important;\nbackground-color: #222222 !important;\npadding: 10px !important;\n}\n\n.nestedlisting .parent {\nmargin: 0 !important;\npadding: 0 !important;\n}\n\n.nestedlisting .child {\nmargin: 0 !important;\npadding: 0 !important;\nborder-left: none !important;\n}\n\n.nestedlisting .comment {\nmargin: 0 0 10px 0 !important;\npadding: 5px 0 10px 5px !important;\nborder-radius: 10px !important;\n-moz-border-radius: 10px !important;\n-webkit-border-radius: 10px !important;\nborder:1px solid #111111 !important;\nbackground-color: #333333 !important;\n}\n\n.nestedlisting .comment .comment {\nmargin: 5px 0 0 10px !important;\npadding: 5px 0 5px 5px !important;\nborder-radius: 10px 0 0 10px !important;\n-moz-border-radius: 10px 0 0 10px !important;\n-webkit-border-radius: 10px 0 0 10px !important;\nborder:1px solid #111111 !important;\nborder-right: none !important;\nbackground-color: #222222 !important;\n}\n\n.nestedlisting .comment .comment .comment {\nbackground-color: #333333 !important;\n}\n\n.nestedlisting .comment .comment .comment .comment {\nbackground-color: #222222 !important;\n}\n\n.nestedlisting .comment .comment .comment .comment .comment {\nbackground-color: #333333 !important;\n}\n\n.nestedlisting .comment .comment .comment .comment .comment .comment {\nbackground-color: #222222 !important;\n}\n\n.nestedlisting .comment .comment .comment .comment .comment .comment .comment {\nbackground-color: #333333 !important;\n}\n\n.nestedlisting .comment .comment .comment .comment .comment .comment .comment .comment {\nbackground-color: #222222 !important;\n}\n\n.nestedlisting .comment .comment .comment .comment .comment .comment .comment .comment .comment {\nbackground-color: #333333 !important;\n}\n\n.nestedlisting .comment .comment .comment .comment .comment .comment .comment .comment .comment .comment {\nbackground-color: #222222 !important;\n}\n\n.nestedlisting .comment .comment .comment .comment .comment .comment .comment .comment .comment .comment .comment {\nbackground-color: #333333 !important;\n}\n\n.nestedlisting .comment .comment .comment .comment .comment .comment .comment .comment .comment .comment .comment .comment {\nbackground-color: #222222 !important;\n}\n\n.nestedlisting .comment .comment .comment .comment .comment .comment .comment .comment .comment .comment .comment .comment .comment {\nbackground-color: #333333 !important;\n}\n\n.nestedlisting .comment .comment .comment .comment .comment .comment .comment .comment .comment .comment .comment .comment .comment .comment {\nbackground-color: #222222 !important;\n}\n\n.nestedlisting .comment .comment .comment .comment .comment .comment .comment .comment .comment .comment .comment .comment .comment .comment .comment {\nbackground-color: #333333 !important;\n}\n\n.nestedlisting .comment .comment .comment .comment .comment .comment .comment .comment .comment .comment .comment .comment .comment .comment .comment .comment {\nbackground-color: #222222 !important;\n}\n\n.nestedlisting .comment .comment .comment .comment .comment .comment .comment .comment .comment .comment .comment .comment .comment .comment .comment .comment .comment {\nbackground-color: #333333 !important;\n}\n\n.nestedlisting .comment .comment .comment .comment .comment .comment .comment .comment .comment .comment .comment .comment .comment .comment .comment .comment .comment .comment {\nbackground-color: #222222 !important;\n}\n\n.nestedlisting .comment .comment .comment .comment .comment .comment .comment .comment .comment .comment .comment .comment .comment .comment .comment .comment .comment .comment .comment {\nbackground-color: #333333 !important;\n}\n\n.nestedlisting .comment .comment .comment .comment .comment .comment .comment .comment .comment .comment .comment .comment .comment .comment .comment .comment .comment .comment .comment .comment {\nbackground-color: #222222 !important;\n}\n\n.nestedlisting .child .morechildren {\nmargin: 5px 0 0 15px !important;\npadding: 0 !important;\n}\n\n.nestedlisting .morechildren a {\ncolor: #77BB88 !important;\n}\n\n.nestedlisting .morechildren a:hover {\ncolor: #AAEEBB !important;\ntext-decoration: none !important;\n}\n\n.comment .expand:hover {\nbackground-color: inherit !important;\n}\n\n.nestedlisting .usertext-body .md {\nmargin: 0 !important;\npadding: 0 5px 0 0 !important;\nmax-width: none !important;\n}\n\n.flat-list.buttons a {\ncolor: #999999 !important;\n}\n\n.flat-list.buttons a:hover {\ncolor: #99CCFF !important;\n}\n\n.nestedlisting .deepthread {\nbackground: none !important;\n}\n\n.nestedlisting .deepthread a {\nmargin: 0 0 0 15px !important;\npadding: 0 !important;\nfont-weight: bold !important;\n}\n\n.nestedlisting .deepthread a:after {\ncontent: '...';\n}\n\n.new-comment .usertext-body {\nmargin: 5px 0 !important;\nborder: 1px solid #111111 !important;\nborder-right: none !important;\nbackground-color: #000000 !important;\npadding: 0 0 0 5px !important;\n}\n\n.gold-accent.comment-visits-box {\ndisplay: block !important;\nmax-width: none !important;\nmargin-right: 336px !important;\n}\n\n.min-body .content {\nborder-right: none !important;\nmax-width: none !important;\nmargin-top: 0 !important;\n}\n\n.comments-panel .infobar {\nmargin: 10px !important;\npadding: 10px !important;\n}\n\n.comments-panel .nestedlisting {\nmargin: 10px !important;\nborder:1px solid #111111 !important;\nbackground-color: inherit !important;\npadding: 10px 10px 0 10px !important;\n}\n\n.message.new > .entry {\nbackground-color: #000000 !important;\nborder: 1px solid #111111 !important;\npadding: 5px !important;\n}\n\n#newlink {\nwidth: 542px !important;\nmargin: 10px 336px 10px 10px !important;\nborder-radius: 10px !important;\n-moz-border-radius: 10px !important;\n-webkit-border-radius: 10px !important;\nbackground-color: #222222 !important;\nborder:1px solid #111111 !important;\n}\n\n#newlink ul.tabmenu.formtab {\nborder-radius: 10px 10px 0 0 !important;\n-moz-border-radius: 10px 10px 0 0 !important;\n-webkit-border-radius: 10px 10px 0 0 !important;\nbackground-color: #000000 !important;\nborder-bottom: 1px solid #111111 !important;\n}\n\n#newlink .tabmenu.formtab a {\nmargin: 0 3px !important;\nborder: none !important;\nbackground-color: #333333 !important;\nfont-weight: bold !important;\n}\n\n#newlink .tabmenu.formtab li.selected a {\nbackground-color: #222222 !important;\nborder: 1px solid #111111 !important;\nborder-bottom: 1px solid #222222 !important;\ncolor: orangered !important;\nfont-size: 100% !important;\n}\n\n#newlink .formtabs-content {\nborder-top: none !important;\npadding: 10px !important;\n}\n\n#newlink .infobar {\nwidth: 510px !important;\nmargin: 0 !important;\n}\n\n#newlink .roundfield {\nborder-radius: 0 !important;\n-moz-border-radius: 0 !important;\n-webkit-border-radius: 0 !important;\nbackground-color: #333333 !important;\nborder: 1px solid #111111 !important;\n}\n\n#newlink > div.spacer {\nmargin: 0 0 10px 10px !important;\n}\n\n#newlink .formtabs-content .spacer + .spacer {\nmargin: 10px 0 0 0 !important;\n}\n\n#newlink .formtabs-content .spacer {\nmargin-bottom: 0 !important;\n}\n\n#sr-form {\nwidth: 542px !important;\nmargin: 10px 336px 10px 10px !important;\nborder-radius: 10px !important;\n-moz-border-radius: 10px !important;\n-webkit-border-radius: 10px !important;\nbackground-color: #222222 !important;\nborder:1px solid #111111 !important;\n}\n\n#sr-form .linefield {\nwidth: 520px !important;\nmargin: 10px !important;\nborder:1px solid #111111 !important;\nbackground-color: #333333 !important;\npadding: 5px 0 0 0 !important;\n}\n\n#sr-form .linefield .title {\nmargin: 0 !important;\nbackground-color: inherit !important;\npadding: 0 0 0 10px !important;\ncolor: #999999 !important;\nfont-size: large !important;\nfont-variant: normal !important;\nfont-weight: normal !important;\ntext-transform: uppercase !important;\n}\n\n#sr-form .linefield .linefield-content {\nborder: none !important;\npadding: 5px 10px 10px 10px !important;\n}\n\n#sr-form .linefield.usertext .infobar {\nwidth: 490px !important;\nmargin: 5px 0 0 0 !important;\n}\n\n#sr-form .btn {\nmargin: 0 0 10px 10px !important;\n}\n\n#pref-delete, #pref-update, #compose-message {\nwidth: 522px !important;\nmargin: 10px 336px 10px 10px !important;\nborder-radius: 10px !important;\n-moz-border-radius: 10px !important;\n-webkit-border-radius: 10px !important;\nbackground-color: #222222 !important;\nborder:1px solid #111111 !important;\npadding: 10px !important;\n}\n\n#pref-delete .roundfield, #pref-update .roundfield, #compose-message .roundfield {\nborder-radius: 0 !important;\n-moz-border-radius: 0 !important;\n-webkit-border-radius: 0 !important;\nbackground-color: #333333 !important;\nborder: 1px solid #111111 !important;\n}\n\n#pref-delete .spacer + .spacer, #pref-update .spacer + .spacer, #compose-message .spacer + .spacer {\nmargin: 10px 0 !important;\n}\n\n.delete-field {\nbackground-color: inherit !important;\n}\n\n.create-reddit h1, .create-promotion h1 {\ncolor: #999999 !important;\n}\n\n.roundfield .title {\ncolor: #999999 !important;\ntext-transform: uppercase !important;\n}\n\n.searchpane {\nmargin: 10px 336px 10px 10px !important;\nborder:1px solid #111111 !important;\nbackground-color: #222222 !important;\ncolor: #999999 !important;\n}\n\n.infobar {\nmargin: 10px 336px 10px 10px !important;\nborder:1px solid #111111 !important;\nbackground-color: #000000 !important;\ncolor: #999999 !important;\n}\n\n.subreddit .midcol {\nwidth: 100px !important;\nmargin: 10px 10px 0 0 !important;\n}\n\n.subreddit .entry {\nmargin: 0 !important;\nborder-radius: 10px !important;\n-moz-border-radius: 10px !important;\n-webkit-border-radius: 10px !important;\nbackground-color: #333333 !important;\nborder: 1px solid #111111 !important;\npadding: 10px !important;\n}\n\n.subreddit .usertext .md {\nborder-radius: 0 !important;\n-moz-border-radius: 0 !important;\n-webkit-border-radius: 0 !important;\nborder: none !important;\nborder-top: 1px solid #111111 !important;\nborder-bottom: 1px solid #111111 !important;\nbackground-color: inherit !important;\npadding: 10px !important;\n}\n\n.usertable {\ndisplay: block !important;\nmargin: 10px !important;\n}\n\n.friend-note.edited input[type=\"text\"] {\nwidth: 440px !important;\n}\n\n.content.preftable {\nmargin: 10px !important;\nbackground-color: #222222 !important;\nborder: 1px solid #111111 !important;\ncolor: #999999 !important;\n}\n\n.content.preftable tbody tr {\nmargin: 10px !important;\n}\n\n.titlebox {\nborder:1px solid #111111 !important;\nbackground-color: #333333 !important;\npadding: 5px !important;\ncolor: #999999 !important;\n}\n\n.gold-expiration-info {\nwidth: 266px !important;\nmargin: 5px 0 !important;\n}\n\n.trophy-name {\ncolor: #6699CC !important;\n}\n\n.trophy-description {\ncolor: #77BB88 !important;\n}\n\n.sidecontentbox a.helplink {\nmargin-top: 10px !important;\n}\n\n.sidecontentbox .content {\nborder: 1px solid #111111 !important;\nbackground-color: #333333 !important;\ncolor: #999999 !important;\n}\n\n.dropdown.lightdrop .selected {\ncolor: #6699CC !important;\ntext-decoration: none !important;\n}\n\n.dropdown.lightdrop .selected:hover {\ncolor: #99CCFF !important;\n}\n\n.nextprev {\nmargin: 10px 0 10px 20px !important;\ntext-transform: uppercase !important;\n}\n\n.footer-parent {\nmargin-top: 10px !important;\nborder-top: 1px solid #111111 !important;\nbackground-color: #000000 !important;\npadding: 0 !important;\n}\n\n.footer {\nborder: 1px solid #111111 !important;\nbackground-color: #222222 !important;\n}\n\n.footer .col {\nborder-left: none !important;\nmargin: 0 0 0 10px !important;\npadding: 0 !important;\n}\n\n.footer .col a.red {\ncolor: #CF7F7F !important;\n}\n\n.footer .col a.red:hover {\ncolor: orangered !important;\n}\n\n.commentarea .menuarea {\ndisplay: inline !important;\n//padding: 0 !important;\n}\n\n.commentarea > .usertext {\nclear: left !important;\n}\n\n.morelink .nub {\nbackground-color: #222222 !important;\n}\n\n.message.message-parent .subject {\nmargin: 5px 0 10px 5px !important;\n}\n\n.message.message-parent .child, .message.message-reply .child {\nmargin: 10px !important;\npadding: 0 !important;\n}\n\n.message.message-reply .entry, .message.message-parent .entry {\nmargin: 0px !important;\nborder: none !important;\npadding: 5px !important;\n}\n\n.message-reply {\nborder-radius: 10px !important;\n-moz-border-radius: 10px !important;\n-webkit-border-radius: 10px !important;\nborder: 1px solid #111111 !important;\nbackground-color: #222222 !important;\n}\n\n.md {\nmax-width: none !important;\ncolor: #999999 !important;\n}\n\n.usertext .help-toggle a {\ntext-transform: capitalize !important;\n}\n\n.message.message-reply.recipient > .entry .head, .message.message-parent.recipient > .entry .head {\ncolor: #999999 !important;\n}\n\n.message.message-parent .tagline, .message.message-reply .tagline {\ncolor: #999999 !important;\n}\n\na.expand-btn {\ntext-transform: capitalize !important;\n}\n\n.message .subject .correspondent {\nbackground-color:#222222 !important;\nborder:1px solid #111111 !important;\n}\n\nh1 {\ncolor: #999999 !important;\n}\n\n#suggested-reddits {\ncolor: #999999 !important;\n}\n\n#suggested-reddits span{\ntext-transform: uppercase !important;\n}\n\n.roundfield label, .linefield label {\ncolor: #999999 !important;\n}\n\n.gray {\ncolor: #777777 !important;\n}\n\n.side a.reddit-comment-link {\ncolor: #77BB88 !important;\n}\n\n.side a.reddit-comment-link:hover {\ncolor: #77BB88 !important;\ntext-decoration: underline !important;\n}\n\n.sidebox .subtitle {\ncolor: #999999 !important;\n}\n\n.fancy-toggle-button {\ntext-transform: uppercase !important;\n}\n\n.fancy-toggle-button .remove, .side .fancy-toggle-button .remove {\nbackground-image: none !important;\nborder:1px solid #CF7F7F !important;\nbackground-color: #000000 !important;\ncolor: #CF7F7F !important;\n}\n\n.fancy-toggle-button .add, .side .fancy-toggle-button .add {\nbackground-image: none !important;\nborder:1px solid #7FCF7F !important;\nbackground-color: #000000 !important;\ncolor: #7FCF7F !important;\n}\n\n.fancy-toggle-button .remove:hover, .side .fancy-toggle-button .remove:hover {\nborder-color: orangered !important;\ncolor: orangered !important;\n}\n\n.fancy-toggle-button .add:hover, .side .fancy-toggle-button .add:hover {\nborder-color: #AAEEBB !important;\ncolor: #AAEEBB !important;\n}\n\n.search-summary {\ncolor: #999999 !important;\n}\n\n.usertext.border .usertext-body {\nmargin: 5px 0 !important;\nbackground-color: #000000 !important;\n}\n\n.linkinfo {\nborder: 1px solid #111111 !important;\nbackground-color: #333333 !important;\ncolor: #999999 !important;\n}\n\n.linkinfo .upvotes {\ncolor: #FF8B60 !important;\n}\n\n.linkinfo .downvotes {\ncolor: #9494FF !important;\n}\n\n.comment-visits-box {\nmargin: 10px !important;\npadding: 5px !important;\n}\n\n.morelink {\nborder-radius: 10px !important;\n-moz-border-radius: 10px !important;\n-webkit-border-radius: 10px !important;\nbackground: none repeat-x scroll left center #000000 !important;\nborder: 1px solid #111111 !important;\n}\n\n#ad-frame, #ad, #adlink {\nbackground-color: #000000 !important;\n}\n\n.morelink .nub {\ndisplay: none !important;\n}\n\n#lang option {\ncolor: #999999 !important;\n}\n\n#lang option:hover, #lang option:checked {\nbackground-color: #222222 !important;\n}\n\n#lang option[selected='selected'] {\ncolor: #6699CC !important;\n}\n\n.usertext table.markhelp {\nbackground-color: #222222 !important;\n}\n\n.usertext .markhelp, .usertext .markhelp td, .usertext .markhelp tr {\nborder: 1px solid #111111 !important;\n}\n\n.usertext .markhelp tbody > tr:first-child {\nbackground-color: #000000 !important;\n}\n\n.usertext .markhelp .spaces {\nbackground-color: #333333 !important;\n}\n\n.gold-accent {\nbackground-color: #222222 !important;\nborder: 1px solid #111111 !important;\ncolor: #996515 !important;\n}\n\n.gold-accent h1, .gold-accent th {\ncolor: #996515 !important;\n}\n\ntr.gold-accent + tr > td {\npadding: 10px !important;\n}\n\ntr.gold-accent + tr > td .btn {\ntext-transform: capitalize !important;\n}\n\n.preftable td.prefright > p:nth-of-type(6) option {\ncolor: #999999 !important;\n}\n\n.preftable td.prefright > p:nth-of-type(6) option:hover, .preftable td.prefright > p:nth-of-type(6) option:checked {\nbackground-color: #222222 !important;\n}\n\n.preftable td.prefright > p:nth-of-type(6) option[selected='selected'] {\ncolor: #6699CC !important;\n}\n\n\n.max {\ndisplay: inline-block !important;\nmargin-left: 0 !important;\nmargin-right: 5px !important;\npadding-left: 5px !important;\nfont-weight: bold !important;\ncursor: pointer !important;\ncolor: #77BB88;\n}\n\n.toggleSidebar {\ndisplay: inline-block !important;\nmargin-left: 0 !important;\nmargin-right: 5px !important;\npadding-left: 5px !important;\nfont-weight: bold !important;\ncursor: pointer !important;\ncolor: #77BB88;\n}\n\n.expandoImage, .imgDiv {\nmargin: 10px 10px 0 10px !important;\n}\n\n.expandoImage > img, .imgDiv > img {\nwidth: 100%;\nborder: 1px solid #111111 !important;\n}\n\n.expandoCollapse, .imgCollapso {\nmargin-left: auto !important;\npadding: 0 5px !important;\nwidth: 35px;\nborder: 1px solid #111111;\nborder-top: none;\nbackground-color: #000000;\nfont-size: small;\ntext-align: right;\nfont-weight: bold;\n}\n\n.expandoCollapse > a, .imgCollapso > a {\ncolor: #6699CC !important;\n}\n\n.expandoCollapse {\nmargin-right: 20px !important;\n}\n\n.imgExpando {\nmargin-left: 5px !important;\n}\n\n.imgExpando > a {\ncolor: #CF7F7F !important;\n}\n\n.imgExpando > a:hover {\ncolor: orangered !important;\ncursor: pointer;\n}\n\n.imgCollapso {\nmargin-right: 10px !important;\nmargin-bottom: 10px !important;\nwidth: 35px;\n}\n\n.expandoCollapse > a:hover, .imgCollapso > a:hover {\ncolor: orangered !important;\ncursor: pointer;\n}\n\n.showImages, .hideImages {\ncolor: #CF7F7F;\n}\n\n.showImages:hover, .hideImages:hover {\ncolor: orangered;\ncursor: pointer;\n}\n\n.collapseImages {\ncolor:#888888;\nfont-weight:bold;\npadding:0 1px;\n}\n\n.imgMenuTitle {\nmargin-left: 10px;\nfont-variant:small-caps;\nfont-weight:bold;\n}\n\n.imgMenu {\ndisplay:inline-block;\nlist-style-type:none;\nmargin-top:5px !important !important;\nwhite-space:nowrap;\n}\n\n.imgMenu li {\ndisplay:inline;\nfont-weight:bold;\nmargin:0 3px !important;\n}\n\n.imgMenu li a {\nbackground-color: #222222;\npadding:0 5px !important;\n}\n\n.imgMenu li a:hover {\nbackground-color:#222222 !important;\npadding:0 5px !important;\n}\n\n.imgMenu li.selected a {\nbackground-color:#333333 !important;\nborder-color:-moz-use-text-color #111111 #333333 !important;\nborder-style:none solid solid !important;\nborder-width:medium 1px 1px !important;\ncolor:orangered !important;\nz-index:100;\n}\n\n.toggleReplies {\ncolor:#888888;\nfont-weight:bold;\npadding:0 1px;\n}\n\n.comment {\nmargin-top: 10px !important;\n}\n\n.rank.maximise {\nmargin: 0 !important;\n}\n\n.thumbnail.maximise {\ndisplay: none;\n}\n\n.title.maximise {\ndisplay: inline;\n}\n\n.tagline.maximise {\ndisplay: inline-block;\nmargin-right: 10px !important;\n}\n\n.buttons.maximise {\ndisplay: inline-block !important;\n}\n\n.domain {\nmargin-right: 10px !important;\n}\n\n.midcol.maximise {\nwidth: 80px !important;\ntext-align: center !important;\n}\n\n.arrow.up.maximise, .arrow.upmod.maximise {\nfloat: right;\n}\n\n.arrow.down.maximise, .arrow.downmod.maximise {\nfloat: left;\n}\n\n.score.maximise {\nfloat: right;\nwidth: 50px; !important;\n}\n\n.side.hide {\ndisplay: none !important;\n}\n\n.md, .subreddit .description {\nmax-width: none !important;\n}\n\n\n.expando-button.maximise {\nwidth: 16px !important;\nheight: 16px !important;\nmargin: 1px 5px 0 0 !important;\n}\n\n.sitetable.nestedlisting.full-width, #siteTable.full-width, #siteTable_organic.full-width, .searchpane.full-width, .infobar.full-width {\nmargin-right: 10px !important;\n}\n\n.titlebox form.toggle {\nbackground-color: inherit !important;\ncolor:#999999 !important;\n}\n\n.icon-menu a {\nbackground-color: inherit !important;\n}\n\n.icon-menu a:hover {\ntext-decoration: none !important;\n}\n\n.message .entry .parent {\nborder:1px solid #111111 !important;\nmargin: 10px !important;\npadding: 0 5px !important;\nmax-width: none !important;\n}\n\n.wikipage h1, .wikipage h2, .wikipage h3, .wikipage h4 {\ncolor: #999999 !important;\n}\n\n.help-cover.promoted {\nborder:1px solid #111111 !important;\nbackground-color: #000000 !important;\n}\n\n.tagline span.userattrs {\nfont-weight: bold;\n}\n\n.tagline span.userattrs a.moderator {\ncolor: #CF7F7F !important;\n}\n\n.tagline span.userattrs a.moderator:hover {\ncolor: orangered !important;\n}\n\n.tagline span.userattrs a.friend {\ncolor: #6699CC !important;\n}\n\n.tagline span.userattrs a.friend:hover {\ncolor: #99CCFF !important;\n}\n\n.panestack-title a.title-button.gold {\ncolor: #6A4D00 !important;\n}\n\n.wikipage h1, .wikipage h2, .wikipage h3, .wikipage h4 {\nmargin: 0 !important;\n}\n\n.expando-button {\nbackground-image: none !important;\n}\n\n.expando-button {\nborder-radius: 3px;\n-moz-border-radius: 3px;\n-webkit-border-radius: 3px;\nborder: 1px solid #111111;\nbackground-color: #000000 !important;\ncolor: #CF7F7F !important;\n}\n\n.expando-button:hover {\nborder: 1px solid orangered ;\ncolor: orangered !important;\n}\n\n.expando-button .type {\nmargin-left: 1px !important;\n}\n\n.expando-button .action {\ntext-align: right;\nmargin-right: 2px !important;\n}\n\n.expando-button.collapsed .action:after {\ncontent: '+';\n}\n\n.expando-button.expanded .action:after {\ncontent: '−';\n}\n\n.expando-button.maximise .action:after {\ncontent: '';\n}\n\n#header-bottom-right {\nbackground-color: inherit !important;\n}\n\n#header-bottom-right .user {\ncolor: #999999 !important;\n}\n\n.login-form-side {\nborder: 1px solid #111111 !important;\n}"; +if (typeof GM_addStyle != "undefined") { + GM_addStyle(css); +} else if (typeof PRO_addStyle != "undefined") { + PRO_addStyle(css); +} else if (typeof addStyle != "undefined") { + addStyle(css); +} else { + var node = document.createElement("style"); + node.type = "text/css"; + node.appendChild(document.createTextNode(css)); + var heads = document.getElementsByTagName("head"); + if (heads.length > 0) { + heads[0].appendChild(node); + } else { + // no head yet, stick it whereever + document.documentElement.appendChild(node); + } +} +})(); diff --git a/dwb/greasemonkey/fbpurity.EGHTSXON.user.js b/dwb/greasemonkey/fbpurity.EGTSVNOH.user.js similarity index 97% rename from dwb/greasemonkey/fbpurity.EGHTSXON.user.js rename to dwb/greasemonkey/fbpurity.EGTSVNOH.user.js index b5ef74d..e0f2d73 100644 --- a/dwb/greasemonkey/fbpurity.EGHTSXON.user.js +++ b/dwb/greasemonkey/fbpurity.EGTSVNOH.user.js @@ -18,7 +18,7 @@ // @run-at document-start // @grant GM_getValue // @grant GM_setValue -// @version 8.6.1 - 23rd Aug 2013 +// @version 8.7.0 - 12th Sep 2013 // ==/UserScript== // these 2 excludes commented out for now, till we investigate which pages we need to exclude, as we need to run on certain "connect" pages for blocking apps. @@ -248,6 +248,7 @@ // 8.5.2 14thAug2013 Fixed TL button for new search bar, Fixed hide emoticons option, Fixed line-height in ticker and left column when font is set // 8.5.3 19thAug2013 Fixed Display of FBP info bar + filtering functionality for some users // 8.6.1 23rdAug2013 Faster start up and CSS loading, fixed hide pokes and hide emoticons, fixed intermittent functioning of "restore comment button" option, and intermittent functioning of "fix external link redirection" options +// 8.7.0 12thSep2013 Updated FB Gift hiding option, Added "hide tagged in status" option, added app and game filtering in the news ticker to the hide "app / game messages" filter, updated hide sponsored box filter to also hide "similar to" box, updated hide gifts option // (C) stephen fernandez 2009-2013 http://www.fbpurity.com // If you like F.B. Purity please donate, big or small donations, anything is welcome @@ -255,7 +256,7 @@ (function() { - var fbpVersion = "v8.6.1"; + var fbpVersion = "v8.7.0"; var debug=0; var fbpoptsobj = {}; // object to store the preferences etc @@ -356,7 +357,7 @@ fbpescaperegex = function(str){ return str; }; -var fbpoptslist='becamefriends,becamefan,joinedgroup,attendevent,attendedevent,createdevent,commentlikeslink,commentwall,commentgroupwall,commentpagewall,commenteventwall,updatedprofile,changedprofilepic,changedrelationship,suggestionsbox,connectbox,sponsoredbox,pokebox,happeningnowbar,betabox,commentbutton,offlinefriends,requestsbox,eventsbox,questionsbox,checkedin,uploadedphoto,sharedphoto,uploadedvideo,taggedinvideo,postednote,taggedinnote,postedlink,readarticle,fontfix,fontcolourfix,fontbgcolourfix,fbpfont,fbpfontfix,filterappmessages,recentactivity,chatbox,smileys,fixedleftcolumn,pagestory,sortmostrecent,fixarticleredirects,timelineonecol,upcomingevents,sharedevent,likedlink,sharedpage,commentedlink,likepagebutton,hideallphotos,taggedphoto,likedphoto,commentedphoto,sharedvideo,likedvideo,commentedvideo,youtubevideo,sharedstatus,likedstatus,commentedstatus,taggedstatus,hideallvideos,hidealllinks,lcadvertmgr,lcconnect,lcallpages,lcpagesfeed,lclikepages,lcallapps,lcappcenter,lcevents,lcgamesfeed,lcpokes,lcmusic,lcplaceseditor,lcallgroups,lcallinterests,lccreategroup,lccreatepage,lcfindfriends,lcdeveloper,lcfriends,lcgifts,notificationpopup,rcrecommendedpages,rcrelatedgroups,rcpokes,rcbirthdays,rcfriendrequests,rcgamerequests'; +var fbpoptslist='becamefriends,becamefan,joinedgroup,attendevent,attendedevent,createdevent,commentlikeslink,commentwall,commentgroupwall,commentpagewall,commenteventwall,updatedprofile,changedprofilepic,changedrelationship,suggestionsbox,connectbox,sponsoredbox,pokebox,happeningnowbar,betabox,commentbutton,offlinefriends,requestsbox,eventsbox,questionsbox,checkedin,uploadedphoto,sharedphoto,uploadedvideo,taggedinvideo,postednote,taggedinnote,postedlink,readarticle,fontfix,fontcolourfix,fontbgcolourfix,fbpfont,fbpfontfix,filterappmessages,recentactivity,chatbox,smileys,fixedleftcolumn,pagestory,sortmostrecent,fixarticleredirects,timelineonecol,upcomingevents,sharedevent,likedlink,sharedpage,commentedlink,likepagebutton,hideallphotos,taggedphoto,likedphoto,commentedphoto,sharedvideo,likedvideo,commentedvideo,youtubevideo,sharedstatus,likedstatus,commentedstatus,taggedstatus,hideallvideos,hidealllinks,lcadvertmgr,lcconnect,lcallpages,lcpagesfeed,lclikepages,lcallapps,lcappcenter,lcevents,lcgamesfeed,lcpokes,lcmusic,lcplaceseditor,lcallgroups,lcallinterests,lccreategroup,lccreatepage,lcfindfriends,lcdeveloper,lcfriends,lcgifts,notificationpopup,rcrecommendedpages,rcrelatedgroups,rcpokes,rcbirthdays,rcfriendrequests,rcgamerequests,trendingbox'; // new left column options = lcadvertmgr,lcconnect,lcallpages,lcpagesfeed,lclikepages,lcallapps,lcappcenter,lcevents,lcgamesfeed,lcpokes,lcmusic,lcplaceseditor,lcallgroups,lcallinterests,lccreategroup,lccreatepage,lcfindfriends,lcdeveloper,lcfriends // new right column options = rcrecommendedpages,rcrelatedgroups,rcpokes,rcbirthdays,rcfriendrequests,rcgamerequests @@ -378,7 +379,8 @@ var fbptips=[ '
 FBP Tip: If you have any questions or problems with FBP Check out FBP\'s FAQ / Help Page', '
 FBP Tip: Donations help keep the FB Purity project alive, Please show your support and Donate.', '
 FBP Tip: Want to try out new versions of FBP before they are officially released? Join the FBP Beta Testing Page.', -'
 FBP Tip: Please Help me out by telling all your friends about FB Purity: Share FB Purity.' +'
 FBP Tip: Please Help me out by telling all your friends about FB Purity: Share FB Purity.', +'
 FBP Tip: If you hover your mouse over any of the options on the FBP options screen, extra information about that option is usually displayed.' ]; var fbpoptshtml= '
'+ @@ -473,7 +475,7 @@ v.addTableRow('Liked Page','Hide Liked Page Stories','becamefan','checkbox'); v.addTableRow('Shared Page','Hide Shared Page Stories','sharedpage','checkbox'); v.addTableRow('Liked Link','Hide Liked Link Stories','likedlink','checkbox'); v.addTableRow('Shared Link','Hide Shared Link Stories from the Newsfeed','postedlink','checkbox'); -v.addTableRow('Commented on Link','Hide Commented on Photo Stories','commentedlink','checkbox'); +v.addTableRow('Commented on Link','Hide Commented on Link Stories','commentedlink','checkbox'); v.addTableRow('"Like Page" buttons','Hide the "Like Page" buttons from shared items in the newsfeed','likepagebutton','checkbox'); v.tableFooter(); newoptscolumn+=v.buildTable(); @@ -513,7 +515,7 @@ v.tableHeader('Status / Wall Stories','Hide Status / Wall stories from the newsf v.addTableRow('Shared Status','Hide Shared Status Stories','sharedstatus','checkbox'); v.addTableRow('Liked Status','Hide Liked Status Stories','likedstatus','checkbox'); v.addTableRow('Commented on Status','Hide Commented on Status stories','commentedstatus','checkbox'); -//v.addTableRow('Tagged in Status','Hide Tagged in Status Stories','taggedstatus','checkbox'); // not sure how to handle this, or if its even needed +v.addTableRow('Tagged in Status','Hide Tagged in Status Stories','taggedstatus','checkbox'); v.addTableRow('Wrote on Wall','Hide Wrote on Wall Stories (This should work for comments posted to event, page, user and group wall)','commentwall','checkbox'); v.tableFooter(); newoptscolumn+=v.buildTable('complete'); @@ -522,7 +524,7 @@ newoptscolumn+=v.buildTable('complete'); fbpoptshtml += newoptscolumn ; fbpoptshtml += '
'+ -'
More OptionsHide ' + +''+ ''+ ''+ +''+ ''+ ''+ @@ -563,9 +566,9 @@ fbptips[Math.floor(Math.random() * fbptips.length)] + // fonts and colours section ''+ @@ -708,7 +711,7 @@ function set_cookie (name,value) { var isgmapi, islocstor; try { if(typeof(GM_setValue)!='undefined') { - GM_setValue('test',1) + GM_setValue('test',1); if ( GM_getValue('test')==1) isgmapi=1; else @@ -759,13 +762,13 @@ function fbpsavevalue(name,value){ else if(isopera) { //window.navigator.userAgent.match(/Opera/) widget.preferences[name]=value; } - /* if i support localstorage and cookie, the user will repeatedly get the new user screen when the cookies are cleared, so lets comment this out - else if(locstor) { + /* if i support localstorage and cookie, the user will repeatedly get the new user screen when the cookies are cleared, so lets comment this out*/ + else if(islocstor) { window.localStorage[name]=value; } else set_cookie(name,value); - */ + } catch (e) { //console.log(e); @@ -797,7 +800,6 @@ function fbploadvalue(name,funct){ else funct(response.data); } - //} }); val=-999; if(debug) @@ -829,6 +831,10 @@ function fbploadvalue(name,funct){ } else val=''; } + else if(islocstor) + val=window.localStorage[name]; + else + val=get_cookie(name); } catch (e) { console.log(e); @@ -1254,6 +1260,7 @@ function fbpoptsobjinit() { fbpoptsobj.questionsbox=0; fbpoptsobj.chatbox=0; fbpoptsobj.pagestory=0; + fbpoptsobj.trendingbox=0; //fbpoptsobj.commentslikestopnews=0; fbpoptsobj.recentactivity=0; @@ -1343,7 +1350,7 @@ function fbpoptsobjinit() { // If you would like to edit the list of applications in the user whitelist, // theres detailed instructions here: http://whitelist.fbpurity.com -var defaultappwhitelist = "6628568379,115463795461,48119224995,5895217474,56212371378,146139331013,2254487659,2915120374,74769995908,4620273157,14405921260,10754253724,2483740875,22950410511,43769862066,2550392059,8109791468,2238752371,21370137768,6195724695,6694405826,2231777543,53702860994,20407635301,38125372145,56137638329,10732101402,16297770890,2877035514,41158896424,72687635881,350685531728,30713015083,111527682205237,121958126090,2330519541,49340319393,26463759431,21810043296,24420472648,183319479511,189818072392,302006227267,90376669494,108160725869250,39010226174,247431880944,66746580154,96105046534,143907478979139,146563558702544,131289390231340,9953271133,45439413586,131732509879,23723376453,76456527540,105130332854716,27694818115,67878695711,124024574287414,79763977758,139682082719810,122580857763901,24553799497,159348674082705,112618498804176,148061315211358,104142802965358,149588628439275,7933375107,135892916448833,48505437520,198446803501767,193278124048833,165907476854626,213546525407071,531615603522381,149859461799466,178645865537776"; +var defaultappwhitelist = "6628568379,115463795461,48119224995,5895217474,56212371378,146139331013,2254487659,2915120374,74769995908,4620273157,14405921260,10754253724,2483740875,22950410511,43769862066,2550392059,8109791468,2238752371,21370137768,6195724695,6694405826,2231777543,53702860994,20407635301,38125372145,56137638329,10732101402,16297770890,2877035514,41158896424,72687635881,350685531728,30713015083,111527682205237,121958126090,2330519541,49340319393,26463759431,21810043296,24420472648,183319479511,189818072392,302006227267,90376669494,108160725869250,39010226174,247431880944,66746580154,96105046534,143907478979139,146563558702544,131289390231340,9953271133,45439413586,131732509879,23723376453,76456527540,105130332854716,27694818115,67878695711,124024574287414,79763977758,139682082719810,122580857763901,24553799497,159348674082705,112618498804176,148061315211358,104142802965358,149588628439275,7933375107,135892916448833,48505437520,198446803501767,193278124048833,165907476854626,213546525407071,531615603522381,149859461799466,178645865537776,220353874751486"; // the application ids in the default app whitelist above belong to, in order: // 6628568379 = facebook iphone application @@ -1426,9 +1433,9 @@ var defaultappwhitelist = "6628568379,115463795461,48119224995,5895217474,562123 // 531615603522381 = Facebook Site Governance voting app // 149859461799466 = Sony Xperia Smartphone // 178645865537776 = Blackberry +// 220353874751486 = Facebook for Blackberry 10 // --193048140809145-- = Facebook Likes (built in facebook app? this is a weird one, ive actually removed it for now, will investigate further. just leaving this here as a reminder) - // EXTRA STORIES ( see http://extras.fbpurity.com for more info ) // Read option settings and set extra story codes @@ -1512,11 +1519,22 @@ refreshwhitelist = function () { document.getElementById('fbptlstyle').textContent=tlstyle; } +fixsortorder = function() { + if(fbpoptsobj.sortmostrecent) { // force feed to sort by most recent + var sortlink=document.getElementsByClassName('sortLink'); + if(sortlink.length) { + if(!sortlink[0].textContent.match(/\:/)) + window.location.href=window.location.protocol +'//www.facebook.com/?sk=h_chr'; + } + } +} + initstage2 = function () { if(debug) console.trace(); //console.log('entering function : ' + arguments.callee.name); + /* moved this to separate function if(fbpoptsobj.sortmostrecent) { // force feed to sort by most recent var sortlink=document.getElementsByClassName('sortLink'); if(sortlink.length) { @@ -1524,6 +1542,8 @@ initstage2 = function () { window.location.href=window.location.protocol +'//www.facebook.com/?sk=h_chr'; } } + */ + extraTextFilter=''; // init extraTextFilter headerTextFilter=''; // init headerTextFilter if(fbpoptsobj.filterappmessages==1) { @@ -1575,14 +1595,14 @@ initstage2 = function () { if((typeof fbpoptsobj.commentedstatus !=='undefined') && (fbpoptsobj.commentedstatus==1)) headerTextFilter += ",commented on .* status, commented on .* note, commented on .* activity"; - //if(fbpoptsobj.taggedstatus==1) { - //; //headerTextFilter += ", not sure how to handle this one - //} + if((typeof fbpoptsobj.taggedstatus !=='undefined') && fbpoptsobj.taggedstatus==1) + headerTextFilter += ", tagged .* status\."; + if((typeof fbpoptsobj.sharedstatus !=='undefined') && (fbpoptsobj.sharedstatus==1)) headerTextFilter += ", shared .*\'s status, shared a status, shared .*\'s post"; if((typeof fbpoptsobj.taggedphoto !=='undefined') && (fbpoptsobj.taggedphoto==1)) - headerTextFilter += ",tagged in h.. own photo,tagged in .*\'s photo,tagged in h.. own album, tagged in .*\'s album"; + headerTextFilter += ",tagged in h.. own photo,tagged in a photo,tagged in .*\'s photo,tagged in h.. own album, tagged in .*\'s album"; if((typeof fbpoptsobj.likedphoto !=='undefined') && (fbpoptsobj.likedphoto==1)) headerTextFilter += ",likes .* photo\.,likes? a photo,likes .*\'s album"; @@ -1727,11 +1747,15 @@ youtubevideo headerTextFilter += ", claimed an offer from, posted an offer"; } + if (fbpoptsobj.trendingbox) { + headerTextFilter += ', is trending\\.'; + } + // fix font size if(fbpoptsobj.fontfix==1) { /*if(document.getElementById('fbpfreestyler')) document.getElementById('fbpfreestyler').textContent='div.actorName{display:inline;margin-right:3px !important} a.subject,div.preview,.mall_post_body_text,div,span,p,textarea,input,td,label,h3,h4,h5,h6{font-size:' + fbpoptsobj.fontsize + 'px !important} ' + 'div.commentContent {font-size:' + (fbpoptsobj.fontsize-1) +'px !important}' + ' .ginormousProfileName { font-size: 20px !important} ' + ' .emote_text {display:none}' + ' div.tickerFeedMessage, div.linkWrap {line-height:' + fbpoptsobj.fontsize + 'px !important} ' + 'li.uiStreamHeader {margin-bottom:' + (fbpoptsobj.fontsize-6) + 'px !important}'; - */ + */ fbpfreestyle.textContent='div.actorName{display:inline;margin-right:3px !important} a.subject,div.preview,.mall_post_body_text,div,span,p,textarea,input,td,label,h3,h4,h5,h6{font-size:' + fbpoptsobj.fontsize + 'px !important} ' + 'div.commentContent {font-size:' + (fbpoptsobj.fontsize-1) +'px !important}' + ' .ginormousProfileName { font-size: 20px !important} ' + ' .emote_text {display:none}' + ' div.tickerFeedMessage, div.linkWrap {line-height:' + fbpoptsobj.fontsize + 'px !important} ' + 'li.uiStreamHeader {margin-bottom:' + (fbpoptsobj.fontsize-6) + 'px !important}'; } @@ -1747,7 +1771,7 @@ youtubevideo if(fbpoptsobj.fontbgcolourfix==1) { //if(document.getElementById('fbpfreestyler')) // document.getElementById('fbpfreestyler') - fbpfreestyle.textContent +=' * {background-color:' + fbpoptsobj.fontbgcolour + ' !important} .uiListLight { border-color: #333; } textarea, .inputtext, .inputpassword { border: 1px solid #555} .uiUfi .ufiItem { border-bottom: 1px dotted darkgray} n.tagsWrapper *, #fbPhotoTheaterTags, .tagsWrapper, .fbPhotosPhotoTagboxes *, #fbPhotoTheaterStageActions, .fbQuestionsPollClickTarget, .fbPhotosPhotoTagboxes, .flashUploaderOverlayButton, .fluploader_swfdiv, .coverBorder, .frame, .mat, .graph-canvas, .overlay, span.label, div.label, span.fwb ,#snowliftStageActions, .fbPhotoTagger, .faceBox, .typeaheadWrapper, .groupsJumpCoverBorder, .-cx-PRIVATE-uiFileInput__wrap, #fullScreenSwitch, #fbProfileCoverPhotoSelector, #fbProfileCoverPhotoSelector .wrap, #fbProfilePicSelector, #fbProfilePicSelector .wrap, .snowliftPager, .snowliftPager i, a.fbPhotoViewLarger {background-color:transparent !important} .fbQuestionsPollResultsBar .shaded, .bar {background-color: #6C83B2 !important} .tagName, ol.balancingCapsule, div.fbTimelineFilters, ol.fbTimelineCapsule {background-color: ' + fbpoptsobj.fontbgcolour + ' !important} .hasSmurfbar #blueBarHolder #blueBar {background-image:url("") !important} /* like button: */ div._55k4, /*camera icon under composer*/ div._3jk , /* profile pic*/ i._96h, /* group count in left column*/ div.-cx-PRIVATE-blendedBookmarksNonLitestand__bookmark, div._5duc {background-color:transparent !important} /* attach image to comment icon*/ i.UFICommentPhotoIcon {background-color:grey !important}'; + fbpfreestyle.textContent +=' * {background-color:' + fbpoptsobj.fontbgcolour + ' !important} .uiListLight { border-color: #333; } textarea, .inputtext, .inputpassword { border: 1px solid #555} .uiUfi .ufiItem { border-bottom: 1px dotted darkgray} n.tagsWrapper *, #fbPhotoTheaterTags, .tagsWrapper, .fbPhotosPhotoTagboxes *, #fbPhotoTheaterStageActions, .fbQuestionsPollClickTarget, .fbPhotosPhotoTagboxes, .flashUploaderOverlayButton, .fluploader_swfdiv, .coverBorder, .frame, .mat, .graph-canvas, .overlay, span.label, div.label, span.fwb ,#snowliftStageActions, .fbPhotoTagger, .faceBox, .typeaheadWrapper, .groupsJumpCoverBorder, .-cx-PRIVATE-uiFileInput__wrap, #fullScreenSwitch, #fbProfileCoverPhotoSelector, #fbProfileCoverPhotoSelector .wrap, #fbProfilePicSelector, #fbProfilePicSelector .wrap, .snowliftPager, .snowliftPager i, a.fbPhotoViewLarger, div._7m4 {background-color:transparent !important} .fbQuestionsPollResultsBar .shaded, .bar {background-color: #6C83B2 !important} .tagName, ol.balancingCapsule, div.fbTimelineFilters, ol.fbTimelineCapsule {background-color: ' + fbpoptsobj.fontbgcolour + ' !important} .hasSmurfbar #blueBarHolder #blueBar {background-image:url("") !important} /* like button: */ div._55k4, /*camera icon under composer*/ div._3jk , /* profile pic*/ i._96h, /* group count in left column*/ div.-cx-PRIVATE-blendedBookmarksNonLitestand__bookmark, div._5duc {background-color:transparent !important} /* attach image to comment icon*/ i.UFICommentPhotoIcon {background-color:grey !important}'; } // fix font @@ -1757,9 +1781,9 @@ youtubevideo fbpfreestyle.textContent +=' * {font-family:' + fbpoptsobj.fbpfont + ' !important} '; } - + if(fbpoptsobj.likepagebutton==1) { - fbpfreestyle.textContent +=' div.uiStreamShareLikePageBox div.uiPageLikeButton, div.genericStreamStory a.PageLikeButton, div[data-dedupekey] span.PageLikeButton {display:none} '; + fbpfreestyle.textContent +=' div.uiStreamShareLikePageBox div.uiPageLikeButton, div.genericStreamStory a.PageLikeButton, div[data-dedupekey] span.PageLikeButton, div.shareFooter label.shareLikeButton {display:none} '; } // single column timeline /* @@ -1839,7 +1863,7 @@ youtubevideo fbpfreestyle.textContent +=' #developerNav, #navItem_app_2345053339, #sidebar_navigation_top a[data-id="2345053339"] {display:none}'; if(fbpoptsobj.lcgifts==1) - fbpfreestyle.textContent +=' #navItem_app_329122197162272, a[data-endpoint="/ajax/composerx/attachment/gift/"], a[ajaxify^="/ajax/gifts/send?recipient_id="], div.fbRemindersContent div.uiBoxLightblue, #sidebar_navigation_top a[data-id="329122197162272"] {display:none}'; + fbpfreestyle.textContent +=' #navItem_app_329122197162272, a[data-endpoint="/ajax/composerx/attachment/gift/"], a[ajaxify^="/ajax/gifts/send?recipient_id="], div.fbRemindersContent div.uiBoxLightblue, #sidebar_navigation_top a[data-id="329122197162272"], a[href^="/gifts?recipient_id="], div.timelineReportContainer[data-gt*=\'"timeline_unit_type":"BirthdayGiftUnit"\'],a.uiButton[href^="/gifts?recipient_id="] {display:none}'; if(fbpoptsobj.rcrecommendedpages==1) fbpfreestyle.textContent +=' #pages_reminders_link {display:none}'; @@ -1946,7 +1970,7 @@ if( headerTextFilter && headerTextFilter.length ) { } if (fbpoptsobj.eventsbox) { - fbpboxstyles +=' #event_reminders_link'; // hide left column events too #navItem_app_2344061033 {display:none} just hide create event link #pagelet_reminders [ajaxify="/ajax/plans/create/dialog.php"] * { display: none !important;} + fbpboxstyles +=' #event_reminders_link {display:none}'; // hide left column events too #navItem_app_2344061033 {display:none} just hide create event link #pagelet_reminders [ajaxify="/ajax/plans/create/dialog.php"] * { display: none !important;} } if (fbpoptsobj.requestsbox) { @@ -1954,15 +1978,24 @@ if( headerTextFilter && headerTextFilter.length ) { } if (fbpoptsobj.sponsoredbox) { - fbpboxstyles +=' div[data-adblock-hash],div.megaphone_location_pages_feed, #pagelet_canvas_storybox, #pagelet_canvas_nav_content, .applifier, #side_ad_frame, .-cx-PRIVATE-suggestionOnLiking__body, .canvasRecommended, li.ownsection, li[aria-label="Sponsored"], #pagelet_adbox, #pagelet_search_ads2, #adcolumn_advertise, #ssponsor, #adcolumn_more_ads, #pagelet_friendship_netego_ads, #pagelet_ego_pane, .fbPhotosSideColumn, #pagelete_ego_pane_home_ads, #pagelet_ad_page_upsell, #fbPhotoSnowboxAdsBottom, .fbPhotoSnowboxAdsSponsored, .fbTimelineSideAds, #pagelet_ego_pane_m, #pagelet_organic_ego_pane, #pagelet_ego_pane_w, #pagelet_ads_when_no_friend_list_suggestion, #pagelet_side_ads, #fbPhotoSnowliftAdsSide, #MessagingNetegoSidebar, .-cx-PRIVATE-fbTimelineStyleAds__vertical, .-cx-PRIVATE-fbTimelineStyleAds__root, .-cx-PRIVATE-snowliftAds__root, ._24q, .rhcFooter, div[data-ad^="{"],.-cx-PRIVATE-suggestionOnSourceLiking__body, #endOfFeedPymlContainer {display:none !important} #sidebar_ads, #pagelet_ads, #pagelet_netego_ads, .UIStandardFrame_SidebarAds, #gb_muffin_area, .adsContainer, .fbPhotoAdsCol {visibility:hidden !important} '; + fbpboxstyles +=' div._5j5u,div[data-adblock-hash],div.megaphone_location_pages_feed, #pagelet_canvas_storybox, #pagelet_canvas_nav_content, .applifier, #side_ad_frame, .-cx-PRIVATE-suggestionOnLiking__body, .canvasRecommended, li.ownsection, li[aria-label="Sponsored"], #pagelet_adbox, #pagelet_search_ads2, #adcolumn_advertise, #ssponsor, #adcolumn_more_ads, #pagelet_friendship_netego_ads, #pagelet_ego_pane, .fbPhotosSideColumn, #pagelete_ego_pane_home_ads, #pagelet_ad_page_upsell, #fbPhotoSnowboxAdsBottom, .fbPhotoSnowboxAdsSponsored, .fbTimelineSideAds, #pagelet_ego_pane_m, #pagelet_organic_ego_pane, #pagelet_ego_pane_w, #pagelet_ads_when_no_friend_list_suggestion, #pagelet_side_ads, #fbPhotoSnowliftAdsSide, #MessagingNetegoSidebar, .-cx-PRIVATE-fbTimelineStyleAds__vertical, .-cx-PRIVATE-fbTimelineStyleAds__root, .-cx-PRIVATE-snowliftAds__root, ._24q, .rhcFooter, div[data-ad^="{"],.-cx-PRIVATE-suggestionOnSourceLiking__body, #endOfFeedPymlContainer {display:none !important} #sidebar_ads, #pagelet_ads, #pagelet_netego_ads, .UIStandardFrame_SidebarAds, #gb_muffin_area, .adsContainer, .fbPhotoAdsCol {visibility:hidden !important} '; + } + //div._5j5u = current code for hiding "similar to" box. + + if (fbpoptsobj.filterappmessages) { // hide app and game messages from the ticker + fbpboxstyles +=' div.fbFeedTickerStory[data-gt*=\'"appid":\'] {display:none} '; } if (fbpoptsobj.chatbox) { fbpboxstyles +=' #pagelet_presence, #pagelet_friends_online, #pagelet_chat, #BuddylistPagelet, div.fbChatSidebarBody {display:none}'; } + if (fbpoptsobj.trendingbox) { + fbpboxstyles +=' #pagelet_trending_tags_and_topics {display:none} {display:none}'; + } + if ((typeof fbpoptsobj.smileys !=='undefined') && fbpoptsobj.smileys) { - fbpboxstyles +=' img.wallArrowIcon, .emoticon_text {display:inline !important} .emoticon {display:none !important} i.-cx-PRIVATE-fbEntstreamEmoji__image, i.-cx-PRIVATE-ogAttachedSentenceToken__icon, span.-cx-PRIVATE-fbEmoji__icon, h5.uiStreamMessage img, span.userContent i.img, .userContentSecondary i.img, span.hasCaption i.img, div.shareSubtext i.img, div.uiStreamAttachments i.img, div.UFICommentContent span._1a- {display:none} div.userContentWrapper i.img, h5.uiStreamMessage i.img {display:none} '; // !important + fbpboxstyles +=' img.wallArrowIcon, .emoticon_text {display:inline !important} .emoticon {display:none !important} i.-cx-PRIVATE-fbEntstreamEmoji__image, i.-cx-PRIVATE-ogAttachedSentenceToken__icon, span.-cx-PRIVATE-fbEmoji__icon, h5.uiStreamMessage img, span.userContent i.img, .userContentSecondary i.img, span.hasCaption i.img, div.shareSubtext i.img, div.uiStreamAttachments i.img, div.UFICommentContent span._1a-, div.userContentWrapper i.img, h5.uiStreamMessage i.img, span.userContentSecondary img[height="16"] {display:none} '; } if ((typeof fbpoptsobj.notificationpopup !=='undefined') && fbpoptsobj.notificationpopup) { @@ -2753,6 +2786,8 @@ if(!isasync) } function cleartheshizzle(thenode) { + //if(location.href.match(/facebook\.com\/messages\//)) + // return; //unsafeWindow.console.log('clearing the shizzle a : ' + location.href); var oldfeedstyle=document.getElementById('pagelet_home_stream'); var newfeedstyle=document.getElementById('pagelet_litestand_section'); @@ -3374,9 +3409,9 @@ else function fixexternallinkredirects() { // fix external link redirects - window.setTimeout(function() {UntrustedLink=null;LinkshimAsyncLink.referrer_log = LinkshimAsyncLink.swap = search_logged_ajax=function(){;};},0); - window.setTimeout(function() {UntrustedLink=null;LinkshimAsyncLink.referrer_log = LinkshimAsyncLink.swap = search_logged_ajax=function(){;};},5000); - window.setInterval(function(){UntrustedLink=null;LinkshimAsyncLink.referrer_log = LinkshimAsyncLink.swap = search_logged_ajax=function(){;};},60000); + window.setTimeout(function() {UntrustedLink=null;if(typeof(LinkshimAsyncLink)!='undefined') LinkshimAsyncLink.referrer_log = LinkshimAsyncLink.swap = search_logged_ajax=function(){;};},0); + window.setTimeout(function() {UntrustedLink=null;if(typeof(LinkshimAsyncLink)!='undefined') LinkshimAsyncLink.referrer_log = LinkshimAsyncLink.swap = search_logged_ajax=function(){;};},5000); + window.setInterval(function(){UntrustedLink=null;if(typeof(LinkshimAsyncLink)!='undefined') LinkshimAsyncLink.referrer_log = LinkshimAsyncLink.swap = search_logged_ajax=function(){;};},60000); unmanglelinks = function(nodetofix) { //console.log(typeof(nodetofix)); @@ -3891,12 +3926,14 @@ finalstage=function () { } if(document.getElementById('pagelet_home_stream') || document.getElementById('pagelet_litestand_section') || document.getElementById('stream_pagelet')) { // || document.getElementById('pagelet_group_mall') || document.getElementById('timelineNavContent') // || document.getElementById('profile_minifeed') + fixsortorder(); fbpurify(); } else { var waitfordom=setInterval(function(){ if(document.getElementById('pagelet_home_stream') || document.getElementById('pagelet_litestand_section') || document.getElementById('stream_pagelet')) { // || document.getElementById('pagelet_group_mall') || document.getElementById('timelineNavContent') // || document.getElementById('profile_minifeed') clearInterval(waitfordom); + fixsortorder(); fbpurify(); } }, 500); @@ -3906,4 +3943,4 @@ finalstage=function () { //if(!window.navigator.userAgent.match(/Opera/)) fbpgetprefs(); // opera loads the script before the page has loaded, so we need to delay a bit for opera, and load prefs in the waitfordom1 function instead. -})(); \ No newline at end of file +})(); diff --git a/dwb/greasemonkey/ponyhoof.user.js b/dwb/greasemonkey/ponyhoof.user.js index 33808f5..433d15c 100644 --- a/dwb/greasemonkey/ponyhoof.user.js +++ b/dwb/greasemonkey/ponyhoof.user.js @@ -2,7 +2,7 @@ // @name Ponyhoof // @namespace http://www.facebook.com/ponyhoof // @run-at document-start -// @version 1.641 +// @version 1.651 // @installURL https://hoof.little.my/files/ponyhoof.user.js // @updateURL https://hoof.little.my/files/ponyhoof.meta.js // @icon https://hoof.little.my/files/app32.png @@ -13,7 +13,7 @@ // @contributor James // @contributor http://ponyhoof.little.my/credits // @homepage http://ponyhoof.little.my -// @supportURL http://www.facebook.com/Ponyhoof +// @supportURL https://www.facebook.com/Ponyhoof // @contributionURL http://ponyhoof.little.my/donate // @include http://*.facebook.com/* // @include https://*.facebook.com/* @@ -210,14 +210,10 @@ function clickLink(el) { return false; } - try { - var evt = d.createEvent('MouseEvents'); - evt.initMouseEvent('click', true, true, w, 0, 0, 0, 0, 0, false, false, false, false, 0, null); - el.dispatchEvent(evt); - return true; - } catch (e) { - return false; - } + var evt = d.createEvent('MouseEvents'); + evt.initMouseEvent('click', true, true, USW, 0, 0, 0, 0, 0, false, false, false, false, 0, null); + el.dispatchEvent(evt); + return true; } function cookie(n) { @@ -595,7 +591,7 @@ var Menu = function(id, p) { addClass(k.menuInner.parentNode, 'overflow'); } - if (k.canSearch) { + if (k.canSearch && !ISMOBILE) { var scrollTop = k.selectorMenu.scrollTop; k.menuSearchInput.focus(); k.menuSearchInput.select(); @@ -961,7 +957,7 @@ var Dialog = function(id) { k.onclosefinish(); }); if (callback) { - log("Legacy dialog close code found"); + log("Legacy dialog close code found [Dialog.close()]"); } if (ISOPERA) { @@ -1046,7 +1042,7 @@ var Dialog = function(id) { k.dialog.querySelector('.bottom .uiButton').addEventListener('click', function(e) { k.close(function() { if (callback) { - log("Legacy dialog close code found"); + log("Legacy dialog close code found [Dialog.addCloseButton()]"); callback(); } }); @@ -1111,6 +1107,8 @@ var Dialog = function(id) { function createSimpleDialog(id, title, message) { if (DIALOGS[id]) { + DIALOGS[id].changeTitle(title); + DIALOGS[id].changeContent(message); DIALOGS[id].show(); return DIALOGS[id]; } @@ -1185,7 +1183,7 @@ var isPageHidden = function() { }; // http://www.myersdaily.org/joseph/javascript/md5.js function md5cycle(f,c){var b=f[0],a=f[1],d=f[2],e=f[3],b=ff(b,a,d,e,c[0],7,-680876936),e=ff(e,b,a,d,c[1],12,-389564586),d=ff(d,e,b,a,c[2],17,606105819),a=ff(a,d,e,b,c[3],22,-1044525330),b=ff(b,a,d,e,c[4],7,-176418897),e=ff(e,b,a,d,c[5],12,1200080426),d=ff(d,e,b,a,c[6],17,-1473231341),a=ff(a,d,e,b,c[7],22,-45705983),b=ff(b,a,d,e,c[8],7,1770035416),e=ff(e,b,a,d,c[9],12,-1958414417),d=ff(d,e,b,a,c[10],17,-42063),a=ff(a,d,e,b,c[11],22,-1990404162),b=ff(b,a,d,e,c[12],7,1804603682),e=ff(e,b,a,d,c[13],12,-40341101),d=ff(d,e,b,a,c[14],17,-1502002290),a=ff(a,d,e,b,c[15],22,1236535329),b=gg(b,a,d,e,c[1],5,-165796510),e=gg(e,b,a,d,c[6],9,-1069501632),d=gg(d,e,b,a,c[11],14,643717713),a=gg(a,d,e,b,c[0],20,-373897302),b=gg(b,a,d,e,c[5],5,-701558691),e=gg(e,b,a,d,c[10],9,38016083),d=gg(d,e,b,a,c[15],14,-660478335),a=gg(a,d,e,b,c[4],20,-405537848),b=gg(b,a,d,e,c[9],5,568446438),e=gg(e,b,a,d,c[14],9,-1019803690),d=gg(d,e,b,a,c[3],14,-187363961),a=gg(a,d,e,b,c[8],20,1163531501),b=gg(b,a,d,e,c[13],5,-1444681467),e=gg(e,b,a,d,c[2],9,-51403784),d=gg(d,e,b,a,c[7],14,1735328473),a=gg(a,d,e,b,c[12],20,-1926607734),b=hh(b,a,d,e,c[5],4,-378558),e=hh(e,b,a,d,c[8],11,-2022574463),d=hh(d,e,b,a,c[11],16,1839030562),a=hh(a,d,e,b,c[14],23,-35309556),b=hh(b,a,d,e,c[1],4,-1530992060),e=hh(e,b,a,d,c[4],11,1272893353),d=hh(d,e,b,a,c[7],16,-155497632),a=hh(a,d,e,b,c[10],23,-1094730640),b=hh(b,a,d,e,c[13],4,681279174),e=hh(e,b,a,d,c[0],11,-358537222),d=hh(d,e,b,a,c[3],16,-722521979),a=hh(a,d,e,b,c[6],23,76029189),b=hh(b,a,d,e,c[9],4,-640364487),e=hh(e,b,a,d,c[12],11,-421815835),d=hh(d,e,b,a,c[15],16,530742520),a=hh(a,d,e,b,c[2],23,-995338651),b=ii(b,a,d,e,c[0],6,-198630844),e=ii(e,b,a,d,c[7],10,1126891415),d=ii(d,e,b,a,c[14],15,-1416354905),a=ii(a,d,e,b,c[5],21,-57434055),b=ii(b,a,d,e,c[12],6,1700485571),e=ii(e,b,a,d,c[3],10,-1894986606),d=ii(d,e,b,a,c[10],15,-1051523),a=ii(a,d,e,b,c[1],21,-2054922799),b=ii(b,a,d,e,c[8],6,1873313359),e=ii(e,b,a,d,c[15],10,-30611744),d=ii(d,e,b,a,c[6],15,-1560198380),a=ii(a,d,e,b,c[13],21,1309151649),b=ii(b,a,d,e,c[4],6,-145523070),e=ii(e,b,a,d,c[11],10,-1120210379),d=ii(d,e,b,a,c[2],15,718787259),a=ii(a,d,e,b,c[9],21,-343485551);f[0]=add32(b,f[0]);f[1]=add32(a,f[1]);f[2]=add32(d,f[2]);f[3]=add32(e,f[3])}function cmn(f,c,b,a,d,e){c=add32(add32(c,f),add32(a,e));return add32(c<>>32-d,b)}function ff(f,c,b,a,d,e,g){return cmn(c&b|~c&a,f,c,d,e,g)}function gg(f,c,b,a,d,e,g){return cmn(c&a|b&~a,f,c,d,e,g)}function hh(f,c,b,a,d,e,g){return cmn(c^b^a,f,c,d,e,g)}function ii(f,c,b,a,d,e,g){return cmn(b^(c|~a),f,c,d,e,g)}function md51(f){var txt="";var c=f.length,b=[1732584193,-271733879,-1732584194,271733878],a;for(a=64;a<=f.length;a+=64)md5cycle(b,md5blk(f.substring(a-64,a)));f=f.substring(a-64);var d=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(a=0;a>2]|=f.charCodeAt(a)<<(a%4<<3);d[a>>2]|=128<<(a%4<<3);if(55a;a++)d[a]=0}d[14]=8*c;md5cycle(b,d);return b}function md5blk(f){var c=[],b;for(b=0;64>b;b+=4)c[b>>2]=f.charCodeAt(b)+(f.charCodeAt(b+1)<<8)+(f.charCodeAt(b+2)<<16)+(f.charCodeAt(b+3)<<24);return c}var hex_chr="0123456789abcdef".split("");function rhex(f){for(var c="",b=0;4>b;b++)c+=hex_chr[f>>8*b+4&15]+hex_chr[f>>8*b&15];return c}function hex(f){for(var c=0;c>16)+(c>>16)+(b>>16)<<16|b&65535}); - var VERSION = 1.641; + var VERSION = 1.651; var FRIENDLYNAME = 'P'+'onyh'+'oof'; var SIG = '['+FRIENDLYNAME+' v'+VERSION+']'; var DISTRIBUTION = 'userjs'; @@ -1213,7 +1211,7 @@ function md5cycle(f,c){var b=f[0],a=f[1],d=f[2],e=f[3],b=ff(b,a,d,e,c[0],7,-6808 'globalSettingsMigrated':false, 'lastUserId':0, 'lastVersion':'' }; - var PONIES = [{"code":"trixie","name":"Trixie","users":["trixie"],"menu_title":"The Great and Powerful Trixie demands your attention!","color":["6e98b4","3a7196"],"icon16":"trixie\/icon16_2.png","soundNotif":"trixie\/notif","loadingText":"Performing magic..."},{"code":"twilight","name":"Twilight Sparkle","users":["twilight","spark","tw\u0131l\u0131ght","twilite","twi light","\u0162wilight"],"search":"twilight sparkle|twilightsparkle|princess twilight","menu_title":"To switch to Princess Twilight, go to Misc > Appearance","color":["9f6eb4","7a3a96"],"mane6":true,"loadingText":"Studying friendship..."},{"code":"dash","name":"Rainbow Dash","users":["rainbow","dash"],"search":"rainbow dash|rainbowdash|dashie","color":["6e9db4","3a7796"],"soundNotif":"dash\/notif","mane6":true,"loadingText":"Loading... in ten seconds flat!","successText":"Aww yeah!"},{"code":"pinkie","name":"Pinkie Pie","users":["pink"],"search":"pinkie pie|pinkiepie|pinkamena diane pie","color":["b46e8a","963a5f"],"soundNotif":"pinkie\/notif2","mane6":true,"loadingText":"Come on everypony!"},{"code":"applej","name":"Applejack","users":["apple j","applej"],"search":"applejack|apple jack","color":["b4976e","96703a"],"soundNotif":"applej\/notif2","mane6":true,"loadingText":"Hold on there sugarcube!","successText":"Yeehaw!"},{"code":"flutter","name":"Fluttershy","users":["flutter","flut ter"],"search":"fluttershy|flutter shy","color":["b4ae6e","968e3a"],"soundNotif":"flutter\/notif2","mane6":true,"loadingText":"Screaming...","successText":"Yay!"},{"code":"rarity","name":"Rarity","users":["rarity"],"color":["9b6eb4","763a96"],"soundNotif":"rarity\/notif","mane6":true,"loadingText":"Whining...","seperator":true},{"code":"applebloom","name":"Apple Bloom","users":["appleb","apple b"],"search":"apple bloom|applebloom|cmc|cutie mark crusaders","color":["b46e8d","963a63"],"soundNotif":"applebloom\/notif","loadingText":"Getting her cutie mark...","nocutie":true},{"code":"aloe","name":"Aloe","users":["aloe"],"search":"aloe|spa pony|spa ponies","color":["b46e91","963a68"]},{"code":"babsseed","name":"Babs Seed","users":["babs","seed"],"search":"babs seed|babsseed|cmc|cutie mark crusaders","color":["b4976e","96703a"],"nocutie":true},{"code":"berry","name":"Berry Punch","users":["berry"],"color":["a56eb4","823a96"]},{"code":"bigmac","name":"Big Macintosh","users":["bigmac","big mac"],"search":"bigmacintosh|big macintosh|big mcintosh|bigmcintosh","color":["b46e75","963a43"],"soundNotif":"bigmac\/notif","loadingText":"Saying eeyup..."},{"code":"bonbon","name":"Bon Bon","users":["bon bon","bonbon","bon-bon"],"search":"bon bon|bonbon","color":["6e89b4","3a5d96"]},{"code":"braeburn","name":"Braeburn","users":["braeburn","breaburn"],"search":"braeburn|breaburn","color":["b4a86e","96873a"],"icon16":"braeburn\/icon16_2.png"},{"code":"cadance","name":"Cadance","users":["cadance","cadence"],"search":"cadance|cadence|princess cadance|princess cadence","color":["b46e96","963a6e"]},{"code":"carrot","name":"Carrot Top","users":["golden","carrot"],"search":"carrot top|carrottop|golden harvest","menu_title":"Also known as Golden Harvest","color":["b2b46e","93963a"]},{"code":"celestia","name":"Celestia","users":["celestia","trollestia","molestia"],"search":"celestia|princess celestia","color":["b46e98","963a71"],"loadingText":"Raising the sun..."},{"code":"cheerilee","name":"Cheerilee","users":["cheerilee"],"color":["b46e96","963a6e"]},{"code":"colgate","name":"Colgate","users":["colgate","minuette"],"search":"colgate|minuette|minette","menu_title":"Also known as Minuette","color":["6e99b4","3a7396"],"soundNotif":"colgate\/notif","loadingText":"Brushing..."},{"code":"cloudchaser","name":"Cloudchaser","users":["cloudch","cloud ch"],"search":"cloudchaser|cloud chaser|stormwalker|storm walker","menu_title":"Also known as Stormwalker","color":["856eb4","593a96"]},{"code":"daring","name":"Daring Do","users":["daring"],"search":"daring do|daringdo","color":["b4a76e","96853a"]},{"code":"derpy","name":"Derpy Hooves","users":["derpy"],"color":["b4b46e","96963a"],"fbIndex_swf":"derpy\/fbIndex.swf","soundNotif":"derpy\/notif","loadingText":"Wondering what went wrong..."},{"code":"diamondtiara","name":"Diamond Tiara","users":["tiara"],"search":"diamond tiara|diamondtiara","color":["926eb4","6a3a96"],"stack":"villian"},{"code":"discord","name":"Discord","users":["discord"],"color":["b46f6e","963c3a"],"stack":"villian","loadingText":"CHOCOLATE RAIN","nocutie":true},{"code":"whooves","name":"Doctor Whooves","users":["whooves","time turn"],"search":"doctor whooves|doctor hooves|time turner","menu_title":"Also known as Time Turner","color":["b4a06e","967c3a"]},{"code":"fleur","name":"Fleur De Lis","users":["fleur","fluer"],"search":"fleur de lis|fluer de lis|fleur dis lee|fluer dis lee","color":["b46eb4","963a96"]},{"code":"flimflam","name":"Flim and Flam","users":["flim","flam"],"color":["b0b46e","91963a"],"loadingText":"Giving opportunities..."},{"code":"flitter","name":"Flitter","users":["Flitter"],"color":["846eb4","573a96"]},{"code":"gilda","name":"Gilda","users":["gilda"],"color":["b49a6e","96743a"],"stack":"villian","nocutie":true},{"code":"ironwill","name":"Iron Will","users":["iron will","ironwill"],"search":"ironwill|iron will","color":["6e84b4","3a5796"],"stack":"villian","nocutie":true},{"code":"sombra","name":"King Sombra","users":["sombra"],"color":["6eb46e","3a963a"],"stack":"villian","nocutie":true},{"code":"lightningdust","name":"Lightning Dust","users":["lightning"],"color":["6eb4ad","3a968d"]},{"code":"lotus","name":"Lotus","users":["lotus"],"search":"lotus|spa pony|spa ponies","color":["6ea0b4","3a7c96"]},{"code":"luna","name":"Luna","users":["luna"],"search":"luna|princess luna|nightmare moon|nightmaremoon","color":["6e7eb4","3a5096"],"soundNotif":"luna\/notif","loadingText":"Doubling the fun...","successText":"Huzzah!"},{"code":"lyra","name":"Lyra","users":["lyra"],"search":"lyra heartstrings","color":["6eb49d","3a9677"]},{"code":"nightmaremoon","name":"Nightmare Moon","users":["nightmare"],"search":"nightmare moon|nightmaremoon|luna|princess luna","color":["6e7fb4","3a5196"],"stack":"villian"},{"code":"nurseredheart","name":"Nurse Redheart","users":["nurse","redheart"],"color":["b46e76","963a45"]},{"code":"octavia","name":"Octavia","users":["octavia"],"color":["b4a76e","96853a"]},{"code":"pinkamena","name":"Pinkamena","users":["pinkamena"],"search":"pinkamena diane pie","color":["b46e8c","963a62"],"stack":"villian"},{"code":"chrysalis","name":"Queen Chrysalis","users":["chrysalis"],"search":"queen chrysalis|changeling","color":["6ea2b4","3a7f96"],"stack":"chrysalis","loadingText":"Feeding...","nocutie":true},{"code":"roidrage","name":"Roid Rage","users":["snowflake","roid","rage"],"search":"snowflake|roidrage|roid rage","menu_title":"Also known as Snowflake","color":["b4ae6e","968e3a"],"soundNotif":"_sound\/roidrage_yeah","successText":"YEAH!"},{"code":"rose","name":"Rose","users":["rose"],"search":"roseluck","menu_title":"Also known as Roseluck","color":["b46e8c","963a62"]},{"code":"scootaloo","name":"Scootaloo","users":["scootaloo"],"search":"scootaloo|cmc|cutie mark crusaders|chicken","color":["b4996e","96733a"],"loadingText":"Getting her cutie mark...","nocutie":true},{"code":"shiningarmor","name":"Shining Armor","users":["shining armor"],"search":"shining armor|shiningarmor","color":["6e7bb4","3a4b96"]},{"code":"silverspoon","name":"Silver Spoon","users":["spoon"],"search":"silver spoon|silverspoon","color":["6e97b4","3a7096"],"stack":"villian"},{"code":"soarin","name":"Soarin'","users":["soarin"],"search":"soarin'|wonderbolts","color":["6e9db4","3a7796"]},{"code":"spike","name":"Spike","users":["spike"],"color":["a26eb4","7f3a96"],"nocutie":true},{"code":"spitfire","name":"Spitfire","users":["spitfire"],"search":"spitfire|wonderbolts","color":["b4ae6e","968e3a"],"icon16":"spitfire\/icon16_2.png"},{"code":"sweetieb","name":"Sweetie Belle","users":["sweetieb","sweetie b"],"search":"sweetiebelle|sweetie belle|cmc|cutie mark crusaders","color":["a06eb4","7c3a96"],"soundNotif":"sweetieb\/notif","loadingText":"Getting her cutie mark...","nocutie":true},{"code":"vinyl","name":"Vinyl Scratch","users":["vinyl","vinyx","dj p"],"search":"vinyl scratch|dj pon3|dj-pon3|dj pon 3|dj pon-3","menu_title":"Also known as DJ Pon-3","color":["6ea9b4","3a8896"],"soundNotif":"vinyl\/notif","loadingText":"Wubbing..."},{"code":"zecora","name":"Zecora","users":["zecora"],"color":["b4af6e","96903a"]},{"code":"blank","name":"(Blank)","color":["b46e6e","963a3a"],"hidden":true,"nocutie":true},{"code":"bloomberg","name":"Bloomberg","color":["9fb46e","7a963a"],"hidden":true,"nocutie":true},{"code":"mono","name":"Mono","color":["b46e6e","963a3a"],"stack":"mono","hidden":true},{"code":"taugeh","name":"Taugeh","color":["b4b46e","96963a"],"hidden":true,"nocutie":true}]; + var PONIES = [{"code":"trixie","name":"Trixie","users":["trixie"],"menu_title":"The Great and Powerful Trixie demands your attention!","color":["6e98b4","3a7196"],"icon16":"trixie\/icon16_2.png","soundNotif":"trixie\/notif","loadingText":"Performing magic..."},{"code":"twilight","name":"Twilight Sparkle","users":["twilight","spark","tw\u0131l\u0131ght","twilite","twi light","\u0162wilight"],"search":"twilight sparkle|twilightsparkle|princess twilight","menu_title":"To switch to Princess Twilight, go to Misc > Appearance","color":["9f6eb4","7a3a96"],"mane6":true,"loadingText":"Studying friendship..."},{"code":"dash","name":"Rainbow Dash","users":["rainbow","dash"],"search":"rainbow dash|rainbowdash|dashie","color":["6e9db4","3a7796"],"soundNotif":"dash\/notif","mane6":true,"loadingText":"Loading... in ten seconds flat!","successText":"Aww yeah!"},{"code":"pinkie","name":"Pinkie Pie","users":["pink"],"search":"pinkie pie|pinkiepie|pinkamena diane pie","color":["b46e8a","963a5f"],"soundNotif":"pinkie\/notif2","mane6":true,"loadingText":"Come on everypony!"},{"code":"applej","name":"Applejack","users":["apple j","applej"],"search":"applejack|apple jack","color":["b4976e","96703a"],"soundNotif":"applej\/notif2","mane6":true,"loadingText":"Hold on there sugarcube!","successText":"Yeehaw!"},{"code":"flutter","name":"Fluttershy","users":["flutter","flut ter"],"search":"fluttershy|flutter shy","color":["b4ae6e","968e3a"],"soundNotif":"flutter\/notif2","mane6":true,"loadingText":"Screaming...","successText":"Yay!"},{"code":"rarity","name":"Rarity","users":["rarity"],"color":["9b6eb4","763a96"],"soundNotif":"rarity\/notif","mane6":true,"loadingText":"Whining...","seperator":true},{"code":"applebloom","name":"Apple Bloom","users":["appleb","apple b"],"search":"apple bloom|applebloom|cmc|cutie mark crusaders","color":["b46e8d","963a63"],"soundNotif":"applebloom\/notif","loadingText":"Getting her cutie mark...","nocutie":true},{"code":"aloe","name":"Aloe","users":["aloe"],"search":"aloe|spa pony|spa ponies","color":["b46e91","963a68"]},{"code":"babsseed","name":"Babs Seed","users":["babs","seed"],"search":"babs seed|babsseed|cmc|cutie mark crusaders","color":["b4976e","96703a"],"nocutie":true},{"code":"berry","name":"Berry Punch","users":["berry"],"color":["a56eb4","823a96"]},{"code":"bigmac","name":"Big Macintosh","users":["bigmac","big mac"],"search":"bigmacintosh|big macintosh|big mcintosh|bigmcintosh","color":["b46e75","963a43"],"soundNotif":"bigmac\/notif","loadingText":"Saying eeyup..."},{"code":"bonbon","name":"Bon Bon","users":["bon bon","bonbon","bon-bon"],"search":"bon bon|bonbon","color":["6e89b4","3a5d96"]},{"code":"braeburn","name":"Braeburn","users":["braeburn","breaburn"],"search":"braeburn|breaburn","color":["b4a86e","96873a"],"icon16":"braeburn\/icon16_2.png"},{"code":"cadance","name":"Cadance","users":["cadance","cadence"],"search":"cadance|cadence|princess cadance|princess cadence","color":["b46e96","963a6e"]},{"code":"carrot","name":"Carrot Top","users":["golden","carrot"],"search":"carrot top|carrottop|golden harvest","menu_title":"Also known as Golden Harvest","color":["b2b46e","93963a"]},{"code":"celestia","name":"Celestia","users":["celestia","trollestia","molestia"],"search":"celestia|princess celestia","color":["b46e98","963a71"],"loadingText":"Raising the sun..."},{"code":"cheerilee","name":"Cheerilee","users":["cheerilee"],"color":["b46e96","963a6e"]},{"code":"colgate","name":"Colgate","users":["colgate","minuette"],"search":"colgate|minuette|minette","menu_title":"Also known as Minuette","color":["6e99b4","3a7396"],"soundNotif":"colgate\/notif","loadingText":"Brushing..."},{"code":"cloudchaser","name":"Cloudchaser","users":["cloudch","cloud ch"],"search":"cloudchaser|cloud chaser|stormwalker|storm walker","menu_title":"Also known as Stormwalker","color":["856eb4","593a96"]},{"code":"daring","name":"Daring Do","users":["daring"],"search":"daring do|daringdo","color":["b4a76e","96853a"]},{"code":"derpy","name":"Derpy Hooves","users":["derpy"],"color":["b4b46e","96963a"],"fbIndex_swf":"derpy\/fbIndex.swf","soundNotif":"derpy\/notif","icon16":"derpy\/icon16_2.png","loadingText":"Wondering what went wrong..."},{"code":"diamondtiara","name":"Diamond Tiara","users":["tiara"],"search":"diamond tiara|diamondtiara","color":["926eb4","6a3a96"],"stack":"villian"},{"code":"discord","name":"Discord","users":["discord"],"color":["b46f6e","963c3a"],"stack":"villian","loadingText":"CHOCOLATE RAIN","nocutie":true},{"code":"whooves","name":"Doctor Whooves","users":["whooves","time turn"],"search":"doctor whooves|doctor hooves|time turner","menu_title":"Also known as Time Turner","color":["b4a06e","967c3a"]},{"code":"fleur","name":"Fleur De Lis","users":["fleur","fluer"],"search":"fleur de lis|fluer de lis|fleur dis lee|fluer dis lee","color":["b46eb4","963a96"]},{"code":"flimflam","name":"Flim and Flam","users":["flim","flam"],"color":["b0b46e","91963a"],"loadingText":"Giving opportunities..."},{"code":"flitter","name":"Flitter","users":["Flitter"],"color":["846eb4","573a96"]},{"code":"gilda","name":"Gilda","users":["gilda"],"color":["b49a6e","96743a"],"stack":"villian","nocutie":true},{"code":"ironwill","name":"Iron Will","users":["iron will","ironwill"],"search":"ironwill|iron will","color":["6e84b4","3a5796"],"stack":"villian","nocutie":true},{"code":"sombra","name":"King Sombra","users":["sombra"],"color":["6eb46e","3a963a"],"stack":"villian","nocutie":true},{"code":"lightningdust","name":"Lightning Dust","users":["lightning"],"color":["6eb4ad","3a968d"]},{"code":"lotus","name":"Lotus","users":["lotus"],"search":"lotus|spa pony|spa ponies","color":["6ea0b4","3a7c96"]},{"code":"luna","name":"Luna","users":["luna"],"search":"luna|princess luna|nightmare moon|nightmaremoon","color":["6e7eb4","3a5096"],"soundNotif":"luna\/notif","loadingText":"Doubling the fun...","successText":"Huzzah!"},{"code":"lyra","name":"Lyra","users":["lyra"],"search":"lyra heartstrings","color":["6eb49d","3a9677"]},{"code":"nightmaremoon","name":"Nightmare Moon","users":["nightmare"],"search":"nightmare moon|nightmaremoon|luna|princess luna","color":["6e7fb4","3a5196"],"stack":"villian"},{"code":"nurseredheart","name":"Nurse Redheart","users":["nurse","redheart"],"color":["b46e76","963a45"]},{"code":"octavia","name":"Octavia","users":["octavia"],"color":["b4a76e","96853a"]},{"code":"pinkamena","name":"Pinkamena","users":["pinkamena"],"search":"pinkamena diane pie","color":["b46e8c","963a62"],"stack":"villian"},{"code":"chrysalis","name":"Queen Chrysalis","users":["chrysalis"],"search":"queen chrysalis|changeling","color":["6ea2b4","3a7f96"],"stack":"chrysalis","loadingText":"Feeding...","nocutie":true},{"code":"roidrage","name":"Roid Rage","users":["snowflake","roid","rage"],"search":"snowflake|roidrage|roid rage","menu_title":"Also known as Snowflake","color":["b4ae6e","968e3a"],"soundNotif":"_sound\/roidrage_yeah","successText":"YEAH!"},{"code":"rose","name":"Rose","users":["rose"],"search":"roseluck","menu_title":"Also known as Roseluck","color":["b46e8c","963a62"]},{"code":"scootaloo","name":"Scootaloo","users":["scootaloo"],"search":"scootaloo|cmc|cutie mark crusaders|chicken","color":["b4996e","96733a"],"loadingText":"Getting her cutie mark...","nocutie":true},{"code":"shiningarmor","name":"Shining Armor","users":["shining armor"],"search":"shining armor|shiningarmor","color":["6e7bb4","3a4b96"]},{"code":"silverspoon","name":"Silver Spoon","users":["spoon"],"search":"silver spoon|silverspoon","color":["6e97b4","3a7096"],"stack":"villian"},{"code":"soarin","name":"Soarin'","users":["soarin"],"search":"soarin'|wonderbolts","color":["6e9db4","3a7796"]},{"code":"spike","name":"Spike","users":["spike"],"color":["a26eb4","7f3a96"],"nocutie":true},{"code":"spitfire","name":"Spitfire","users":["spitfire"],"search":"spitfire|wonderbolts","color":["b4ae6e","968e3a"],"icon16":"spitfire\/icon16_2.png"},{"code":"sweetieb","name":"Sweetie Belle","users":["sweetieb","sweetie b"],"search":"sweetiebelle|sweetie belle|cmc|cutie mark crusaders","color":["a06eb4","7c3a96"],"soundNotif":"sweetieb\/notif","loadingText":"Getting her cutie mark...","nocutie":true},{"code":"vinyl","name":"Vinyl Scratch","users":["vinyl","vinyx","dj p"],"search":"vinyl scratch|dj pon3|dj-pon3|dj pon 3|dj pon-3","menu_title":"Also known as DJ Pon-3","color":["6ea9b4","3a8896"],"soundNotif":"vinyl\/notif","loadingText":"Wubbing..."},{"code":"zecora","name":"Zecora","users":["zecora"],"color":["b4af6e","96903a"]},{"code":"blank","name":"(Blank)","color":["b46e6e","963a3a"],"hidden":true,"nocutie":true},{"code":"bloomberg","name":"Bloomberg","color":["9fb46e","7a963a"],"hidden":true,"nocutie":true},{"code":"mono","name":"Mono","color":["b46e6e","963a3a"],"stack":"mono","hidden":true},{"code":"taugeh","name":"Taugeh","color":["b4b46e","96963a"],"hidden":true,"nocutie":true}]; var LANG = {"af_ZA":{"sniff_comment_tooltip_like":"Hou van hierdie opmerking","sniff_comment_tooltip_unlike":"Hou nie meer van hierdie opmerking nie"},"ar_AR":{"sniff_comment_tooltip_like":"\u0627\u0644\u0625\u0639\u062c\u0627\u0628 \u0628\u0627\u0644\u062a\u0639\u0644\u064a\u0642","sniff_comment_tooltip_unlike":"\u0625\u0644\u063a\u0627\u0621 \u0625\u0639\u062c\u0627\u0628\u064a \u0628\u0647\u0630\u0627 \u0627\u0644\u062a\u0639\u0644\u064a\u0642"},"az_AZ":{"sniff_comment_tooltip_like":"Bu r\u0259yi b\u0259y\u0259n","sniff_comment_tooltip_unlike":"Bu \u015f\u0259rhi b\u0259y\u0259nm\u0259"},"be_BY":{"sniff_comment_tooltip_like":"\u041f\u0430\u0434\u0430\u0431\u0430\u0435\u0446\u0446\u0430","sniff_comment_tooltip_unlike":"\u041c\u043d\u0435 \u0431\u043e\u043b\u044c\u0448 \u043d\u0435 \u043f\u0430\u0434\u0430\u0431\u0430\u0435\u0446\u0446\u0430 \u0433\u044d\u0442\u044b \u043a\u0430\u043c\u044d\u043d\u0442\u0430\u0440"},"bg_BG":{"sniff_comment_tooltip_like":"\u0425\u0430\u0440\u0435\u0441\u0432\u0430\u043c \u0442\u043e\u0437\u0438 \u043a\u043e\u043c\u0435\u043d\u0442\u0430\u0440","sniff_comment_tooltip_unlike":"\u0412\u0435\u0447\u0435 \u043d\u0435 \u0445\u0430\u0440\u0435\u0441\u0432\u0430\u043c"},"bn_IN":{"sniff_comment_tooltip_like":"\u09ae\u09a8\u09cd\u09a4\u09ac\u09cd\u09af\u099f\u09bf \u09ad\u09be\u09b2\u09cb \u09b2\u09c7\u0997\u09c7\u099b\u09c7","sniff_comment_tooltip_unlike":"\u09ad\u09be\u09b2\u09cb \u09b2\u09be\u0997\u09c7\u09a8\u09bf"},"bs_BA":{"sniff_comment_tooltip_like":"Svi\u0111a mi se ovaj komentar","sniff_comment_tooltip_unlike":"Ne svi\u0111a mi se komentar"},"ca_ES":{"sniff_comment_tooltip_like":"M'agrada aquest comentari","sniff_comment_tooltip_unlike":"Ja no m'agrada aquest comentari."},"cs_CZ":{"sniff_comment_tooltip_like":"Tento koment\u00e1\u0159 se mi l\u00edb\u00ed.","sniff_comment_tooltip_unlike":"Koment\u00e1\u0159 se mi u\u017e nel\u00edb\u00ed","close":"Zav\u0159\u00edt"},"cy_GB":{"sniff_comment_tooltip_like":"Hoffi'r sylw hwn","sniff_comment_tooltip_unlike":"Peidio hoffi'r sylw hwn"},"da_DK":{"fb_composer_lessons":"Hvilke lektioner i venskab har du l\u00e6rt idag?","sniff_comment_tooltip_like":"Tilkendegiv, at du synes godt om denne kommentar","sniff_comment_tooltip_unlike":"Synes ikke godt om denne kommentar l\u00e6ngere","close":"Luk"},"de_DE":{"fb_composer_lessons":"Welche Lektionen \u00fcber Freundschaft hast Du heute gelernt?","sniff_comment_tooltip_like":"Dieser Kommentar gef\u00e4llt mir","sniff_comment_tooltip_unlike":"Dieser Kommentar gef\u00e4llt mir nicht mehr","close":"Schlie\u00dfen"},"el_GR":{"sniff_comment_tooltip_like":"\u039c\u03bf\u03c5 \u03b1\u03c1\u03ad\u03c3\u03b5\u03b9 \u03b1\u03c5\u03c4\u03cc \u03c4\u03bf \u03c3\u03c7\u03cc\u03bb\u03b9\u03bf","sniff_comment_tooltip_unlike":"\"\u0394\u03b5\u03bd \u03bc\u03bf\u03c5 \u03b1\u03c1\u03ad\u03c3\u03b5\u03b9!\" \u03b1\u03c5\u03c4\u03cc \u03c4\u03bf \u03c3\u03c7\u03cc\u03bb\u03b9\u03bf"},"en_PI":{"sniff_comment_tooltip_like":"This comment be pleasin","sniff_comment_tooltip_unlike":"Care not fer such trifles"},"en_US":{"fb_composer_lessons":"What lessons in friendship have you learned today?","fb_comment_box":"Write a friendship letter...","fb_search_box":"Search for ponies, places and things","fb_search_boxAlt":"Type to search for ponies, places and things","fb_composer_coolstory":"Write a cool story...","fb_composer_ponies":"Ponies!","fb_composer_ponies_caps":"PONIES!!!","fb_share_tooltip":"Remember! You gotta share... You gotta care...","sniff_comment_tooltip_like":"Like this comment","sniff_comment_tooltip_unlike":"Unlike this comment","sniff_fb_search_boxAlt":"Type to search","close":"Close","reloadNow":"Reload now","notNow":"Not now","invertSelection":"Invert selection","finish":"Finish","done":"Eeyup","options_title":"Ponyhoof Options","options_tabs_main":"General","options_tabs_background":"Background","options_tabs_sounds":"Sounds","options_tabs_extras":"Misc","options_tabs_advanced":"Debug","options_tabs_about":"About","settings_disable_runForNewUsers_explain":"If you enable this, Ponyhoof will not automatically run for other Facebook accounts that did not activate Ponyhoof yet. They can still open Ponyhoof Options to re-enable Ponyhoof if they wish to.","settings_extras_login_bg":"Use alternate background","settings_sounds":"Play sounds (e.g. notifications and dialogs)","settings_sounds_noNotification":"Play sounds (e.g. dialogs)","settings_extras_runForNewUsers_explain":"If you disable this, Ponyhoof will not automatically run for other Facebook accounts that did not activate Ponyhoof yet. They can still open Ponyhoof Options to re-enable Ponyhoof if they wish to.","settings_main_visitPage":"Visit the Ponyhoof page for news or contact us","settings_main_visitPageBusiness":"Visit the Ponyhoof page for news","settings_sounds_unavailable":"Notification sounds are not available on your browser. Please update your browser if possible.","updater_title":"Update Ponyhoof","costume_tooltip":"Limited to certain characters only"},"eo_EO":{"sniff_comment_tooltip_like":"\u015cati \u0109i tiun komenton","sniff_comment_tooltip_unlike":"Ne plu \u015dati \u0109i tiun komenton"},"es_ES":{"sniff_comment_tooltip_like":"Me gusta este comentario","sniff_comment_tooltip_unlike":"Ya no me gusta este comentario","close":"Cerrar"},"es_LA":{"fb_composer_lessons":"\u00bfQue has aprendido hoy sobre la amistad?","fb_comment_box":"Escribe un reporte de amistad...","sniff_comment_tooltip_like":"Me gusta este comentario","sniff_comment_tooltip_unlike":"Ya no me gusta este comentario","close":"Cerrar"},"et_EE":{"sniff_comment_tooltip_like":"Meeldib see kommentaar","sniff_comment_tooltip_unlike":"Ei meeldi enam"},"eu_ES":{"sniff_comment_tooltip_like":"Iruzkin hau atsegin dut","sniff_comment_tooltip_unlike":"Iruzkin hau desatsegin"},"fa_IR":{"sniff_comment_tooltip_like":"\u0627\u06cc\u0646 \u062f\u06cc\u062f\u06af\u0627\u0647 \u0631\u0627 \u0645\u06cc\u200c\u067e\u0633\u0646\u062f\u0645","sniff_comment_tooltip_unlike":"\u0627\u06cc\u0646 \u062f\u06cc\u062f\u06af\u0627\u0647 \u0631\u0627 \u0646\u067e\u0633\u0646\u062f\u06cc\u062f\u0645"},"fb_LT":{"fb_composer_lessons":"W|-|47 \u00a33550|\\|5 !|\\| |=|2!3|\\||)5|-|!|* |-|4\\\/3 '\/0|_| \u00a334|2|\\|3|) 70|)4'\/?","fb_comment_box":"W|2!73 4 |=|2!3|\\||)5|-|!|* \u00a33773|2...","fb_search_box":"S34|2(|-| |=0|2 |*0|\\|!35, |*\u00a34(35 4|\\||) 7|-|!|\\|95","fb_search_boxAlt":"T'\/|*3 70 534|2(|-| |=0|2 |*0|\\|!35, |*\u00a34(35 4|\\||) 7|-|!|\\|95","fb_composer_coolstory":"W|2!73 4 (00\u00a3 570|2'\/...","fb_composer_ponies":"P0|\\|!35!","fb_composer_ponies_caps":"PONIES!!!","fb_share_tooltip":"R3|\\\/|3|\\\/|83|2! Y0|_| 90774 5|-|4|23... Y0|_| 90774 (4|23...","close":"Alt+F4","reloadNow":"R3\u00a304|) |\\|0vv","notNow":"N07 |\\|0vv","invertSelection":"I|\\|\\\/3|27 53\u00a33(7!0|\\|","finish":"F!|\\|!5|-|","done":"E3'\/|_||*","options_title":"P0|\\|'\/|-|00|= O|*7!0|\\|5","options_tabs_main":"G3|\\|3|24\u00a3","options_tabs_background":"B4(k9|20|_||\\||)","options_tabs_sounds":"S0|_||\\||)5","options_tabs_extras":"M!5(","options_tabs_advanced":"D38|_|9","options_tabs_about":"A80|_|7","settings_disable_runForNewUsers_explain":"I|= '\/0|_| 3|\\|48\u00a33 7|-|!5, P0|\\|'\/|-|00|= vv!\u00a3\u00a3 |\\|07 4|_|70|\\\/|47!(4\u00a3\u00a3'\/ |2|_||\\| |=0|2 07|-|3|2 F4(3800k 4((0|_||\\|75 7|-|47 |)!|) |\\|07 4(7!\\\/473 P0|\\|'\/|-|00|= '\/37. T|-|3'\/ (4|\\| 57!\u00a3\u00a3 0|*3|\\| P0|\\|'\/|-|00|= O|*7!0|\\|5 70 |23-3|\\|48\u00a33 P0|\\|'\/|-|00|= !|= 7|-|3'\/ vv!5|-| 70.","settings_extras_login_bg":"U53 4\u00a373|2|\\|473 84(k9|20|_||\\||)","settings_sounds":"P\u00a34'\/ 50|_||\\||)5 (3.9. |\\|07!|=!(47!0|\\|5 4|\\||) |)!4\u00a3095)","settings_sounds_noNotification":"P\u00a34'\/ 50|_||\\||)5 (3.9. |)!4\u00a3095)","settings_extras_runForNewUsers_explain":"I|= '\/0|_| |)!548\u00a33 7|-|!5, P0|\\|'\/|-|00|= vv!\u00a3\u00a3 |\\|07 4|_|70|\\\/|47!(4\u00a3\u00a3'\/ |2|_||\\| |=0|2 07|-|3|2 F4(3800k 4((0|_||\\|75 7|-|47 |)!|) |\\|07 4(7!\\\/473 P0|\\|'\/|-|00|= '\/37. T|-|3'\/ (4|\\| 57!\u00a3\u00a3 0|*3|\\| P0|\\|'\/|-|00|= O|*7!0|\\|5 70 |23-3|\\|48\u00a33 P0|\\|'\/|-|00|= !|= 7|-|3'\/ vv!5|-| 70.","settings_main_visitPage":"V!5!7 7|-|3 P0|\\|'\/|-|00|= |*493 |=0|2 |\\|3vv5 0|2 (0|\\|74(7 |_|5","settings_main_visitPageBusiness":"V!5!7 7|-|3 P0|\\|'\/|-|00|= |*493 |=0|2 |\\|3vv5","settings_sounds_unavailable":"N07!|=!(47!0|\\| 50|_||\\||)5 4|23 |\\|07 4\\\/4!\u00a348\u00a33 0|\\| '\/0|_||2 8|20vv53|2. P\u00a33453 |_||*|)473 '\/0|_||2 8|20vv53|2 !|= |*055!8\u00a33.","updater_title":"U|*|)473 P0|\\|'\/|-|00|=","costume_tooltip":"L!|\\\/|!73|) 70 (3|274!|\\| (|-|4|24(73|25 0|\\|\u00a3'\/","sniff_comment_tooltip_like":"<3"},"fi_FI":{"fb_composer_lessons":"Mit\u00e4 oppeja yst\u00e4vyydest\u00e4 olet oppinut t\u00e4n\u00e4\u00e4n?","sniff_comment_tooltip_like":"Tykk\u00e4\u00e4 t\u00e4st\u00e4 kommentista","sniff_comment_tooltip_unlike":"En tykk\u00e4\u00e4k\u00e4\u00e4n","close":"Sulje"},"fo_FO":{"sniff_comment_tooltip_like":"M\u00e6r d\u00e1mar vi\u00f0merkingina"},"fr_CA":{"fb_composer_lessons":"Quelles le\u00e7ons sur l'amiti\u00e9 avez-vous appris aujourd'hui ?","sniff_comment_tooltip_like":"J\u2019aime ce commentaire","sniff_comment_tooltip_unlike":"Je n\u2019aime plus ce commentaire","close":"Fermer"},"fr_FR":{"fb_composer_lessons":"Quelles le\u00e7ons sur l'amiti\u00e9 avez-vous appris aujourd'hui ?","sniff_comment_tooltip_like":"J\u2019aime ce commentaire","sniff_comment_tooltip_unlike":"Je n\u2019aime plus ce commentaire","close":"Fermer"},"fy_NL":{"sniff_comment_tooltip_like":"Leuke reaksje","sniff_comment_tooltip_unlike":"Ik mei net mear oer dit berjocht"},"ga_IE":{"fb_composer_lessons":"cad ceachtanna i cairdeas ad'fhoghlaim t\u00fa inniu?","sniff_comment_tooltip_like":"L\u00e9irigh gur maith leat an tr\u00e1cht seo","sniff_comment_tooltip_unlike":"N\u00ed maith liom an tr\u00e1cht seo","close":"D\u00fan"},"gl_ES":{"sniff_comment_tooltip_like":"G\u00fastame este comentario","sniff_comment_tooltip_unlike":"Xa non me gusta"},"he_IL":{"fb_composer_lessons":"\u05d0\u05d9\u05dc\u05d5 \u05dc\u05e7\u05d7\u05d9\u05dd \u05d1\u05d9\u05d3\u05d9\u05d3\u05d5\u05ea \u05dc\u05de\u05d3\u05ea \u05d4\u05d9\u05d5\u05dd?","sniff_comment_tooltip_like":"\u05d0\u05d5\u05d4\u05d1 \u05d0\u05ea \u05d4\u05ea\u05d2\u05d5\u05d1\u05d4","sniff_comment_tooltip_unlike":"\u05dc\u05d0 \u05d0\u05d4\u05d1\/\u05d4 \u05d0\u05ea \u05ea\u05d2\u05d5\u05d1\u05d4 \u05d6\u05d5","close":"\u05e1\u05d2\u05d5\u05e8"},"hi_IN":{"sniff_comment_tooltip_like":"\u091f\u093f\u092a\u094d\u092a\u0923\u0940 \u092a\u0938\u0902\u0926 \u0915\u0930\u0947\u0902","sniff_comment_tooltip_unlike":"\u0907\u0938 \u091f\u093f\u092a\u094d\u092a\u0923\u0940 \u0915\u094b \u0928\u093e\u092a\u0938\u0902\u0926 \u0915\u0930\u0947\u0902"},"hr_HR":{"sniff_comment_tooltip_like":"Svi\u0111a mi se ovaj komentar","sniff_comment_tooltip_unlike":"Ne svi\u0111a mi se"},"hu_HU":{"fb_composer_lessons":"Mit tanult\u00e1l ma a bar\u00e1ts\u00e1gr\u00f3l?","sniff_comment_tooltip_like":"Tetszik a bejegyz\u00e9s.","sniff_comment_tooltip_unlike":"M\u00e9gsem tetszik","close":"Bez\u00e1r\u00e1s"},"hy_AM":{"sniff_comment_tooltip_like":"\u0540\u0561\u057e\u0561\u0576\u0565\u056c \u0561\u0575\u057d \u0574\u0565\u056f\u0576\u0561\u0562\u0561\u0576\u0578\u0582\u0569\u0575\u0578\u0582\u0576\u0568","sniff_comment_tooltip_unlike":"\u0549\u0570\u0561\u057e\u0561\u0576\u0565\u056c \u0561\u0575\u057d \u0574\u0565\u056f\u0576\u0561\u0562\u0561\u0576\u0578\u0582\u0569\u0575\u0578\u0582\u0576\u0568"},"id_ID":{"fb_composer_lessons":"Apa pelajaran yang kalian dapat tentang persahabatan hari ini?","sniff_comment_tooltip_like":"Suka komentar ini","sniff_comment_tooltip_unlike":"Tidak suka komentar ini","close":"Tutup"},"is_IS":{"sniff_comment_tooltip_like":"L\u00edkar vi\u00f0 \u00feessi umm\u00e6li","sniff_comment_tooltip_unlike":"L\u00edka ekki vi\u00f0 \u00feessi umm\u00e6li"},"it_IT":{"fb_composer_lessons":"Che cosa hai imparato oggi sull'amicizia?","sniff_comment_tooltip_like":"Di' che ti piace questo commento","sniff_comment_tooltip_unlike":"Di' che non ti piace pi\u00f9 questo commento","close":"Chiudi"},"ja_JP":{"fb_composer_lessons":"\u4eca\u65e5\u306f\u53cb\u60c5\u306b\u3069\u306e\u3088\u3046\u306a\u6559\u8a13\u3092\u5b66\u3073\u307e\u3057\u305f\u304b\uff1f","sniff_comment_tooltip_like":"\u3053\u306e\u30b3\u30e1\u30f3\u30c8\u306f\u3044\u3044\u306d\uff01","sniff_comment_tooltip_unlike":"\u3044\u3044\u306d\uff01\u3092\u53d6\u308a\u6d88\u3059","close":"\u9589\u3058\u308b"},"ka_GE":{"sniff_comment_tooltip_like":"\u10db\u10dd\u10d8\u10ec\u10dd\u10dc\u10d4 \u10d4\u10e1 \u10d9\u10dd\u10db\u10d4\u10dc\u10e2\u10d0\u10e0\u10d8","sniff_comment_tooltip_unlike":"\u10d0\u10e6\u10d0\u10e0 \u10db\u10dd\u10db\u10ec\u10dd\u10dc\u10e1 \u10d4\u10e1 \u10d9\u10dd\u10db\u10d4\u10dc\u10e2\u10d0\u10e0\u10d8"},"km_KH":{"sniff_comment_tooltip_like":"\u1785\u17bc\u179b\u1785\u17b7\u178f\u17d2\u178f \u179c\u17b7\u1785\u17b6\u179a \u1793\u17c1\u17c7","sniff_comment_tooltip_unlike":"\u179b\u17c2\u1784\u1785\u17bc\u179b\u1785\u17b7\u178f\u17d2\u178f\u1798\u178f\u17b7\u1793\u17c1\u17c7"},"ko_KR":{"fb_composer_lessons":"\uc6b0\uc815\uc5d0 \uad00\ud574\uc11c \uc624\ub298 \ubb34\uc5c7\uc744 \ubc30\uc6e0\ub098\uc694?","sniff_comment_tooltip_like":"\uc88b\uc544\uc694","sniff_comment_tooltip_unlike":"\uc88b\uc544\uc694 \ucde8\uc18c","close":"\ub2eb\uae30"},"ku_TR":{"sniff_comment_tooltip_like":"V\u00ea \u015f\u00eerovey\u00ea biecib\u00eene","sniff_comment_tooltip_unlike":"V\u00ea \u015firovey\u00ea neecib\u00eene"},"la_VA":[],"lt_LT":{"fb_composer_lessons":"Kokias \u017einias apie draugyst\u0119 i\u0161mokote \u0161iandien?","sniff_comment_tooltip_like":"Patinka \u0161is komentaras","sniff_comment_tooltip_unlike":"Nepatinka \u0161is komentaras","close":"U\u017edaryti"},"lv_LV":{"sniff_comment_tooltip_unlike":"Koment\u0101rs vairs nepat\u012bk"},"mk_MK":{"fb_composer_lessons":"\u041a\u043e\u0438 \u043b\u0435\u043a\u0446\u0438\u0438 \u0437\u0430 \u043f\u0440\u0438\u0458\u0430\u0442\u0435\u043b\u0441\u0442\u0432\u043e\u0442\u043e \u0434\u043e\u0437\u043d\u0430\u0432\u0442\u0435 \u0434\u0435\u043d\u0435\u0441?","sniff_comment_tooltip_like":"\u041c\u0438 \u0441\u0435 \u0434\u043e\u043f\u0430\u0453\u0430 \u043a\u043e\u043c\u0435\u043d\u0442\u0430\u0440\u043e\u0432","sniff_comment_tooltip_unlike":"\u041d\u0435 \u043c\u0438 \u0441\u0435 \u0434\u043e\u043f\u0430\u0453\u0430","close":"\u0417\u0430\u0442\u0432\u043e\u0440\u0438"},"ml_IN":{"sniff_comment_tooltip_like":"\u0d08 \u0d05\u0d2d\u0d3f\u0d2a\u0d4d\u0d30\u0d3e\u0d2f\u0d02 \u0d07\u0d37\u0d4d\u0d1f\u0d2e\u0d3e\u0d2f\u0d3f"},"ms_MY":{"fb_composer_lessons":"Apakah pelajaran tentang persahabatan yang telah anda pelajari hari ini?","fb_comment_box":"Tuliskan surat persahabatan...","fb_composer_ponies":"Kuda!","fb_composer_ponies_caps":"KUDA!!!","sniff_comment_tooltip_like":"Suka komen ini","sniff_comment_tooltip_unlike":"Tidak suka komen ini","close":"Tutup","options_title":"Opsyen Ponyhoof"},"nb_NO":{"sniff_comment_tooltip_like":"Lik denne kommentaren"},"ne_NP":[],"nl_NL":{"fb_composer_lessons":"Wat heb je vandaag geleerd over vriendschap?","sniff_comment_tooltip_like":"Leuke reactie","sniff_comment_tooltip_unlike":"Reactie niet meer leuk","close":"Sluiten"},"pa_IN":{"sniff_comment_tooltip_like":"\u0a07\u0a39 \u0a1f\u0a3f\u0a71\u0a2a\u0a23\u0a40 \u0a2a\u0a38\u0a70\u0a26 \u0a15\u0a30\u0a4b","sniff_comment_tooltip_unlike":"\u0a07\u0a39 \u0a1f\u0a3f\u0a71\u0a2a\u0a23\u0a40 \u0a28\u0a3e\u0a2a\u0a38\u0a70\u0a26 \u0a15\u0a30\u0a4b|"},"pl_PL":{"fb_composer_lessons":"Czego si\u0119 dzisiaj nauczy\u0142e\u015b o przyja\u017ani?","sniff_comment_tooltip_like":"Polub komentarz","sniff_comment_tooltip_unlike":"Nie lubi\u0119 tego komentarza","close":"Zamknij"},"ps_AF":[],"pt_BR":{"fb_composer_lessons":"Quais li\u00e7\u00f5es sobre amizade voc\u00ea aprendeu hoje?","sniff_comment_tooltip_like":"Curtir este coment\u00e1rio","sniff_comment_tooltip_unlike":"Curtir (desfazer) este coment\u00e1rio","close":"Fechar"},"pt_PT":{"fb_composer_lessons":"Que li\u00e7\u00f5es de amizade voc\u00ea aprendeu hoje?","sniff_comment_tooltip_like":"Gosto deste coment\u00e1rio","sniff_comment_tooltip_unlike":"N\u00e3o gosto deste coment\u00e1rio","close":"Fechar"},"ro_RO":{"fb_composer_lessons":"Ce lec\u0163ii despre prietenie ai \u00eenv\u0103\u0163at ast\u0103zi?","sniff_comment_tooltip_like":"\u00cemi place acest comentariu","sniff_comment_tooltip_unlike":"Nu-mi mai place acest comentariu","close":"\u00cenchide"},"ru_RU":{"fb_composer_lessons":"\u041a\u0430\u043a\u0438\u0435 \u0443\u0440\u043e\u043a\u0438 \u0434\u0440\u0443\u0436\u0431\u044b \u0432\u044b \u0432\u044b\u0443\u0447\u0438\u043b\u0438 \u0441\u0435\u0433\u043e\u0434\u043d\u044f?","sniff_comment_tooltip_like":"\u041c\u043d\u0435 \u043d\u0440\u0430\u0432\u0438\u0442\u0441\u044f \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0439","sniff_comment_tooltip_unlike":"\u041d\u0435 \u043d\u0440\u0430\u0432\u0438\u0442\u0441\u044f","close":"\u0417\u0430\u043a\u0440\u044b\u0442\u044c"},"sk_SK":{"fb_composer_lessons":"Ak\u00e9 lekcie priate\u013estva si sa nau\u010dil dnes?","sniff_comment_tooltip_like":"P\u00e1\u010di sa mi tento koment\u00e1r","sniff_comment_tooltip_unlike":"Tento koment\u00e1r sa mi u\u017e nep\u00e1\u010di","close":"Zavrie\u0165"},"sl_SI":{"fb_composer_lessons":"Kaj si se o prijateljstvu nau\u010dil\/-a danes?","sniff_comment_tooltip_like":"V\u0161e\u010d mi je","sniff_comment_tooltip_unlike":"Ta komentar mi ni v\u0161e\u010d","close":"Zapri"},"sq_AL":{"sniff_comment_tooltip_like":"P\u00eblqeje k\u00ebt\u00eb koment","sniff_comment_tooltip_unlike":"Mos p\u00eblqe k\u00ebt\u00eb koment"},"sr_RS":{"sniff_comment_tooltip_like":"\u0421\u0432\u0438\u0452\u0430 \u043c\u0438 \u0441\u0435 \u043a\u043e\u043c\u0435\u043d\u0442\u0430\u0440.","sniff_comment_tooltip_unlike":"\u041d\u0435 \u0441\u0432\u0438\u0452\u0430 \u043c\u0438 \u0441\u0435 \u043e\u0432\u0430\u0458 \u043a\u043e\u043c\u0435\u043d\u0442\u0430\u0440","close":"\u0417\u0430\u0442\u0432\u043e\u0440\u0438"},"sv_SE":{"fb_composer_lessons":"Vilka l\u00e4rdomar i v\u00e4nskap har du l\u00e4rt dig idag?","sniff_comment_tooltip_like":"Gilla den h\u00e4r kommentaren","sniff_comment_tooltip_unlike":"Sluta gilla den h\u00e4r kommentaren","close":"St\u00e4ng"},"sw_KE":[],"ta_IN":{"sniff_comment_tooltip_like":"\u0b87\u0b95\u0bcd\u0b95\u0bb0\u0bc1\u0ba4\u0bcd\u0ba4\u0bbf\u0ba9\u0bc8 \u0bb5\u0bbf\u0bb0\u0bc1\u0bae\u0bcd\u0baa\u0bc1\u0b95\u0bbf\u0bb1\u0bc7\u0ba9\u0bcd","sniff_comment_tooltip_unlike":"\u0b87\u0b95\u0bcd\u0b95\u0bb0\u0bc1\u0ba4\u0bcd\u0ba4\u0bbf\u0ba9\u0bc8 \u0bb5\u0bbf\u0bb0\u0bc1\u0bae\u0bcd\u0baa\u0bb5\u0bbf\u0bb2\u0bcd\u0bb2\u0bc8","close":"\u0e1b\u0e34\u0e14"},"te_IN":{"sniff_comment_tooltip_unlike":"\u0c35\u0c4d\u0c2f\u0c3e\u0c16\u0c4d\u0c2f \u0c28\u0c1a\u0c4d\u0c1a\u0c32\u0c47\u0c26\u0c41"},"th_TH":{"sniff_comment_tooltip_like":"\u0e16\u0e39\u0e01\u0e43\u0e08\u0e04\u0e27\u0e32\u0e21\u0e04\u0e34\u0e14\u0e40\u0e2b\u0e47\u0e19\u0e19\u0e35\u0e49","sniff_comment_tooltip_unlike":"\u0e40\u0e25\u0e34\u0e01\u0e16\u0e39\u0e01\u0e43\u0e08\u0e04\u0e27\u0e32\u0e21\u0e04\u0e34\u0e14\u0e40\u0e2b\u0e47\u0e19\u0e19\u0e35\u0e49"},"tl_PH":{"fb_composer_lessons":"Anong mga aralin sa pagkakaibigan ang natutunan mo ngayon?","sniff_comment_tooltip_like":"Gustuhin ang komentong ito","sniff_comment_tooltip_unlike":"Ayawan ang komentong ito","close":"Isara"},"tr_TR":{"fb_composer_lessons":"Bug\u00fcn arkada\u015fl\u0131kla ilgili neler \u00f6\u011frendin?","sniff_comment_tooltip_like":"Bu yorumu be\u011fen","sniff_comment_tooltip_unlike":"Bu yorumu be\u011fenmekten vazge\u00e7","close":"Kapat"},"uk_UA":{"fb_composer_lessons":"\u042f\u043a\u0456 \u0443\u0440\u043e\u043a\u0438 \u0432 \u0434\u0440\u0443\u0436\u0431\u0456 \u0432\u0438 \u0434\u0456\u0437\u043d\u0430\u043b\u0438\u0441\u044f \u0441\u044c\u043e\u0433\u043e\u0434\u043d\u0456?","sniff_comment_tooltip_like":"\u0412\u043f\u043e\u0434\u043e\u0431\u0430\u0442\u0438 \u043a\u043e\u043c\u0435\u043d\u0442\u0430\u0440","sniff_comment_tooltip_unlike":"\u041d\u0435 \u043f\u043e\u0434\u043e\u0431\u0430\u0454\u0442\u044c\u0441\u044f \u043a\u043e\u043c\u0435\u043d\u0442\u0430\u0440","close":"\u0417\u0430\u043a\u0440\u0438\u0442\u0438"},"vi_VN":{"sniff_comment_tooltip_like":"Th\u00edch b\u00ecnh lu\u1eadn n\u00e0y","sniff_comment_tooltip_unlike":"B\u1ecf th\u00edch b\u00ecnh lu\u1eadn n\u00e0y n\u1eefa"},"zh_CN":{"sniff_comment_tooltip_like":"\u559c\u6b22\u6b64\u8bc4\u8bba","sniff_comment_tooltip_unlike":"\u4e0d\u559c\u6b22\u6b64\u8bc4\u8bba","close":"\u5173\u95ed"},"zh_HK":{"sniff_comment_tooltip_like":"\u5c0d\u9019\u5247\u7559\u8a00\u8b9a\u597d","sniff_comment_tooltip_unlike":"\u53d6\u6d88\u8b9a\u597d"},"zh_TW":{"fb_composer_lessons":"\u4f60\u4eca\u5929\u5f9e\u53cb\u60c5\u88e1\u9762\u5b78\u5230\u4e86\u4ec0\u9ebc\uff1f","sniff_comment_tooltip_like":"\u8aaa\u9019\u5247\u7559\u8a00\u8b9a","sniff_comment_tooltip_unlike":"\u6536\u56de\u8b9a","close":"\u95dc\u9589"}}; var SOUNDS = {"AUTO":{"name":"(Auto-select)","seperator":true},"_sound\/defaultNotification":{"name":"Casting magic","title":"This will also be used for characters that do not have their own notification sound"},"trixie\/notif":{"name":"Trixie - Watch in awe!"},"dash\/notif":{"name":"Rainbow Dash - Aww yeah!"},"pinkie\/notif2":{"name":"Pinkie Pie - *rimshot*"},"applej\/notif":{"name":"Applejack - Yeehaw!"},"flutter\/notif2":{"name":"Fluttershy - Yay!"},"rarity\/notif":{"name":"Rarity - This is whining!"},"applebloom\/notif":{"name":"Apple Bloom - That'll be four bits"},"bigmac\/notif":{"name":"Big Macintosh - Eeyup"},"colgate\/notif":{"name":"Colgate - Why you don't brush your teeth"},"derpy\/notif":{"name":"Derpy Hooves - I brought you a letter!"},"luna\/notif":{"name":"Luna - Huzzah!"},"_sound\/roidrage_yeah":{"name":"Roid Rage\/Snowflake - YEAH!"},"sweetieb\/notif":{"name":"Sweetie Belle - Oh come on!"},"vinyl\/notif":{"name":"Vinyl Scratch - Yeah!","seperator":true},"twilight\/notif":{"name":"Twilight Sparkle - It's not over yet!"},"_sound\/grin2":{"name":"Fluttershy - *squee*"},"_sound\/dash_dundundun":{"name":"Rainbow Dash - DUN DUN DUN"},"_sound\/dash_egghead":{"name":"Rainbow Dash - I'm an egghead"},"_sound\/pinkie_boring":{"name":"Pinkie Pie - Booooring!"},"_sound\/pinkie_gasp":{"name":"Pinkie Pie - *gasp*"},"_sound\/pinkie_partycannon":{"name":"Pinkie Pie - Party cannon"},"_sound\/pinkie_pinkiepiestyle":{"name":"Pinkie Pie - Pinkie Pie style!"},"_sound\/flutter_woohoo":{"name":"Fluttershy - Woo hoo"},"_sound\/rarity_dumbrock":{"name":"Rarity - Dumb rock!"},"_sound\/rarity_itison":{"name":"Rarity - Oh. It. Is. On!"},"_sound\/rarity_wahaha":{"name":"Rarity - Wahaha!"},"_sound\/octavia_nevermess":{"name":"Octavia - Never mess with Octavia"},"_sound\/vinyl_awyeah":{"name":"Vinyl Scratch - Aw yeah!"},"_sound\/vinyl_mybasscannon":{"name":"Vinyl Scratch - My bass cannon!"},"_sound\/vinyl_wubwubwub":{"name":"Vinyl Scratch - Wubwubwub"},"_sound\/vinyl_wubedubdub":{"name":"Vinyl Scratch - Wubedubdub"},"_sound\/vinyl_yougotwubs":{"name":"Vinyl Scratch - You got wubs"}}; var SOUNDS_CHAT = {"_sound\/grin2":{"name":"Fluttershy - *squee*"},"_sound\/chat_boing":{"name":"Boing"}}; @@ -1229,7 +1227,7 @@ function md5cycle(f,c){var b=f[0],a=f[1],d=f[2],e=f[3],b=ff(b,a,d,e,c[0],7,-6808 //'survivedTheNight', 'chatSound1401', 'randomSettingMigrated' }; - var STACKS_LANG = [{"stack":"pony","people":"ponies","person":"pony","friend":"pal","friends":"pals","friend_logic":"pal","friends_logic":"pals","like":"brohoof","likes":"brohoofs","unlike":"unbrohoof","like_past":"brohoof","likes_past":"brohoofs","liked":"brohoof'd","liked_button":"brohoof'd","liking":"brohoofing"},{"stack":"chrysalis","people":"changelings","person":"changeling","friend":"prey","friends":"prey","friend_logic":"changeling","friends_logic":"changelings","like":"feed","likes":"feeds","unlike":"unfeed","like_past":"fed on","likes_past":"fed on","liked":"fed on","liked_button":"fed","liking":"feeding"},{"stack":"villian","people":"ponies","person":"changeling","friend":"pal","friends":"pals","friend_logic":"pal","friends_logic":"pals","like":"brohoof","likes":"brohoofs","unlike":"unbrohoof","like_past":"brohoof","likes_past":"brohoofs","liked":"brohoof'd","liked_button":"brohoof'd","liking":"brohoofing"}]; + var STACKS_LANG = [{"stack":"pony","people":"ponies","person":"pony","friend":"pal","friends":"pals","friend_logic":"pal","friends_logic":"pals","like":"brohoof","likes":"brohoofs","unlike":"unbrohoof","like_past":"brohoof","likes_past":"brohoofs","liked":"brohoof'd","liked_button":"brohoof'd","liking":"brohoofing"},{"stack":"chrysalis","people":"changelings","person":"changeling","friend":"prey","friends":"prey","friend_logic":"changeling","friends_logic":"changelings","like":"feed","likes":"feeds","unlike":"unfeed","like_past":"fed on","likes_past":"fed on","liked":"fed on","liked_button":"fed","liking":"feeding"},{"stack":"villian","people":"ponies","person":"pony","friend":"pal","friends":"pals","friend_logic":"pal","friends_logic":"pals","like":"brohoof","likes":"brohoofs","unlike":"unbrohoof","like_past":"brohoof","likes_past":"brohoofs","liked":"brohoof'd","liked_button":"brohoof'd","liking":"brohoofing"}]; var CURRENTSTACK = STACKS_LANG[0]; var COSTUMESX = {"winterwrapup":{"name":"Winter Wrap Up","characters":["twilight","dash","pinkie","applej","flutter","rarity","derpy"]},"nightmarenight":{"name":"Nightmare Night","characters":["twilight","dash","pinkie","applej","flutter","applebloom","bigmac","derpy","luna","scootaloo","spike","sweetieb","zecora"]},"hearthwarming":{"name":"Hearth's Warming","characters":["twilight","dash","pinkie","applej","flutter","rarity"]},"season3premiere":{"name":"Season 3 Premiere","characters":["twilight","rarity"]},"crystal":{"name":"Crystal Pony","characters":["twilight","dash","pinkie","applej","flutter","rarity","cadance"]},"wedding":{"name":"Canterlot Wedding","characters":["sweetieb"]},"coronation":{"name":"Princess Coronation Dresses","characters":["dash","pinkie","applej","flutter","rarity","cadance"]},"princess":{"name":"Princess Twilight Sparkle","characters":["twilight"]}}; var SOUNDS_NOTIFTYPE = { @@ -1267,16 +1265,29 @@ function md5cycle(f,c){var b=f[0],a=f[1],d=f[2],e=f[3],b=ff(b,a,d,e,c[0],7,-6808 // Chrome var chrome_sendMessage = function(message, callback) { - if (chrome.extension.sendMessage) { - chrome.extension.sendMessage(message, callback); - } else { - chrome.extension.sendRequest(message, callback); + try { + if (chrome.extension.sendMessage) { + chrome.extension.sendMessage(message, callback); + } else { + chrome.extension.sendRequest(message, callback); + } + } catch (e) { + if (e.toString().indexOf('Error: Error connecting to extension ') === 0) { + extUpdatedError(e.toString()); + } + throw e; } }; var chrome_storageFallback = false; var chrome_getValue = function(name, callback) { if (chrome.storage && !chrome_storageFallback) { + if (chrome_isExtUpdated()) { + extUpdatedError("[chrome_getValue("+name+")]"); + callback(null); + return; + } + chrome.storage.local.get(name, function(item) { if (chrome.runtime && chrome.runtime.lastError) { // Fallback to old storage method @@ -1311,6 +1322,11 @@ function md5cycle(f,c){var b=f[0],a=f[1],d=f[2],e=f[3],b=ff(b,a,d,e,c[0],7,-6808 var chrome_setValue = function(name, val) { if (chrome.storage && !chrome_storageFallback) { + if (chrome_isExtUpdated()) { + extUpdatedError("[chrome_setValue("+name+")]"); + return; + } + var toSet = {}; toSet[name] = val; chrome.storage.local.set(toSet, function() { @@ -1345,6 +1361,10 @@ function md5cycle(f,c){var b=f[0],a=f[1],d=f[2],e=f[3],b=ff(b,a,d,e,c[0],7,-6808 } }); }; + + var chrome_isExtUpdated = function() { + return (typeof chrome.i18n === 'undefined' || typeof chrome.i18n.getMessage('@@extension_id') === 'undefined'); + }; if (ISOPERA) { if (opera.extension) { @@ -1449,7 +1469,7 @@ function md5cycle(f,c){var b=f[0],a=f[1],d=f[2],e=f[3],b=ff(b,a,d,e,c[0],7,-6808 }; } - if (ISFIREFOX && typeof self != 'undefined' && typeof self.on != 'undefined') { + if (typeof self != 'undefined' && typeof self.on != 'undefined') { self.on('message', function(message) { var data = message; if (data) { @@ -1460,6 +1480,7 @@ function md5cycle(f,c){var b=f[0],a=f[1],d=f[2],e=f[3],b=ff(b,a,d,e,c[0],7,-6808 } } }); + var xpi_getValue = function(name, callback) { _ext_messageCallback[_ext_messageId] = callback; self.postMessage({'command':'getValue', 'messageid':_ext_messageId, 'name':name}); @@ -1470,7 +1491,7 @@ function md5cycle(f,c){var b=f[0],a=f[1],d=f[2],e=f[3],b=ff(b,a,d,e,c[0],7,-6808 self.postMessage({'command':'setValue', 'name':name, 'val':val}); }; - var xpi_clearStorage = function(name, val) { + var xpi_clearStorage = function() { self.postMessage({'command':'clearStorage'}); }; @@ -1495,11 +1516,17 @@ function md5cycle(f,c){var b=f[0],a=f[1],d=f[2],e=f[3],b=ff(b,a,d,e,c[0],7,-6808 self.postMessage({'command':'ajax', 'messageid':_ext_messageId, 'details':detailsX}); _ext_messageId += 1; }; + + var xpi_sendMessage = function(message, callback) { + _ext_messageCallback[_ext_messageId] = callback; + message.messageid = _ext_messageId; + self.postMessage(message); + _ext_messageId += 1; + }; } if (typeof w.external != 'undefined' && typeof w.external.mxGetRuntime != 'undefined') { var maxthonRuntime = w.external.mxGetRuntime(); - maxthonRuntime.listen('messageContentScript', function(message) { var data = message; if (data) { @@ -1511,6 +1538,32 @@ function md5cycle(f,c){var b=f[0],a=f[1],d=f[2],e=f[3],b=ff(b,a,d,e,c[0],7,-6808 } }); + var mxaddon_getValue = function(name, callback) { + try { + callback(maxthonRuntime.storage.getConfig(name)); + } catch (e) { + if (e.message && e.message === 'No LocalStorage Service Extension! (206)') { + extUpdatedError(e.message); + } + throw e; + } + }; + + var mxaddon_setValue = function(name, val) { + try { + maxthonRuntime.storage.setConfig(name, val); + } catch (e) { + if (e.message && e.message === 'No LocalStorage Service Extension! (206)') { + extUpdatedError(e.message); + } + throw e; + } + }; + + var mxaddon_clearStorage = function() { + // Maxthon does not have a clear storage function + }; + var mxaddon_ajax = function(details) { _ext_messageCallback[_ext_messageId] = function(response) { if (response.val == 'success') { @@ -1529,7 +1582,14 @@ function md5cycle(f,c){var b=f[0],a=f[1],d=f[2],e=f[3],b=ff(b,a,d,e,c[0],7,-6808 ,'headers': details.headers ,'data': details.data }; - maxthonRuntime.post('messageBackground', {'command':'ajax', 'messageid':_ext_messageId, 'details':detailsX}); + try { + maxthonRuntime.post('messageBackground', {'command':'ajax', 'messageid':_ext_messageId, 'details':detailsX}); + } catch (e) { + if (e.message && e.message === 'No Platform_Message Service Extension! (355)') { + extUpdatedError(e.message); + } + throw e; + } _ext_messageId += 1; }; } @@ -1591,27 +1651,41 @@ function md5cycle(f,c){var b=f[0],a=f[1],d=f[2],e=f[3],b=ff(b,a,d,e,c[0],7,-6808 } function getValueError(extra) { - if (extra === 'ModuleSystem has been deleted' || extra === 'TypeError: Cannot read property \'sendMessage\' of undefined' || extra === 'ModuleSystem has been deleted' || extra === 'TypeError: Cannot read property \'sendMessage\' of undefined') { - createSimpleDialog('localStorageError_getValueChromeExt', "Ponyhoof derp'd", "Whoops, Ponyhoof has been disabled/updated recently. Please reload the page in order for Ponyhoof to work properly."); + if (chrome_isExtUpdatedError(extra)) { + extUpdatedError(extra); } else { - createSimpleDialog('localStorageError_getValue', "Ponyhoof derp'd", "Whoops, Ponyhoof can't load your settings. Please try again later.

If you keep seeing this error, please update to the latest version of Ponyhoof if available and visit and post to the Ponyhoof page for help.

"+extra); + createSimpleDialog('localStorageError_getValue', "Ponyhoof derp'd", "Whoops, Ponyhoof can't load your settings. Please try again later.

If you keep seeing this error, please update to the latest version of Ponyhoof if available and visit and post to the Ponyhoof page for help.

"+extra+""); } trace(); } function saveValueError(extra) { - var desc = "Whoops, Ponyhoof can't save your settings. Please try again later.

If you keep seeing this error, please update to the latest version of Ponyhoof if available and visit and post to the Ponyhoof page for help.

"+extra; + var desc = "Whoops, Ponyhoof can't save your settings. Please try again later."; + if (ISFIREFOX && STORAGEMETHOD === 'greasemonkey' && userSettings.customBg) { + desc += "

This may be caused by a large custom background that you have set. Please try removing it."; + } + desc += "

If you keep seeing this error, please update to the latest version of Ponyhoof if available and visit and post to the Ponyhoof page for help.

"+extra+""; createSimpleDialog('localStorageError_saveValue', "Ponyhoof derp'd", desc); trace(); } function ponyhoofError(extra) { - createSimpleDialog('ponyhoofError', "Ponyhoof derp'd", "Whoops, Ponyhoof encountered an internal error. Please try again later.

If you keep seeing this error, please update to the latest version of Ponyhoof if available and visit and post to the Ponyhoof page for help.

"+extra); + createSimpleDialog('ponyhoofError', "Ponyhoof derp'd", "Whoops, Ponyhoof encountered an internal error. Please try again later.

If you keep seeing this error, please update to the latest version of Ponyhoof if available and visit and post to the Ponyhoof page for help.

"+extra+""); trace(); } + + var chrome_isExtUpdatedError = function(message) { + var a = 'ModuleSystem has been deleted'; + var b = 'TypeError: Cannot read property \'sendMessage\' of undefined'; + return (message === a || message === b); + }; + + var extUpdatedError = function(extra) { + createSimpleDialog('localStorageError_extUpdatedError', "Ponyhoof derp'd", "Ponyhoof has been updated/disabled recently. Please reload the page in order for Ponyhoof to work properly.

"+extra+""); + }; function getValue(name, callback) { switch (STORAGEMETHOD) { @@ -1636,7 +1710,7 @@ function md5cycle(f,c){var b=f[0],a=f[1],d=f[2],e=f[3],b=ff(b,a,d,e,c[0],7,-6808 break; case 'mxaddon': - callback(w.external.mxGetRuntime().storage.getConfig(name)); + mxaddon_getValue(name, callback); break; case 'localstorage': @@ -1670,7 +1744,7 @@ function md5cycle(f,c){var b=f[0],a=f[1],d=f[2],e=f[3],b=ff(b,a,d,e,c[0],7,-6808 break; case 'mxaddon': - w.external.mxGetRuntime().storage.setConfig(name, v); + mxaddon_setValue(name, v); break; case 'localstorage': @@ -1716,9 +1790,9 @@ function md5cycle(f,c){var b=f[0],a=f[1],d=f[2],e=f[3],b=ff(b,a,d,e,c[0],7,-6808 var extra = ''; if (e.message) { - extra = ""+e.message+""; + extra = e.message; } else { - extra = ""+e.toString()+""; + extra = e.toString(); } try { getValueError(extra); @@ -1757,14 +1831,14 @@ function md5cycle(f,c){var b=f[0],a=f[1],d=f[2],e=f[3],b=ff(b,a,d,e,c[0],7,-6808 var extra = ''; if (e.message) { if (e.message == 'ModuleSystem has been deleted' || e.message == 'TypeError: Cannot read property \'sendMessage\' of undefined') { - createSimpleDialog('localStorageError_setValueChromeExt', "Ponyhoof derp'd", "Ponyhoof has been disabled/updated recently. Please reload the page in order for Ponyhoof to work properly."); + extUpdatedError(e.message); callback(); return; } - extra = ""+e.message+""; + extra = e.message; } else { - extra = ""+e.toString()+""; + extra = e.toString(); } saveValueError(extra); return false; @@ -1780,6 +1854,7 @@ function md5cycle(f,c){var b=f[0],a=f[1],d=f[2],e=f[3],b=ff(b,a,d,e,c[0],7,-6808 i.style.position = 'absolute'; i.style.top = '-9999px'; i.style.left = '-9999px'; + i.setAttribute('aria-hidden', 'true'); i.src = '//hoof.little.my/files/_htm/stat_'+stat+'.htm?version='+VERSION; d.body.appendChild(i); } @@ -1805,6 +1880,7 @@ function md5cycle(f,c){var b=f[0],a=f[1],d=f[2],e=f[3],b=ff(b,a,d,e,c[0],7,-6808 k.customClick = function() {}; k.customCheckCondition = false; k.overrideClickAction = false; + k.saveTheme = true; k.menu = null; k.createSelector = function() { @@ -1846,8 +1922,10 @@ function md5cycle(f,c){var b=f[0],a=f[1],d=f[2],e=f[3],b=ff(b,a,d,e,c[0],7,-6808 CURRENTPONY = 'RANDOM'; changeThemeSmart('RANDOM'); - userSettings.theme = 'RANDOM'; - saveSettings(); + if (k.saveTheme) { + userSettings.theme = 'RANDOM'; + saveSettings(); + } menuClass.changeButtonText("(Random)"); menuClass.changeChecked(menuItem); @@ -1920,8 +1998,10 @@ function md5cycle(f,c){var b=f[0],a=f[1],d=f[2],e=f[3],b=ff(b,a,d,e,c[0],7,-6808 CURRENTPONY = code; changeThemeSmart(code); - userSettings.theme = code; - saveSettings(); + if (k.saveTheme) { + userSettings.theme = code; + saveSettings(); + } menuClass.changeButtonText(ponyData.name); menuClass.changeChecked(menuItem); @@ -2189,11 +2269,11 @@ function md5cycle(f,c){var b=f[0],a=f[1],d=f[2],e=f[3],b=ff(b,a,d,e,c[0],7,-6808 // v1.611 case 'xpi': - // @todo + ele.href = json.xpi; break; case 'mxaddon': - // @todo + // Handled by function break; default: @@ -2239,7 +2319,7 @@ function md5cycle(f,c){var b=f[0],a=f[1],d=f[2],e=f[3],b=ff(b,a,d,e,c[0],7,-6808 return; case 'mxaddon': - // @todo + k.mxaddon(); return; default: @@ -2315,7 +2395,7 @@ function md5cycle(f,c){var b=f[0],a=f[1],d=f[2],e=f[3],b=ff(b,a,d,e,c[0],7,-6808 k.cwsWaitDialog.noBottom = true; k.cwsWaitDialog.canCloseByEscapeKey = false; k.cwsWaitDialog.create(); - k.cwsWaitDialog.changeTitle(CURRENTLANG.updater_title); + k.cwsWaitDialog.changeTitle(CURRENTLANG['updater_title']); k.cwsWaitDialog.changeContent(c); chrome_sendMessage({'command':'checkForUpdates'}, function(status, details) { @@ -2333,7 +2413,7 @@ function md5cycle(f,c){var b=f[0],a=f[1],d=f[2],e=f[3],b=ff(b,a,d,e,c[0],7,-6808 } else { successText = "Yay!"; } - var c = successText+" Reloading... "; + var c = successText+" Update complete, reloading... "; k.cwsWaitDialog.changeContent(c); if (!k.cwsDialog) { @@ -2385,14 +2465,14 @@ function md5cycle(f,c){var b=f[0],a=f[1],d=f[2],e=f[3],b=ff(b,a,d,e,c[0],7,-6808 } var newversion = k.update_json.version; - var c = ""+header+"

To update now, go to about:extensions in the address bar, enable Developer mode at the top-right and click Update extensions now."; + var c = ""+header+"

To update now, go to about:extensions in the address bar, enable Developer mode at the top-right and click Update extensions now."; if (newversion) { c += "

Verify that the version changes from "+VERSION+" to "+parseFloat(newversion)+" and reload Facebook."; } c += "

<"+"img src='"+THEMEURL+"_welcome/chrome_forceupdate.png' alt='' width='177' height='108' class='ponyhoof_image_shadow'>"; var bottom = ''; - bottom += 'Open Extensions'; + bottom += 'Open Extensions'; bottom += ''+CURRENTLANG.reloadNow+''; bottom += ''+CURRENTLANG.notNow+''; @@ -2403,13 +2483,13 @@ function md5cycle(f,c){var b=f[0],a=f[1],d=f[2],e=f[3],b=ff(b,a,d,e,c[0],7,-6808 k.cwsDialog.changeContent(c); k.cwsDialog.changeBottom(bottom); - var openExtensionsButton = $('ponyhoof_updater_cws_openExtensions'); - - openExtensionsButton.addEventListener('click', function() { - if (!hasClass(this, 'uiButtonDisabled')) { - chrome_sendMessage({'command':'openExtensions'}, function() {}); - } - return false; + $$(k.cwsDialog.dialog, '.ponyhoof_updater_cws_openExtensions', function(button) { + button.addEventListener('click', function(e) { + e.preventDefault(); + if (!hasClass(this, 'uiButtonDisabled')) { + chrome_sendMessage({'command':'openExtensions'}, function() {}); + } + }); }); k._initReloadButtons(k.cwsDialog); @@ -2481,20 +2561,102 @@ function md5cycle(f,c){var b=f[0],a=f[1],d=f[2],e=f[3],b=ff(b,a,d,e,c[0],7,-6808 }; k.xpiDialog = null; + k.xpiWaitDialog = null; + k.xpiOneClickSuccess = false; k._xpi = function() { - if (k.xpiDialog) { - k.xpiDialog.show(); + if (k.xpiWaitDialog) { + k._xpi_showDialog(); + return; + } + + var c = "Updating... "; + k.xpiWaitDialog = new Dialog('update_xpiWait'); + k.xpiWaitDialog.alwaysModal = true; + k.xpiWaitDialog.noBottom = true; + k.xpiWaitDialog.canCloseByEscapeKey = false; + k.xpiWaitDialog.create(); + k.xpiWaitDialog.changeTitle(CURRENTLANG['updater_title']); + k.xpiWaitDialog.changeContent(c); + + xpi_sendMessage({'command':'checkForUpdates'}, function(val) { + if (val != 'update_available') { + k._xpi_fallback(); + return; + } + + xpi_sendMessage({'command':'onUpdateAvailable'}, function(val) { + if (!val.status) { + return; + } + var c = ''; + switch (val.status) { + case 'onDownloadStarted': + c = "Downloading update..."; + break; + + case 'onDownloadEnded': + c = "Preparing to install..."; + break; + + case 'onInstallStarted': + c = "Installing update..."; + + w.setTimeout(function() { + k.xpiOneClickSuccess = true; + + if (!k.xpiDialog) { + var successText = ''; + var ponyData = convertCodeToData(REALPONY); + if (ponyData.successText) { + successText = ponyData.successText; + } else { + successText = "Yay!"; + } + c = successText+" Update complete, reloading..."; + k.xpiWaitDialog.changeContent(c); + + w.location.reload(); + } + }, 100); + break; + + case 'onDownloadFailed': + case 'onInstallFailed': + k._xpi_fallback(); + break; + + default: + break; + } + if (c) { + c += " "; + k.xpiWaitDialog.changeContent(c); + } + }); + }); + + w.setTimeout(k._xpi_fallback, 10000); + }; + + k._xpi_fallback = function() { + if (k.xpiOneClickSuccess) { return; } + k.xpiOneClickSuccess = true; + + k.xpiWaitDialog.close(); + k._xpi_showDialog(); + }; + k._xpi_showDialog = function() { var c = ''; c += "Firefox may prompt a security warning at the top-left, click Allow.

<"+"img src='"+THEMEURL+"_welcome/guide/firefox/xpi_1_facebook.png' alt='' width='409' height='144' class='ponyhoof_image_shadow'>
"; c += "When you see the Software Installation dialog, click Install Now. The update will load after you reload Facebook, you do not need to restart Firefox.

<"+"img src='"+THEMEURL+"_welcome/guide/firefox/xpi_2.png' alt='' width='400' height='412' class='ponyhoof_image_shadow'>"; var bottom = ''; - bottom += ''; - bottom += ''+CURRENTLANG.reloadNow+''; - bottom += ''+CURRENTLANG.notNow+''; + bottom += ''; + bottom += ''+CURRENTLANG['reloadNow']+''; + bottom += ''+CURRENTLANG['notNow']+''; k.xpiDialog = new Dialog('update_xpi'); k.xpiDialog.alwaysModal = true; @@ -2503,20 +2665,68 @@ function md5cycle(f,c){var b=f[0],a=f[1],d=f[2],e=f[3],b=ff(b,a,d,e,c[0],7,-6808 k.xpiDialog.changeContent(c); k.xpiDialog.changeBottom(bottom); - var retry = k.xpiDialog.dialog.getElementsByClassName('retry'); + if (k.update_json.xpi) { + var retry = k.xpiDialog.dialog.getElementsByClassName('retry'); + if (retry.length) { + retry = retry[0]; + retry.href = k.update_json.xpi; + removeClass(retry.parentNode, 'hidden_elem'); + } + k._initReloadButtons(k.xpiDialog); + + try { + USW.InstallTrigger.install({ + "Ponyhoof": { + URL: k.update_json.xpi + ,IconURL: 'https://hoof.little.my/files/app32.png' + } + }); + } catch (e) { + dir(e); + } + } + }; + + k.mxaddonDialog = null; + k.mxaddon = function() { + if (k.mxaddonDialog) { + k.mxaddonDialog.show(); + return; + } + + injectManualStyle('#ponyhoof_dialog_update_mxaddon .generic_dialog_popup, #ponyhoof_dialog_update_mxaddon .popup {width:500px;}', 'update_mxaddon'); + + var c = "Click Update when you see this dialog. The update will load after you reload Facebook.

<"+"img src='"+THEMEURL+"_welcome/guide/maxthon/update.png' alt='' width='446' height='419' class='ponyhoof_image_shadow'>"; + + var bottom = ''; + bottom += ''; + bottom += ''+CURRENTLANG['reloadNow']+''; + bottom += ''+CURRENTLANG['notNow']+''; + + k.mxaddonDialog = new Dialog('update_mxaddon'); + k.mxaddonDialog.alwaysModal = true; + k.mxaddonDialog.create(); + k.mxaddonDialog.changeTitle(CURRENTLANG['updater_title']); + k.mxaddonDialog.changeContent(c); + k.mxaddonDialog.changeBottom(bottom); + + var retry = k.mxaddonDialog.dialog.getElementsByClassName('retry'); if (retry.length) { retry = retry[0]; - retry.href = k.update_json.xpi; + retry.addEventListener('click', function(e) { + e.preventDefault(); + k._mxaddonInstallNow(); + }, false); + removeClass(retry, 'hidden_elem'); } - k._initReloadButtons(k.xpiDialog); + k._initReloadButtons(k.mxaddonDialog); + + k._mxaddonInstallNow(); + }; + k._mxaddonInstallNow = function() { try { - USW.InstallTrigger.install({ - "Ponyhoof": { - URL: k.update_json.xpi - ,IconURL: 'https://hoof.little.my/files/app32.png' - } - }); + w.external.mxCall('InstallApp', k.update_json.mxaddon); } catch (e) { dir(e); } @@ -2859,7 +3069,9 @@ function md5cycle(f,c){var b=f[0],a=f[1],d=f[2],e=f[3],b=ff(b,a,d,e,c[0],7,-6808 c += '
'; //c += '
'; c += '
'; - c += 'Share with your pals!'; + c += renderBrowserConfigWarning(); + + c += 'Share with your pals!'; var visitPageText = CURRENTLANG.settings_main_visitPage; if (ISUSINGBUSINESS) { @@ -2926,6 +3138,7 @@ function md5cycle(f,c){var b=f[0],a=f[1],d=f[2],e=f[3],b=ff(b,a,d,e,c[0],7,-6808 c += 'Enable now'; c += 'The chat sound option built into Facebook needs to be enabled.'; c += '
'; + c += '
Please turn off Facebook Messenger for Windows for chat sounds to work properly.
'; c += k.generateCheckbox('chatSound', "Change chat sound", {customFunc:k.chatSound}); c += '
'; c += '
Chat sound:
'; @@ -2952,7 +3165,7 @@ function md5cycle(f,c){var b=f[0],a=f[1],d=f[2],e=f[3],b=ff(b,a,d,e,c[0],7,-6808 c += '

'; c += 'Multi-user'; - c += k.generateCheckbox('allowLoginScreen', "Run Ponyhoof on the Facebook login screen", {global:true}); + c += k.generateCheckbox('allowLoginScreen', "Run Ponyhoof on the Facebook login screen", {global:true, customFunc:k.allowLoginScreenClicked}); c += k.generateCheckbox('runForNewUsers', "Run Ponyhoof for new users", {title:CURRENTLANG['settings_extras_runForNewUsers_explain'], global:true}); c += '
'; @@ -3004,7 +3217,9 @@ function md5cycle(f,c){var b=f[0],a=f[1],d=f[2],e=f[3],b=ff(b,a,d,e,c[0],7,-6808 c += 'Remove style'; c += '
'; c += 'Send page source'; - c += 'Reset all settings (including global)'; + if (STORAGEMETHOD != 'mxaddon') { + c += 'Reset all settings (including global)'; + } c += '
'; c += '
'; @@ -3055,6 +3270,8 @@ function md5cycle(f,c){var b=f[0],a=f[1],d=f[2],e=f[3],b=ff(b,a,d,e,c[0],7,-6808 k.created = true; // After + k.dialog.dialog.className += ' ponyhoof_dialog_localstorageWarningEmbedded'; + k.saveButton = $('ponyhoof_options_save'); k.saveButton.addEventListener('click', k.saveButtonClick, false); @@ -3113,7 +3330,7 @@ function md5cycle(f,c){var b=f[0],a=f[1],d=f[2],e=f[3],b=ff(b,a,d,e,c[0],7,-6808 tech += "STORAGEMETHOD: " + STORAGEMETHOD + "\n"; tech += "DISTRIBUTION: " + DISTRIBUTION + "\n"; if (STORAGEMETHOD == 'localstorage') { - tech += "localStorage.length: " + localStorage.length + "\n"; + tech += "localStorage.length: " + w.localStorage.length + "\n"; } tech += "\n"; tech += "navigator.userAgent: " + w.navigator.userAgent + "\n"; @@ -3465,9 +3682,7 @@ function md5cycle(f,c){var b=f[0],a=f[1],d=f[2],e=f[3],b=ff(b,a,d,e,c[0],7,-6808 } var litestand = false; - if (d.getElementsByClassName('_4g5r').length) { - litestand = true; - } else if (d.getElementsByClassName('-cx-PUBLIC-hasLitestandBookmarksSidebar__root').length) { + if (d.getElementsByClassName('_4g5r').length || d.getElementsByClassName('-cx-PUBLIC-hasLitestandBookmarksSidebar__root').length) { litestand = true; } if (litestand) { @@ -3498,7 +3713,11 @@ function md5cycle(f,c){var b=f[0],a=f[1],d=f[2],e=f[3],b=ff(b,a,d,e,c[0],7,-6808 // Reset settings $('ponyhoof_options_resetSettings').addEventListener('click', k.resetSettings, false); - $('ponyhoof_options_clearLocalStorage').addEventListener('click', k.clearStorage, false); + + var clearLocalStorage = $('ponyhoof_options_clearLocalStorage'); + if (clearLocalStorage) { + clearLocalStorage.addEventListener('click', k.clearStorage, false); + } k.extrasInitLoaded = true; }; @@ -3615,6 +3834,8 @@ function md5cycle(f,c){var b=f[0],a=f[1],d=f[2],e=f[3],b=ff(b,a,d,e,c[0],7,-6808 }; k.clearStorage = function(e) { + e.preventDefault(); + k.canSaveSettings = false; if (typeof GM_listValues != 'undefined') { @@ -3632,12 +3853,12 @@ function md5cycle(f,c){var b=f[0],a=f[1],d=f[2],e=f[3],b=ff(b,a,d,e,c[0],7,-6808 case 'localstorage': if (confirm(SIG+" localStorage must be cleared in order to reset settings. Doing this may cause other extensions to lose their settings.")) { try { - localStorage.clear(); + w.localStorage.clear(); } catch (e) { - alert(e.toString()); + alert("Can't clear localStorage :(\n\n"+e.toString()); } } else { - return false; + return; } break; @@ -3658,7 +3879,7 @@ function md5cycle(f,c){var b=f[0],a=f[1],d=f[2],e=f[3],b=ff(b,a,d,e,c[0],7,-6808 break; case 'mxaddon': - // @todo + // Maxthon does not have a clear storage function break; default: @@ -3666,7 +3887,6 @@ function md5cycle(f,c){var b=f[0],a=f[1],d=f[2],e=f[3],b=ff(b,a,d,e,c[0],7,-6808 } k.dialog.close(); - e.preventDefault(); w.location.reload(); }; @@ -3911,6 +4131,20 @@ function md5cycle(f,c){var b=f[0],a=f[1],d=f[2],e=f[3],b=ff(b,a,d,e,c[0],7,-6808 error("Unable to hook to ChatOptions and Arbiter"); dir(e); } + + // Detect Facebook Messenger for Windows + if (w.navigator.plugins) { + w.navigator.plugins.refresh(false); + + for (var i = 0, len = w.navigator.plugins.length; i < len; i += 1) { + var plugin = w.navigator.plugins[i]; + if (plugin[0] && plugin[0].type === 'application/x-facebook-desktop-1') { + removeClass($('ponyhoof_options_soundsMessengerForWindowsWarning'), 'hidden_elem'); + break; + } + } + } + k._soundsChatLoad(); k._soundsChatInit(); @@ -4213,7 +4447,7 @@ function md5cycle(f,c){var b=f[0],a=f[1],d=f[2],e=f[3],b=ff(b,a,d,e,c[0],7,-6808 // Firefox 23 started enforcing a 1MB limit per preference // http://hg.mozilla.org/mozilla-central/rev/2e46cabb6a11 - if (ISFIREFOX) { + if (ISFIREFOX && STORAGEMETHOD == 'greasemonkey') { k.bgSizeLimit = 1024 * 512; k.bgSizeLimitDescription = '512 KB'; } @@ -4405,6 +4639,15 @@ function md5cycle(f,c){var b=f[0],a=f[1],d=f[2],e=f[3],b=ff(b,a,d,e,c[0],7,-6808 k.disableDomNodeInserted(); }; + k.allowLoginScreenClicked = function() { + if (globalSettings.allowLoginScreen) { + globalSettings.lastUserId = USERID; + } else { + globalSettings.lastUserId = null; + } + saveGlobalSettings(); + }; + k.debug_disablelog = function() { if ($('ponyhoof_options_debug_disablelog').checked) { CANLOG = false; @@ -4737,7 +4980,7 @@ function md5cycle(f,c){var b=f[0],a=f[1],d=f[2],e=f[3],b=ff(b,a,d,e,c[0],7,-6808 css += '#ponyhoof_options_soundsVolume[type="range"] {cursor:pointer;width:200px;}'; css += '#ponyhoof_options_soundsVolumePreview {vertical-align:middle;}'; css += '#ponyhoof_options_soundsVolumeValue {display:none;padding-left:3px;}'; - css += '#ponyhoof_options_soundsChatSoundWarning {margin-bottom:10px;}'; + css += '#ponyhoof_options_soundsChatSoundWarning, #ponyhoof_options_soundsMessengerForWindowsWarning {margin-bottom:10px;}'; css += '#ponyhoof_options_tabs_extras .ponyhoof_show_if_injected + .uiInputLabel, #ponyhoof_options_tabs_extras .uiInputLabel + .ponyhoof_show_if_injected, #ponyhoof_options_tabs_advanced .uiInputLabel + .ponyhoof_show_if_injected {margin-top:3px;}'; css += '#ponyhoof_options_tabs_advanced .ponyhoof_hide_if_injected.ponyhoof_message {margin-bottom:10px;}'; css += '.ponyhoof_options_aboutsection {border-top:1px solid #ccc;margin:10px -10px 0;}'; @@ -4863,11 +5106,17 @@ function md5cycle(f,c){var b=f[0],a=f[1],d=f[2],e=f[3],b=ff(b,a,d,e,c[0],7,-6808 addClass(d.documentElement, 'ponyhoof_welcome_html_scenery_loaded'); var co = ''; - co += '
'; + co += '
'; co += 'Update now'; co += 'An update (v) for Ponyhoof is available.'; co += '
'; - + + co += renderBrowserConfigWarning(); + + if (STORAGEMETHOD == 'chrome' && chrome.extension.inIncognitoContext) { + co += '
Please note that your Ponyhoof settings are saved and not cleared, even if you are using Chrome incognito mode. Please disable Ponyhoof from running in incognito mode if you do not want others to know that you logged on to this browser.

'; + } + co += 'Select your favorite character to get started:'; co += '
'; co += '
You can re-select your character in Ponyhoof Options at the Account menu.
'; @@ -4889,11 +5138,14 @@ function md5cycle(f,c){var b=f[0],a=f[1],d=f[2],e=f[3],b=ff(b,a,d,e,c[0],7,-6808 } k.dialogFirst.changeContent(co); k.dialogFirst.changeBottom(bottom); + + k.dialogFirst.dialog.className += ' ponyhoof_dialog_localstorageWarningEmbedded'; DIALOGCOUNT += 4; var menuClosed = false; var ponySelector = new PonySelector($('ponyhoof_welcome_pony'), k.param); + ponySelector.saveTheme = false; ponySelector.createSelector(); w.setTimeout(function() { ponySelector.menu.open(); @@ -4941,8 +5193,8 @@ function md5cycle(f,c){var b=f[0],a=f[1],d=f[2],e=f[3],b=ff(b,a,d,e,c[0],7,-6808 } $('ponyhoof_welcome_next').addEventListener('click', function(e) { + e.preventDefault(); if (hasClass(this, 'uiButtonDisabled')) { - e.preventDefault(); return false; } @@ -4964,6 +5216,9 @@ function md5cycle(f,c){var b=f[0],a=f[1],d=f[2],e=f[3],b=ff(b,a,d,e,c[0],7,-6808 saveSettings(); globalSettings.lastVersion = VERSION; + if (globalSettings.allowLoginScreen) { + globalSettings.lastUserId = USERID; + } saveGlobalSettings(); if (CURRENTPONY == 'pinkie') { @@ -4971,8 +5226,6 @@ function md5cycle(f,c){var b=f[0],a=f[1],d=f[2],e=f[3],b=ff(b,a,d,e,c[0],7,-6808 } else { k.createFinalDialog(); } - - e.preventDefault(); }, false); }; @@ -5124,6 +5377,16 @@ function md5cycle(f,c){var b=f[0],a=f[1],d=f[2],e=f[3],b=ff(b,a,d,e,c[0],7,-6808 injectManualStyle(css, 'welcome'); }; }; + + var renderBrowserConfigWarning = function() { + var c = ''; + if (STORAGEMETHOD == 'localstorage') { + c += '
Ponyhoof is not supported on this browser configuration. Your settings will get cleared out from time to time, and some features such as update-checking and Browser Ponies will not work.

'; + } else if (ISMOBILE) { + c += '
Mobile support for Ponyhoof is provided as a courtesy and is not officially supported.

'; + } + return c; + }; // Theme function getFaviconTag() { @@ -5639,6 +5902,7 @@ function md5cycle(f,c){var b=f[0],a=f[1],d=f[2],e=f[3],b=ff(b,a,d,e,c[0],7,-6808 ,["Friends of Friends", capitaliseFirstLetter(CURRENTSTACK['friends'])+" of "+capitaliseFirstLetter(CURRENTSTACK['friends'])] ,["Friends", capitaliseFirstLetter(CURRENTSTACK['friends'])] ,["Friends of Guests", capitaliseFirstLetter(CURRENTSTACK['friends'])+" of Guests"] + ,["Friends of Contributors", capitaliseFirstLetter(CURRENTSTACK['friends'])+" of Contributors"] ,["Only Me", "Alone"] ,["Only me", "Alone"] ,["Only Me (+)", "Alone (+)"] @@ -5659,6 +5923,7 @@ function md5cycle(f,c){var b=f[0],a=f[1],d=f[2],e=f[3],b=ff(b,a,d,e,c[0],7,-6808 ,["All Friends", "All "+capitaliseFirstLetter(CURRENTSTACK['friends'])] ,["All friends", "All "+CURRENTSTACK['friends']] ,["Poke", "Nuzzle"] + ,["Request Deleted", "Request Nuked"] ,["Likes", capitaliseFirstLetter(CURRENTSTACK['likes'])] ,["Friends' Posts", capitaliseFirstLetter(CURRENTSTACK['friends'])+"' Posts"] @@ -5831,6 +6096,7 @@ function md5cycle(f,c){var b=f[0],a=f[1],d=f[2],e=f[3],b=ff(b,a,d,e,c[0],7,-6808 ,["Poke Back", "Nuzzle Back"] // newsfeed flyout ,["Friends to Invite", capitaliseFirstLetter(CURRENTSTACK['friends'])+" to Invite"] // app invite ,["Inbox", "Trough"] // page inbox + ,["Save Profile Info", "Save Journal Info"] // welcome // graph search ,["Likers", "Brohoofers"] // @todo likers @@ -5855,6 +6121,8 @@ function md5cycle(f,c){var b=f[0],a=f[1],d=f[2],e=f[3],b=ff(b,a,d,e,c[0],7,-6808 ,["Added Friends", "Added "+capitaliseFirstLetter(CURRENTSTACK.friends)] ,["People who can repro this", capitaliseFirstLetter(CURRENTSTACK['people'])+" who can repro this"] ,["Friends that like this", capitaliseFirstLetter(CURRENTSTACK['friends_logic'])+" that "+CURRENTSTACK['like_past']+" this"] + ,["People", capitaliseFirstLetter(CURRENTSTACK['people'])] // gifts + ,["Choose friends to help translate", "Choose "+CURRENTSTACK['friends']+" to help translate"] ,["Share this Profile", "Share this Journal"] ,["Share This Photo", "Share This Pony Pic"] @@ -5920,7 +6188,7 @@ function md5cycle(f,c){var b=f[0],a=f[1],d=f[2],e=f[3],b=ff(b,a,d,e,c[0],7,-6808 ,["Delete Event", "Nuke Adventure"] // for group admin ,["Remove Profile Picture", "Nuke Journal Pony Pic"] - ,["Report and/or Block This Person", "Whine and/or Block This Pony"] // 0 + ,["Report and/or Block This Person", "Whine and/or Block This "+capitaliseFirstLetter(CURRENTSTACK['person'])] // 0 ,["Report This Photo", "Whine About This Pony Pic"] ,["Report This Event", "Whine About This Adventure"] ,["Report Conversation", "Whine About Conversation"] @@ -5941,6 +6209,9 @@ function md5cycle(f,c){var b=f[0],a=f[1],d=f[2],e=f[3],b=ff(b,a,d,e,c[0],7,-6808 ,["Why don't you like this photo?", "Why don't you like this pony pic?"] ,["Report Spam or Abuse", "Whine as Spam or Abuse"] // messages ,["Report Incorrect External Link", "Whine About Incorrect External Link"] // page vertex // 87 + ,["Post Reported", "Whined About Post"] + ,[" Report a Problem ", "Whine About a Problem"] + ,["Report a Problem", "Whine About a Problem"] // report types: 5: links / 125: status / 70: group post / 86: og post ,["Is this post about you or a friend?", "Is this post about you or a "+CURRENTSTACK.friend+"?"] @@ -6043,11 +6314,13 @@ function md5cycle(f,c){var b=f[0],a=f[1],d=f[2],e=f[3],b=ff(b,a,d,e,c[0],7,-6808 ,["Choose from Photos", "Choose from Pony Pics"] ,["Choose Your Cover Photo", "Choose Your Cover Pony Pic"] ,["Choose from your synced photos", "Choose from your synced pony pics"] + ,["Upload Your Profile Picture", "Upload Your Journal Pony Pic"] // welcome ,["Create New App", "Create New Magic"] ,["Add Test Users to other Apps", "Add Test Users to other Magic"] ,["Hidden in Groups", "Hidden in Herds"] // timeline + ,["Add Friends as Contributors", "Add "+capitaliseFirstLetter(CURRENTSTACK['friends'])+" as Contributors"] // shared albums ]; if (ponyData.successText) { dialogTitles.push(["Success", ponyData.successText]); @@ -6165,6 +6438,7 @@ function md5cycle(f,c){var b=f[0],a=f[1],d=f[2],e=f[3],b=ff(b,a,d,e,c[0],7,-6808 ,["To create an offer, your Page needs at least 100 likes.", "To create an offer, your Page needs at least 100 "+CURRENTSTACK['likes']+"."] // page composer ,["Verified profile", "Verified journal"] // verified ,["Tags help people find groups about certain topics.", "Tags help "+CURRENTSTACK['people']+" find herds about certain topics."] // verified + ,["This post is more engaging than many of your other posts. You can boost it to get more likes and comments.", "This post is more engaging than many of your other posts. You can boost it to get more "+CURRENTSTACK['likes']+" and friendship letters."] // page admin pabel // developers ,["Enable the newsfeed ticker", "Enable the feedbag ticker"] @@ -6172,9 +6446,13 @@ function md5cycle(f,c){var b=f[0],a=f[1],d=f[2],e=f[3],b=ff(b,a,d,e,c[0],7,-6808 ,["Remove selected users from this app.", "Remove selected users from this magic."] // insights - ,["The total number of clicks on your posts, not including likes, comments, or shares, which are broken out above.", "The total number of clicks on your posts, not including "+CURRENTSTACK['likes']+", comments, or shares, which are broken out above."] + ,["The total number of clicks on your posts, not including likes, comments, or shares, which are broken out above.", "The total number of clicks on your posts, not including "+CURRENTSTACK['likes']+", friendship letters, or shares, which are broken out above."] ,["The percentage of people who liked, commented, shared or clicked on your post after having seen it.", "The percentage of "+CURRENTSTACK['people']+" who "+CURRENTSTACK['liked']+", commented, shared or clicked on your post after having seen it."] ,["The unique number of people who liked, commented, shared or clicked on your posts", "The unique number of "+CURRENTSTACK['people']+" who "+CURRENTSTACK['liked']+", commented, shared or clicked on your posts"] + + ,["The week when the most people were talking about this Page.", "The week when the most "+CURRENTSTACK['people']+" were talking about this Page."] + ,["The city where most of the people talking about this Page are from.", "The city where most of the "+CURRENTSTACK['people']+" talking about this Page are from."] + ,["The largest age group of the people talking about this Page.", "The largest age group of the "+CURRENTSTACK['people']+" talking about this Page."] ]; if (ponyData.loadingText) { tooltipTitles.push(["Loading...", ponyData.loadingText]); @@ -6202,6 +6480,7 @@ function md5cycle(f,c){var b=f[0],a=f[1],d=f[2],e=f[3],b=ff(b,a,d,e,c[0],7,-6808 //,["On this list", "On this directory"] //,["On This List", "On This Directory"] ,["Related Groups", "Related Herds"] + ,["Entertainment Pages You May Like", "Entertainment Pages You May "+capitaliseFirstLetter(CURRENTSTACK['like'])] ,["Notifications", "Sparks"] ,["New Likes", "New "+capitaliseFirstLetter(CURRENTSTACK['likes'])] @@ -6279,6 +6558,8 @@ function md5cycle(f,c){var b=f[0],a=f[1],d=f[2],e=f[3],b=ff(b,a,d,e,c[0],7,-6808 ,["Tagged Photos", "Tagged Pony Pics"] ,["Add Groups", "Add Herds"] // /addgroup + ,["Photos", "Pony Pics"] // /media/video/ + ,["Post to Your Wall", "Post to Your Stall"] ]; menuTitles = [ @@ -6291,6 +6572,7 @@ function md5cycle(f,c){var b=f[0],a=f[1],d=f[2],e=f[3],b=ff(b,a,d,e,c[0],7,-6808 ,["Friends", capitaliseFirstLetter(CURRENTSTACK['friends'])] ,["Friends ", capitaliseFirstLetter(CURRENTSTACK['friends'])] ,["Friends of Guests", capitaliseFirstLetter(CURRENTSTACK['friends'])+" of Guests"] + ,["Friends of Contributors", capitaliseFirstLetter(CURRENTSTACK['friends'])+" of Contributors"] ,["Only Me", "Alone"] ,["Only me", "Alone"] ,["No One", "Alone"] @@ -6419,6 +6701,7 @@ function md5cycle(f,c){var b=f[0],a=f[1],d=f[2],e=f[3],b=ff(b,a,d,e,c[0],7,-6808 ,["Report list", "Whine about list"] ,["Event at a place", "Adventure at a place"] ,["Report as Abuse", "Whine as Abuse"] + ,["Report to Admin", "Whine to Admin"] ,["Hide this recent activity story from Timeline", "Hide this recent activity story from Journal"] ,["Hide Similar Activity from Timeline...", "Hide Similar Activity from Journal..."] @@ -6448,6 +6731,7 @@ function md5cycle(f,c){var b=f[0],a=f[1],d=f[2],e=f[3],b=ff(b,a,d,e,c[0],7,-6808 ,["Message Guests", "Start Whinny Chat with Guests"] ,["Edit Event", "Edit Adventure"] ,["Publish Event on Timeline", "Publish Adventure on Journal"] + ,["Leave Event", "Leave Adventure"] ,["Add Friends to Chat...", "Add "+capitaliseFirstLetter(CURRENTSTACK.friends)+" to Whinny Chat..."] ,["Chat Sounds", "Whinny Chat Sounds"] @@ -6527,6 +6811,7 @@ function md5cycle(f,c){var b=f[0],a=f[1],d=f[2],e=f[3],b=ff(b,a,d,e,c[0],7,-6808 ,["Top Comments", "Top Friendship Letters"] // comment resort ,["See All Groups", "See All Herds"] // timeline ,["Friends to Invite", capitaliseFirstLetter(CURRENTSTACK['friends'])+" to Invite"] // app invite + ,["Take a survey to improve News Feed", "Take a survey to improve Feed Bag"] // news feed // insights ,["Post Clicks / Likes, Comments & Shares", "Post Clicks / "+capitaliseFirstLetter(CURRENTSTACK['likes'])+", Comments & Shares"] @@ -6544,6 +6829,7 @@ function md5cycle(f,c){var b=f[0],a=f[1],d=f[2],e=f[3],b=ff(b,a,d,e,c[0],7,-6808 ,["Friends", capitaliseFirstLetter(CURRENTSTACK['friends'])] ,["Friends ", capitaliseFirstLetter(CURRENTSTACK['friends'])] ,["Friends of Guests", capitaliseFirstLetter(CURRENTSTACK['friends'])+" of Guests"] + ,["Friends of Contributors", capitaliseFirstLetter(CURRENTSTACK['friends'])+" of Contributors"] ,["Only Me", "Alone"] ,["Only me", "Alone"] //,["See all lists...", "See entire directory..."] @@ -6620,6 +6906,7 @@ function md5cycle(f,c){var b=f[0],a=f[1],d=f[2],e=f[3],b=ff(b,a,d,e,c[0],7,-6808 ,"Cannot Send Gift" ,"An error occurred." ,"Image Resource Invalid" + ,"Confirmation Required" ]; headerInsightsTitles = [ @@ -6645,6 +6932,7 @@ function md5cycle(f,c){var b=f[0],a=f[1],d=f[2],e=f[3],b=ff(b,a,d,e,c[0],7,-6808 ,["Report this if it's not relevant to your search results.", "Whine about this if it's not relevant to your search results."] ,["Uploading a photo will remove the link preview. Do you want to continue?", "Uploading a pony pic will remove the link preview. Do you want to continue?"] + ,["This post has been reported to the group admin.", "This post has been whined to the group admin."] ]; } @@ -6866,7 +7154,12 @@ function md5cycle(f,c){var b=f[0],a=f[1],d=f[2],e=f[3],b=ff(b,a,d,e,c[0],7,-6808 return; } - domReplaceFunc(dom.target, '', '.inCommonSectionList, #fbTimelineHeadline .name h2 > div, ._8yb, .-cx-PRIVATE-fbEntstreamAttachmentAvatar__secondarydetaillist, ._508a, .-cx-PRIVATE-pageLikeStory__fancountfooter, .permalinkHeaderInfo > .subscribeOrLikeSentence > .fwn', k.textBrohoof); + if (k.pagesVoiceBarText(dom.target)) { + INTERNALUPDATE = iu; + return; + } + + domReplaceFunc(dom.target, '', '.inCommonSectionList, #fbTimelineHeadline .name h2 > div, ._8yb, .-cx-PRIVATE-fbEntstreamAttachmentAvatar__secondarydetaillist, ._508a, .-cx-PRIVATE-pageLikeStory__fancountfooter, .permalinkHeaderInfo > .subscribeOrLikeSentence > .fwn, ._5j2m', k.textBrohoof); domReplaceFunc(dom.target, '', '.uiUfiViewAll, .uiUfiViewPrevious, .uiUfiViewMore', function(ele) { var button = ele.querySelector('input[type="submit"]'); @@ -7070,6 +7363,7 @@ function md5cycle(f,c){var b=f[0],a=f[1],d=f[2],e=f[3],b=ff(b,a,d,e,c[0],7,-6808 k.timelineMutualLikes(dom.target); k.videoStageContainer(dom.target); k.uiStreamShareLikePageBox(dom.target); + k.fbTimelineUnit(dom.target); domChangeTextbox(dom.target, '.MessagingComposerForm textarea, ._1rt ._1rv, .-cx-PRIVATE-webMessengerComposer__composertextarea, ._20y textarea, .-cx-PRIVATE-mercuryComposerDialog__root textarea, ._2oj, .-cx-PRIVATE-mercuryComposerDialog__textarea', "Dear Princess Celestia..."); domChangeTextbox(dom.target, '.groupAddMemberTypeaheadBox .inputtext', "Add "+capitaliseFirstLetter(CURRENTSTACK.friends)+" to the Herd"); @@ -7478,7 +7772,7 @@ function md5cycle(f,c){var b=f[0],a=f[1],d=f[2],e=f[3],b=ff(b,a,d,e,c[0],7,-6808 k._markCommentLiked = function(ufiitem, isLike) { var child = null; - if (ufiitem.childNodes && ufiitem.childNodes[0]) { + if (ufiitem.childNodes && ufiitem.childNodes.length && ufiitem.childNodes[0]) { child = ufiitem.childNodes[0]; } if (isLike) { @@ -7944,50 +8238,47 @@ function md5cycle(f,c){var b=f[0],a=f[1],d=f[2],e=f[3],b=ff(b,a,d,e,c[0],7,-6808 //
Ponyhoof brohoofs this.
//
xy
//
Shared with:
Public
+ + //
Excellent
var io = ele.getElementsByClassName('tooltipText'); if (io.length) { var target = io[0]; } else { var target = ele; } - var potentialLabel = target.querySelector('._5bqd, .-cx-PRIVATE-HubbleInfoTip__content'); + var potentialLabel = target.querySelector('._5bqd, .-cx-PRIVATE-HubbleInfoTip__content, ._5j1i'); if (potentialLabel) { target = potentialLabel; } - if (target.childNodes && target.childNodes[0] && target.childNodes[0].tagName && target.childNodes[0].tagName.toUpperCase() == 'DIV') { + if (target.childNodes && target.childNodes.length && target.childNodes[0] && target.childNodes[0].tagName && target.childNodes[0].tagName.toUpperCase() == 'DIV') { target = target.childNodes[0]; } - if (target.childNodes && target.childNodes[0] && target.childNodes[0].tagName && target.childNodes[0].tagName.toUpperCase() == 'SPAN') { + if (target.childNodes && target.childNodes.length && target.childNodes[0] && target.childNodes[0].tagName && target.childNodes[0].tagName.toUpperCase() == 'SPAN') { target = target.childNodes[0]; } - /*io = target.getElementsByTagName('div'); - if (io.length) { - target = io[0]; - } - io = target.getElementsByTagName('span'); - if (io.length) { - target = io[0]; - }*/ + // Get the tooltip outer layer + var layer = k._tooltipGetLayer(ele); + if (!layer) { + return; + } + + removeClass(layer, 'ponyhoof_tooltip_flip'); + + // Replace text var t = target.innerHTML; t = replaceText(tooltipTitles, t); if (target.innerHTML != t) { var oldWidth = target.offsetWidth; target.innerHTML = t; - var layer = k._tooltipGetLayer(ele); - if (!layer) { - return; - } - + // Get the inner layer inside the outer layer (get it...?) var layerInner = layer.getElementsByClassName('uiContextualLayer'); if (!layerInner.length) { return; } layerInner = layerInner[0]; - removeClass(layer, 'ponyhoof_tooltip_flip'); - if (layerInner.className.match(/Center/)) { layer.style.width = 'auto'; // fix horizontal scrollbar var left = parseInt(layer.style.left); @@ -8096,11 +8387,11 @@ function md5cycle(f,c){var b=f[0],a=f[1],d=f[2],e=f[3],b=ff(b,a,d,e,c[0],7,-6808 }; k._pokesDashboard_pokeLink = function(target) { - $$(target, 'a[ajaxify^="/ajax/pokes/poke_inline.php"]', function(poke) { + $$(target, 'a[ajaxify^="/pokes/inline/"]', function(poke) { var text = "Nuzzle"; - if (poke.getAttribute('ajaxify').indexOf('pokeback=1') != -1) { // http://fb.com/406911932763192 + /*if (poke.getAttribute('ajaxify').indexOf('pokeback=1') != -1) { // http://fb.com/406911932763192 text = "Nuzzle Back"; - } + }*/ if (poke.childNodes && poke.childNodes.length && poke.childNodes[1]) { poke.childNodes[1].textContent = text; @@ -8273,7 +8564,6 @@ function md5cycle(f,c){var b=f[0],a=f[1],d=f[2],e=f[3],b=ff(b,a,d,e,c[0],7,-6808 var orig = ''; var replaced = ''; - //var oldWidthBody = ''; var oldLabelWidth = 0; ele.setAttribute('data-ponyhoof-menuitem-orig', ele.textContent); loopChildText(label, function(child) { @@ -8286,12 +8576,8 @@ function md5cycle(f,c){var b=f[0],a=f[1],d=f[2],e=f[3],b=ff(b,a,d,e,c[0],7,-6808 hasScrollableArea = true; } if (hasScrollableArea) { - //oldWidthBody = ele.parentNode.parentNode.parentNode.style.width; - //ele.parentNode.parentNode.parentNode.style.width = 'auto'; label.style.display = 'inline-block'; - //var oldWidth = label.offsetWidth; if (!oldLabelWidth) { - //oldLabelWidth = oldWidth; oldLabelWidth = label.offsetWidth; } } @@ -8300,9 +8586,6 @@ function md5cycle(f,c){var b=f[0],a=f[1],d=f[2],e=f[3],b=ff(b,a,d,e,c[0],7,-6808 replaced += t+' '; } }); - //if (hasScrollableArea) { - //ele.parentNode.parentNode.parentNode.style.width = oldWidthBody; - //} orig = orig.substr(0, orig.length-1); replaced = replaced.substr(0, replaced.length-1); @@ -8446,9 +8729,11 @@ function md5cycle(f,c){var b=f[0],a=f[1],d=f[2],e=f[3],b=ff(b,a,d,e,c[0],7,-6808 } var root = target.getElementsByClassName('pluginConnectButtonLayoutRoot'); - //var root = target.getElementsByClassName('pluginSkinLight'); if (!root.length) { - return; + var root = target.getElementsByClassName('pluginSkinLight'); + if (!root.length) { + return; + } } root = root[0]; @@ -8489,7 +8774,7 @@ function md5cycle(f,c){var b=f[0],a=f[1],d=f[2],e=f[3],b=ff(b,a,d,e,c[0],7,-6808 }); // likebox - $$(root, '.pts > .pls > div > span', function(ele) { + $$(root, '._51mx > .pls > div > span', function(ele) { var t = k.likeSentence(ele.textContent); if (ele.textContent != t) { ele.textContent = t; @@ -8565,6 +8850,23 @@ function md5cycle(f,c){var b=f[0],a=f[1],d=f[2],e=f[3],b=ff(b,a,d,e,c[0],7,-6808 return false; }; + k.pagesVoiceBarText = function(target) { + if (hasClass(target, 'pagesVoiceBarText')) { + if (target.childNodes && target.childNodes.length && target.childNodes[0]) { + var textNode = target.childNodes[0]; + if (textNode.nodeType == TEXT_NODE) { + var t = textNode.textContent; + t = t.replace(/\bliking\b/, CURRENTSTACK['liking']); + if (textNode.textContent != t) { + textNode.textContent = t; + } + } + } + return true; + } + return false; + }; + k.beepNotification = function(dom) { warn("domNodeHandler.beepNotification() is deprecated"); return false; @@ -8754,6 +9056,61 @@ function md5cycle(f,c){var b=f[0],a=f[1],d=f[2],e=f[3],b=ff(b,a,d,e,c[0],7,-6808 }); }; + k.fbTimelineUnit = function(target) { + if (!hasClass(target, 'fbTimelineUnit')) { + return; + } + if (target.childNodes && target.childNodes.length) { + if (hasClass(target.childNodes[1], 'pageFriendSummaryContainer')) { + var headerText = target.childNodes[1].getElementsByClassName('headerText'); + if (!headerText.length) { + return; + } + headerText = headerText[0]; + + // Friend(s) + $$(headerText, '.fwb > a', function(link) { + var t = link.textContent; + t = t.replace(/\bFriends\b/, capitaliseFirstLetter(CURRENTSTACK['friends'])); + t = t.replace(/\bFriend\b/, capitaliseFirstLetter(CURRENTSTACK['friend'])); + if (link.textContent != t) { + link.textContent = t; + } + }); + + // Like(s) PAGENAME + $$(headerText, '.fcg', function(fcg) { + var split = fcg.textContent.split(' '); + var t = split[0]; + t = t.replace(/\bLikes\b/, capitaliseFirstLetter(CURRENTSTACK['likes'])); + t = t.replace(/\bLike\b/, capitaliseFirstLetter(CURRENTSTACK['like'])); + if (split[0] != t) { + split[0] = t; + fcg.textContent = split.join(' '); + } + }); + + return; + } + + // Brohoofs section at pages + var liked_pages_timeline_unit_list = $('liked_pages_timeline_unit_list'); + if (liked_pages_timeline_unit_list) { + $$(liked_pages_timeline_unit_list, '._42ef .fcg', function(fcg) { + loopChildText(fcg, function(child) { + // 4 friends + // also like this. + var t = child.textContent; + t = k.textStandard(t); + if (child.textContent != t) { + child.textContent = t; + } + }); + }); + } + } + }; + k._dialog_insertReadme = function(body) { var done = false; $$(body, '._22i .uiToken > input[type="hidden"]', function(input) { // @cx @@ -8955,7 +9312,7 @@ function md5cycle(f,c){var b=f[0],a=f[1],d=f[2],e=f[3],b=ff(b,a,d,e,c[0],7,-6808 i = 1; } - k._notification_change(notificationItem, '.'+k.notification_textClass[i]+' > span', k.notification_metadataClass[i], 'fwb'); + k._notification_change(notificationItem, '.'+k.notification_textClass[i]+' > span', k._notification_react_metadata); }); } } @@ -9818,7 +10175,7 @@ function md5cycle(f,c){var b=f[0],a=f[1],d=f[2],e=f[3],b=ff(b,a,d,e,c[0],7,-6808 try { var href = w.location.href.toLowerCase(); - if ((href.indexOf('/plugins/like.php') != -1 || href.indexOf('/plugins/likebox.php') != -1 || href.indexOf('/plugins/subscribe.php') || href.indexOf('/plugins/facepile.php') != -1) && (href.indexOf('login/plugin_roadblock.php') == -1 && (href.indexOf('#ponyhoof_runme') != -1 || href.indexOf('&ponyhoof_runme') != -1))) { + if ((href.indexOf('/plugins/like.php') != -1 || href.indexOf('/plugins/likebox.php') != -1 || href.indexOf('/plugins/subscribe.php') != -1 || href.indexOf('/plugins/facepile.php') != -1) && (href.indexOf('login/plugin_roadblock.php') == -1 && (href.indexOf('#ponyhoof_runme') != -1 || href.indexOf('&ponyhoof_runme') != -1))) { // Allow like boxes for the Ponyhoof page (yeah, a bit cheating) } else if (hasClass(d.body, 'chrmxt')) { // Allow for Facebook Notifications for Chrome @@ -10080,9 +10437,11 @@ function md5cycle(f,c){var b=f[0],a=f[1],d=f[2],e=f[3],b=ff(b,a,d,e,c[0],7,-6808 // Record the last user to figure out what theme to load at login screen // This is low priority, if all else fails, we would just load the default Equestria 'login' anyway - if (CURRENTPONY != 'NONE' && USERID && globalSettings.lastUserId != USERID) { - globalSettings.lastUserId = USERID; - saveGlobalSettings(); + if (CURRENTPONY != 'NONE' && userSettings.theme != null) { // Make sure we have a pony set + if (USERID && globalSettings.lastUserId != USERID && globalSettings.allowLoginScreen) { + globalSettings.lastUserId = USERID; + saveGlobalSettings(); + } } } diff --git a/dwb/greasemonkey/reddit_enhancement_suite.user.js b/dwb/greasemonkey/reddit_enhancement_suite.user.js.disable similarity index 99% rename from dwb/greasemonkey/reddit_enhancement_suite.user.js rename to dwb/greasemonkey/reddit_enhancement_suite.user.js.disable index e8d4aa8..f431195 100644 --- a/dwb/greasemonkey/reddit_enhancement_suite.user.js +++ b/dwb/greasemonkey/reddit_enhancement_suite.user.js.disable @@ -7822,7 +7822,7 @@ modules['betteReddit'] = { }, showUnreadCountInFavicon: { type: 'boolean', - value: true, + value: false, description: 'Show unread message count in favicon?' }, unreadLinksToInbox: { @@ -8102,7 +8102,7 @@ modules['betteReddit'] = { }, setUnreadCount: function(count) { if (this.options.showUnreadCountInFavicon.value) { - window.Tinycon.setOptions({ fallback: false }); + //window.Tinycon.setOptions({ fallback: false }); } if (count>0) { if (this.options.showUnreadCountInTitle.value) { @@ -8110,7 +8110,7 @@ modules['betteReddit'] = { document.title = newTitle; } if (this.options.showUnreadCountInFavicon.value) { - window.Tinycon.setBubble(count); + //window.Tinycon.setBubble(count); } if (this.options.showUnreadCount.value) { modules['betteReddit'].mailCount.display = 'inline-block' @@ -8132,7 +8132,7 @@ modules['betteReddit'] = { } } if (this.options.showUnreadCountInFavicon.value) { - window.Tinycon.setBubble(0); + //window.Tinycon.setBubble(0); } } }, @@ -21041,11 +21041,11 @@ function RESInitReadyCheck() { // save Reddit's jQuery, because this script is going to jack it up. // now, take the new jQuery in and store it local to RES's scope (it's a var up top) var redditJq = window.$; - require(['jquery-1.9.1.min', 'guiders-1.2.8', 'tinycon', 'snuownd', 'jquery.dragsort-0.6', 'jquery.tokeninput', 'jquery-fieldselection.min'], function() { + require(['jquery-1.9.1.min', 'guiders-1.2.8', /*'tinycon',*/ 'snuownd', 'jquery.dragsort-0.6', 'jquery.tokeninput', 'jquery-fieldselection.min'], function() { $ = window.$; jQuery = window.jQuery; guiders = window.guiders; - Tinycon = window.Tinycon; + //Tinycon = window.Tinycon; SnuOwnd = window.SnuOwnd; // now, return the window.$ / window.jQuery back to its original state. window.$ = redditJq;
More OptionsHide ' + // new custom text filter/ css / app whitelist tabs 'Custom Text Filter - ' + 'Application Whitelist - ' + @@ -545,6 +547,7 @@ fbptips[Math.floor(Math.random() * fbptips.length)] + '
Beta Tester Box
Further OptionsSet

Font and Colour Options

'+ '' + -'' + -'' + -'' + +'' + +'' + +'' + '' + '