PixelBoii

Untitled

Oct 30th, 2019
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. document.cookie = 'same-site-cookie=foo; SameSite=Lax';
  2. document.cookie = 'cross-site-cookie=bar; SameSite=None; Secure';
  3.  
  4. chrome.runtime.onMessage.addListener(
  5.     function(request, sender, sendResponse) {
  6.       if (request.contentScriptQuery == "queryPrice") {
  7.         var url = "https://pixelboii.wtf/steamvalue.json";
  8.         var skinFullName = request.itemURL;
  9.         fetch(url)
  10.             .then(res => res.json())
  11.             .then(price => {
  12.               sendResponse(price.items_list[skinFullName].price["7_days"].average);
  13.             })
  14.             .catch(err => { throw err });
  15.         return true;  // Will respond asynchronously.
  16.       }
  17.     });
Add Comment
Please, Sign In to add comment