Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function contextMenu(){
- var ctxMenu = document.querySelector('a[aria-label="Edit"]');
- if(ctxMenu) {
- ctxMenu.click();
- return true;
- }
- return false;
- }
- function deletePost(){
- var delList = document.querySelectorAll('a[ajaxify^="/ajax/timeline/delete/confirm"]');
- if(delList.length > 0) {
- delList[delList.length - 1].click();
- }
- }
- function confirmDelete(){
- setTimeout(function(){
- var confirmBtn = document.querySelector('button[class="_42ft _4jy0 layerConfirm uiOverlayButton _4jy3 _4jy1 selected _51sy"]');
- if(confirmBtn) {
- confirmBtn.click();
- }
- }, 2000);
- }
- function auschwitzBirkenau(){
- if(contextMenu()) {
- deletePost();
- confirmDelete();
- }
- }
- setInterval(auschwitzBirkenau, TIME_IN_MILISECONDS);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement