The monomer 4-(thiophen-3-yl)benzenethiol (TBT) was polymerized on a nickel foam (NF) with a thickness of 0.5 mm using a solution electrolyte of 0.1 M tetrabutylammonium hexafluorophosphate (TBAPF6) in acetonitrile (ACN). The electro-polymerization process was carried out using a three-electrode system under potential range of -1.8 ∼ 1.8 V (100 mV/s, n = 20) with an electrochemical workstation (GAMRY). An Ag wire was used as the reference electrode, and a platinum wire as the counter electrode. The resulting red-brown PTBT@NF electrode was obtained after rinsing the polymerized electrode with acetonitrile several times and drying it in a vacuum oven at 50 • C. During electro-polymerization, the outer parts of the polymer detached from the electrode and were collected in the reaction vessel. After the polymerization reaction, the detached polymer is separated from the reaction medium (TBT and TBAPF6 in ACN) through 3 cycles of centrifugation using fresh acetonitrile to wash. After that, the remaining powdered PTBT polymer was dried in the same way as the one deposited on the nickel foam.