Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- =============== CONTENT.JS ====================
- let n = 0;
- function run() {
- var links = document.getElementsByClassName('cur_pointer open_in1 new_act_btn col_in center big_link');
- links[n].click();
- await => sleep(5000);
- chrome.tabs.query({active: true, currentWindow: true}, function(tabs) {
- // query the active tab, which will be only one tab
- //and inject the script in it
- chrome.tabs.executeScript(tabs[0].id, {file: "like.js"});
- });
- }
- run();
- =============== LIKE.JS ====================
- function run() {
- document.getElementsByClassName('glyphsSpriteHeart__outline__24__grey_9 Szr5J')[0].click();
- alert('clicked');
- }
- run();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement