Skip to content

Ademking/Fire-Plane-FB-Reactions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

[Deprecated] Fire - Plane Facebook Reactions 🔥🛩

For Those asking How to Do Plane/Fire Reaction :

Chrome :

  1. Create a new Bookmark

  1. Fill the bookmark :

• Name : Anything you want (example : FB Reactions)

• URL : Copy/Paste code below

javascript:let hookFacebookReactionsCounter=0;function hookFacebookReactions(){const modulesToHook=['UFICentralUpdates','UFIFeedbackTargets'];const updateFeedbackEvent='update-feedback';const defaultReactionsCount=6;const newReactions=[{name:"fire",id:14},{name:"plane",id:15}];if(window.requireLazy){window.requireLazy(modulesToHook,(UFICentralUpdates,UFIFeedbackTargets)=>{UFICentralUpdates.subscribe(updateFeedbackEvent,onUpdateFeedback);function onUpdateFeedback(eventName,feedbackObj){var supportedReactions=feedbackObj.feedbacktarget.supportedreactions;if(supportedReactions.length===defaultReactionsCount){for(let reaction of newReactions.reverse()){supportedReactions.push(reaction.id)}
feedbackObj.feedbacktarget.supportedreactions=supportedReactions;UFICentralUpdates.inform(updateFeedbackEvent,feedbackObj)}}});let cssText=``;for(let reaction of newReactions){cssText+=`div[data-reaction='${reaction.id}'] div._4sm1:after { content: ' ${reaction.name}'; }`}
let hookScript=document.createElement("style");hookScript.type="text/css";hookScript.textContent=cssText;(document.head||document.body||document.documentElement).appendChild(hookScript)}else{console.log('Failed to inject Facebook Reactions hook.');hookFacebookReactionsCounter++;if(hookFacebookReactionsCounter<30)setTimeout(hookFacebookReactions,50)}};hookFacebookReactions()

  1. Save and Click on Home link

  2. TADAAAA... That's all 😉


Firefox :

  1. In Firefox, click "Bookmarks," then select "Bookmark this Page"

  1. Type a name for your bookmarklet into the Name field, and select where you want the bookmark to live. If you want it easily accessible, choose the "Bookmarks Toolbar."

  2. You should have a bookmark in your toolbar now. Right-click on it and select "Properties."

  1. Copy/Paste the JavaScript code below for your bookmarklet, and paste it into the "Location" field.
javascript:let hookFacebookReactionsCounter=0;function hookFacebookReactions(){const modulesToHook=['UFICentralUpdates','UFIFeedbackTargets'];const updateFeedbackEvent='update-feedback';const defaultReactionsCount=6;const newReactions=[{name:"fire",id:14},{name:"plane",id:15}];if(window.requireLazy){window.requireLazy(modulesToHook,(UFICentralUpdates,UFIFeedbackTargets)=>{UFICentralUpdates.subscribe(updateFeedbackEvent,onUpdateFeedback);function onUpdateFeedback(eventName,feedbackObj){var supportedReactions=feedbackObj.feedbacktarget.supportedreactions;if(supportedReactions.length===defaultReactionsCount){for(let reaction of newReactions.reverse()){supportedReactions.push(reaction.id)}
feedbackObj.feedbacktarget.supportedreactions=supportedReactions;UFICentralUpdates.inform(updateFeedbackEvent,feedbackObj)}}});let cssText=``;for(let reaction of newReactions){cssText+=`div[data-reaction='${reaction.id}'] div._4sm1:after { content: ' ${reaction.name}'; }`}
let hookScript=document.createElement("style");hookScript.type="text/css";hookScript.textContent=cssText;(document.head||document.body||document.documentElement).appendChild(hookScript)}else{console.log('Failed to inject Facebook Reactions hook.');hookFacebookReactionsCounter++;if(hookFacebookReactionsCounter<30)setTimeout(hookFacebookReactions,50)}};hookFacebookReactions()

  1. Save and Click on Home link

  2. TADAAAA... That's all 😉


Safari

Dragging the link to the bookmarks bar is the easiest way to do this in Safari. Otherwise we have to create a bookmark for something else, and then edit the URL to be the Javscript we want to run.

  1. In Safari, open https://facebook.com

  2. Select Bookmarks > Add Bookmark

  3. A little window will pop up. Select the folder or location where you want the bookmarklet (Use "Favorites Bar" for easy access.) Then type the name of your bookmarklet in the text field. for this example write "Facebook Reactions"

  4. Click "Add"

  5. Now right-click on bookmark you just created. You should see a menu pop up. Select "Edit Address"

  1. You should now see a text box pop up under your bookmark

  2. Copy/Paste the code below :

javascript:let hookFacebookReactionsCounter=0;function hookFacebookReactions(){const modulesToHook=['UFICentralUpdates','UFIFeedbackTargets'];const updateFeedbackEvent='update-feedback';const defaultReactionsCount=6;const newReactions=[{name:"fire",id:14},{name:"plane",id:15}];if(window.requireLazy){window.requireLazy(modulesToHook,(UFICentralUpdates,UFIFeedbackTargets)=>{UFICentralUpdates.subscribe(updateFeedbackEvent,onUpdateFeedback);function onUpdateFeedback(eventName,feedbackObj){var supportedReactions=feedbackObj.feedbacktarget.supportedreactions;if(supportedReactions.length===defaultReactionsCount){for(let reaction of newReactions.reverse()){supportedReactions.push(reaction.id)}
feedbackObj.feedbacktarget.supportedreactions=supportedReactions;UFICentralUpdates.inform(updateFeedbackEvent,feedbackObj)}}});let cssText=``;for(let reaction of newReactions){cssText+=`div[data-reaction='${reaction.id}'] div._4sm1:after { content: ' ${reaction.name}'; }`}
let hookScript=document.createElement("style");hookScript.type="text/css";hookScript.textContent=cssText;(document.head||document.body||document.documentElement).appendChild(hookScript)}else{console.log('Failed to inject Facebook Reactions hook.');hookFacebookReactionsCounter++;if(hookFacebookReactionsCounter<30)setTimeout(hookFacebookReactions,50)}};hookFacebookReactions()

  1. Click the "Done" button.


Press That Star Button if you like it ⭐

About

[Deprecated] ... Sorry for that ...

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published