This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class BadgeUtils { | |
public static void setBadge(Context context, int count) { | |
setBadgeSamsung(context, count); | |
setBadgeSony(context, count); | |
} | |
public static void clearBadge(Context context) { | |
setBadgeSamsung(context, 0); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
Steps to follow: | |
1. Open facebook and navigate to archived messages | |
2. Open console and paste the below code | |
3. Press enter to run the code. | |
**/ | |
(function() { | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(() => { | |
var ele = document.querySelector('history-app'); | |
var historyItems = ele.shadowRoot.querySelector('history-list').shadowRoot.querySelector('iron-list').querySelectorAll('history-item'); | |
historyItems.forEach((item) => { item.shadowRoot.querySelector('#checkmark').click(); }); | |
ele.shadowRoot.querySelector('history-toolbar').shadowRoot.querySelector('cr-toolbar-selection-overlay').shadowRoot.querySelector('#delete').click(); | |
var btnCont = ele.shadowRoot.querySelector('history-list').shadowRoot.querySelector('dialog').shadowRoot.children[3].querySelector('content[name="button-container"]'); | |
btnCont.getDistributedNodes()[0].querySelector('.action-button').click(); | |
})() |