MCPcopy Index your code
hub / github.com/hoothin/UserScripts / toggleIcon

Function toggleIcon

Easy offline/Easy offline.user.js:1580–1591  ·  view source on GitHub ↗
(force)

Source from the content-addressed store, hash-verified

1578 }
1579
1580 function toggleIcon(force){
1581 $('.whx-a-node').toggle(500);
1582 $('.whx-a-node').mouseout();
1583 storage.getItem('eoDisable_'+document.domain,v=>{
1584 if(force=="enable" || v){
1585 storage.delItem('eoDisable_'+document.domain);
1586 if($('.whx-a-node').length<1)getAllEnableUrl();
1587 }else{
1588 storage.setItem('eoDisable_'+document.domain,true);
1589 }
1590 });
1591 }
1592
1593 function goSetting(){
1594 setting();

Callers 2

settingFunction · 0.85

Calls 2

getAllEnableUrlFunction · 0.85
$Function · 0.50

Tested by

no test coverage detected